summaryrefslogtreecommitdiff
path: root/h/zephyr
diff options
context:
space:
mode:
authorGravatar Greg Hudson <ghudson@mit.edu>1994-11-01 12:50:02 +0000
committerGravatar Greg Hudson <ghudson@mit.edu>1994-11-01 12:50:02 +0000
commitad27b85102226283a98f267cb52828bfc300eacc (patch)
treeefd0079a7244424c2b727327f823faa100962a9a /h/zephyr
parentd799ba1802d8eac41ed0d014ad024a1764ca2d93 (diff)
Add support for better authentication checking.
Diffstat (limited to 'h/zephyr')
-rw-r--r--h/zephyr/zephyr.h11
1 files changed, 8 insertions, 3 deletions
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));