diff options
Diffstat (limited to 'h')
-rw-r--r-- | h/internal.h | 5 | ||||
-rw-r--r-- | h/zephyr/zephyr.h | 16 |
2 files changed, 17 insertions, 4 deletions
diff --git a/h/internal.h b/h/internal.h index 8ae74b0..5cf2128 100644 --- a/h/internal.h +++ b/h/internal.h @@ -105,6 +105,7 @@ typedef Code_t (*Z_SendProc) (ZNotice_t *, char *, int, int); struct _Z_InputQ *Z_GetFirstComplete (void); struct _Z_InputQ *Z_GetNextComplete (struct _Z_InputQ *); +struct _Z_InputQ *Z_SearchQueue (ZUnique_Id_t *, ZNotice_Kind_t); Code_t Z_XmitFragment (ZNotice_t*, char *,int,int); void Z_RemQueue (struct _Z_InputQ *); Code_t Z_AddNoticeToEntry (struct _Z_InputQ*, ZNotice_t*, int); @@ -114,6 +115,7 @@ Code_t Z_FormatRawHeader (ZNotice_t *, char*, int, int*, char **, char **); Code_t Z_ReadEnqueue (void); Code_t Z_ReadWait (void); +int Z_PacketWaiting (void); Code_t Z_SendLocation (char*, char*, Z_AuthProc, char*); Code_t Z_SendFragmentedNotice (ZNotice_t *notice, int len, Z_AuthProc cert_func, @@ -153,6 +155,9 @@ unsigned long z_quad_cksum(const unsigned char *, uint32_t *, long, int, unsigned char *); Code_t ZFormatAuthenticNoticeV5(ZNotice_t*, char*, int, int*, krb5_keyblock *); #endif +#ifdef HAVE_KRB4 +Code_t ZFormatAuthenticNotice(ZNotice_t*, char*, int, int*, C_Block); +#endif #ifdef HAVE_KRB5_CREDS_KEYBLOCK_ENCTYPE #define Z_keydata(keyblock) ((keyblock)->contents) diff --git a/h/zephyr/zephyr.h b/h/zephyr/zephyr.h index 536175a..a7eb17f 100644 --- a/h/zephyr/zephyr.h +++ b/h/zephyr/zephyr.h @@ -16,6 +16,7 @@ #include <sys/types.h> #include <sys/time.h> #include <sys/socket.h> +#include <com_err.h> #include <zephyr/zephyr_err.h> @@ -154,6 +155,7 @@ typedef Code_t (*Z_AuthProc)(ZNotice_t*, char *, int, int *); Code_t ZMakeAuthentication(ZNotice_t*, char *,int, int*); Code_t ZMakeZcodeAuthentication(ZNotice_t*, char *,int, int*); Code_t ZMakeZcodeRealmAuthentication(ZNotice_t*, char *,int, int*, char*); +Code_t ZResetAuthentication(void); char *ZGetSender(void); char *ZGetVariable(char *); @@ -161,8 +163,6 @@ Code_t ZSetVariable(char *var, char *value); Code_t ZUnsetVariable(char *var); int ZGetWGPort(void); Code_t ZSetDestAddr(struct sockaddr_in *); -Code_t ZFormatNoticeList(ZNotice_t*, char**, int, - char **, int*, Z_AuthProc); Code_t ZParseNotice(char*, int, ZNotice_t *); Code_t ZReadAscii(char*, int, unsigned char*, int); Code_t ZReadAscii32(char *, int, unsigned long *); @@ -172,14 +172,20 @@ Code_t ZSendPacket(char*, int, int); Code_t ZSendList(ZNotice_t*, char *[], int, Z_AuthProc); Code_t ZSrvSendList(ZNotice_t*, char*[], int, Z_AuthProc, Code_t (*)(ZNotice_t *, char *, int, int)); +Code_t ZSendRawList(ZNotice_t*, char *[], int); Code_t ZSendNotice(ZNotice_t *, Z_AuthProc); +Code_t ZSendRawNotice(ZNotice_t *); Code_t ZSrvSendNotice(ZNotice_t*, Z_AuthProc, Code_t (*)(ZNotice_t *, char *, int, int)); Code_t ZFormatNotice(ZNotice_t*, char**, int*, Z_AuthProc); -Code_t ZFormatSmallNotice(ZNotice_t*, ZPacket_t, int*, Z_AuthProc); +Code_t ZNewFormatNotice(ZNotice_t*, char**, int*, Z_AuthProc); +Code_t ZFormatNoticeList(ZNotice_t*, char**, int, + char **, int*, Z_AuthProc); Code_t ZFormatRawNoticeList(ZNotice_t *, char *[], int, char **, int *); +Code_t ZFormatSmallNotice(ZNotice_t*, ZPacket_t, int*, Z_AuthProc); Code_t ZFormatSmallRawNotice(ZNotice_t *, ZPacket_t, int *); Code_t ZNewFormatSmallRawNotice(ZNotice_t *, ZPacket_t, int *); +Code_t ZFormatSmallRawNoticeList(ZNotice_t *, char *[], int, ZPacket_t, int *); Code_t ZLocateUser(char *, int *, Z_AuthProc); Code_t ZRequestLocations(char *, ZAsyncLocateData_t *, ZNotice_Kind_t, Z_AuthProc); @@ -187,7 +193,6 @@ Code_t ZhmStat(struct in_addr *, ZNotice_t *); Code_t ZInitialize(void); Code_t ZSetServerState(int); Code_t ZSetFD(int); -Code_t ZFormatSmallRawNotice(ZNotice_t*, ZPacket_t, int*); int ZCompareUID(ZUnique_Id_t*, ZUnique_Id_t*); Code_t ZSrvSendRawList(ZNotice_t*, char*[], int, Code_t (*)(ZNotice_t *, char *, int, int)); @@ -228,6 +233,9 @@ Code_t ZPeekPacket(char **buffer, int *ret_len, Code_t ZPeekNotice(ZNotice_t *notice, struct sockaddr_in *from); Code_t ZIfNotice(ZNotice_t *notice, struct sockaddr_in *from, int (*predicate)(ZNotice_t *, void *), void *args); +Code_t ZPeekIfNotice(ZNotice_t *notice, struct sockaddr_in *from, + int (*predicate)(ZNotice_t *, char *), char *args); +Code_t ZPunt(ZSubscription_t *sublist, int nitems, unsigned int port); Code_t ZSubscribeTo(ZSubscription_t *sublist, int nitems, unsigned int port); Code_t ZSubscribeToSansDefaults(ZSubscription_t *sublist, int nitems, |