diff options
author | Robert S. French <rfrench@mit.edu> | 1987-06-23 12:08:18 +0000 |
---|---|---|
committer | Robert S. French <rfrench@mit.edu> | 1987-06-23 12:08:18 +0000 |
commit | b525e4aa51d7f5fd4eef84a27a542d8b1593cbe8 (patch) | |
tree | d4b0a3e937fd8a7b8ab2cfb7d6869e544ad439eb /lib | |
parent | cd73b10db92fd36835800ed839d010f5b69bdca6 (diff) |
KRB format
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ZCkIfNot.c | 4 | ||||
-rw-r--r-- | lib/ZFmtNotice.c | 5 | ||||
-rw-r--r-- | lib/ZIfNotice.c | 4 | ||||
-rw-r--r-- | lib/ZLocateU.c | 2 |
4 files changed, 10 insertions, 5 deletions
diff --git a/lib/ZCkIfNot.c b/lib/ZCkIfNot.c index 751f378..22119df 100644 --- a/lib/ZCkIfNot.c +++ b/lib/ZCkIfNot.c @@ -36,7 +36,8 @@ Code_t ZCheckIfNotice(buffer,buffer_len,notice,auth,predicate,args) for (;qcount;qcount--) { if ((retval = ZParseNotice(qptr->packet,qptr->packet_len, - &tmpnotice,&tmpauth)) != ZERR_NONE) + &tmpnotice,&tmpauth,&qptr->from)) + != ZERR_NONE) return (retval); if ((predicate)(&tmpnotice,args)) { if (qptr->packet_len > buffer_len) @@ -46,6 +47,7 @@ Code_t ZCheckIfNotice(buffer,buffer_len,notice,auth,predicate,args) notice,auth)) != ZERR_NONE) return (retval); + *auth = tmpauth; return (Z_RemQueue(qptr)); } qptr = qptr->next; diff --git a/lib/ZFmtNotice.c b/lib/ZFmtNotice.c index f2f9f2d..54d9933 100644 --- a/lib/ZFmtNotice.c +++ b/lib/ZFmtNotice.c @@ -16,17 +16,18 @@ #include <zephyr/zephyr.h> -Code_t ZFormatNotice(notice,buffer,buffer_len,len) +Code_t ZFormatNotice(notice,buffer,buffer_len,len,cert) ZNotice_t *notice; ZPacket_t buffer; int buffer_len; int *len; + int cert; { char *ptr; int hdrlen; Code_t retval; - if ((retval = Z_FormatHeader(notice,buffer,buffer_len,&hdrlen)) != + if ((retval = Z_FormatHeader(notice,buffer,buffer_len,&hdrlen,cert)) != ZERR_NONE) return (retval); diff --git a/lib/ZIfNotice.c b/lib/ZIfNotice.c index 8482ef5..44815cf 100644 --- a/lib/ZIfNotice.c +++ b/lib/ZIfNotice.c @@ -41,7 +41,8 @@ Code_t ZIfNotice(buffer,buffer_len,notice,auth,predicate,args) for (;;qcount--) { if ((retval = ZParseNotice(qptr->packet,qptr->packet_len, - &tmpnotice,&tmpauth)) != ZERR_NONE) + &tmpnotice,&tmpauth,&qptr->from)) + != ZERR_NONE) return (retval); if ((predicate)(&tmpnotice,args)) { if (qptr->packet_len > buffer_len) @@ -51,6 +52,7 @@ Code_t ZIfNotice(buffer,buffer_len,notice,auth,predicate,args) notice,auth)) != ZERR_NONE) return (retval); + *auth = tmpauth; return (Z_RemQueue(qptr)); } /* Grunch! */ diff --git a/lib/ZLocateU.c b/lib/ZLocateU.c index 72ccdb0..912d4c2 100644 --- a/lib/ZLocateU.c +++ b/lib/ZLocateU.c @@ -41,7 +41,7 @@ Code_t ZLocateUser(user,nlocs) notice.z_recipient = ""; notice.z_message_len = 0; - if ((retval = ZSendNotice(¬ice)) != ZERR_NONE) + if ((retval = ZSendNotice(¬ice,0)) != ZERR_NONE) return (retval); if ((retval = ZIfNotice(buffer,sizeof buffer,&retnotice,&auth, |