From ad27b85102226283a98f267cb52828bfc300eacc Mon Sep 17 00:00:00 2001 From: Greg Hudson Date: Tue, 1 Nov 1994 12:50:02 +0000 Subject: Add support for better authentication checking. --- h/zephyr/zephyr.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'h/zephyr') diff --git a/h/zephyr/zephyr.h b/h/zephyr/zephyr.h index c5bd6fc..983f097 100644 --- a/h/zephyr/zephyr.h +++ b/h/zephyr/zephyr.h @@ -73,9 +73,11 @@ #define Z_MAXOTHERFIELDS 10 /* Authentication levels returned by ZCheckAuthentication */ -#define ZAUTH_FAILED (-1) -#define ZAUTH_YES 1 -#define ZAUTH_NO 0 +#define ZAUTH_FAILED (-1) +#define ZAUTH_YES 1 +#define ZAUTH_NO 0 +#define ZAUTH_CKSUM_FAILED (-2) /* Used only by server. */ +#define ZAUTH_UNSET (-3) /* Internal to client library. */ /* Packet type */ typedef enum { UNSAFE, UNACKED, ACKED, HMACK, HMCTL, SERVACK, SERVNAK, @@ -103,6 +105,7 @@ struct timeval z_time; u_short z_port; int z_auth; + int z_checked_auth; int z_authent_len; char *z_ascii_authent; char *z_class; @@ -203,6 +206,8 @@ extern Code_t ZSendPacket Zproto((char*, int, int)); extern Code_t ZSendList Zproto((ZNotice_t*, char *[], int, Z_AuthProc)); extern Code_t ZFormatNotice Zproto((ZNotice_t*, char**, int*, Z_AuthProc)); + extern Code_t ZFormatSmallNotice Zproto ((ZNotice_t*, ZPacket_t, int*, + Z_AuthProc)); extern Code_t ZLocateUser Zproto((char *, int *, Z_AuthProc)); extern Code_t ZRequestLocations Zproto((char *, ZAsyncLocateData_t *, ZNotice_Kind_t, Z_AuthProc)); extern Code_t ZInitialize Zproto ((void)); -- cgit v1.2.3