diff options
author | John Kohl <jtkohl@mit.edu> | 1988-07-08 06:47:09 +0000 |
---|---|---|
committer | John Kohl <jtkohl@mit.edu> | 1988-07-08 06:47:09 +0000 |
commit | 60da62b3455b4f61c9b53bba8674624a4bcf17cc (patch) | |
tree | a29e1e2c3e2b25ed3da79e659271118a23c784dc /lib | |
parent | cd8947b75038d28d16095c6f3a5b7e6fb3c0e6fe (diff) |
defaults don't need to be authenticated
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ZRetSubs.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/ZRetSubs.c b/lib/ZRetSubs.c index 9af736d..e1b4ca7 100644 --- a/lib/ZRetSubs.c +++ b/lib/ZRetSubs.c @@ -39,7 +39,7 @@ Code_t ZRetrieveSubscriptions(port,nsubs) notice.z_message_len = strlen(asciiport)+1; notice.z_opcode = CLIENT_GIMMESUBS; - return(Z_RetSubs(¬ice, nsubs)); + return(Z_RetSubs(¬ice, nsubs, ZAUTH)); } Code_t ZRetrieveDefaultSubscriptions(nsubs) @@ -52,13 +52,14 @@ Code_t ZRetrieveDefaultSubscriptions(nsubs) notice.z_message_len = 0; notice.z_opcode = CLIENT_GIMMEDEFS; - return(Z_RetSubs(¬ice, nsubs)); + return(Z_RetSubs(¬ice, nsubs, ZNOAUTH)); } -static Code_t Z_RetSubs(notice, nsubs) +static Code_t Z_RetSubs(notice, nsubs, auth_routine) register ZNotice_t *notice; int *nsubs; + int (*auth_routine)(); { int retval,nrecv,gimmeack; register int i; @@ -86,7 +87,7 @@ static Code_t Z_RetSubs(notice, nsubs) notice->z_recipient = ""; notice->z_default_format = ""; - if ((retval = ZSendNotice(notice,ZAUTH)) != ZERR_NONE) + if ((retval = ZSendNotice(notice,auth_routine)) != ZERR_NONE) return (retval); nrecv = 0; |