diff options
author | Robert S. French <rfrench@mit.edu> | 1987-06-25 23:35:02 +0000 |
---|---|---|
committer | Robert S. French <rfrench@mit.edu> | 1987-06-25 23:35:02 +0000 |
commit | 2c8deb46a0f8da453f53e167a2e90f83fb50fd4c (patch) | |
tree | 05a4de0b5b0062d87d4563d3add5bb39af59d5e0 /lib/ZFmtAuth.c | |
parent | 6e0a23514dfcd08657ceae8aed4dd05d185acebc (diff) |
safety
Diffstat (limited to 'lib/ZFmtAuth.c')
-rw-r--r-- | lib/ZFmtAuth.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/lib/ZFmtAuth.c b/lib/ZFmtAuth.c index cd131fa..5849345 100644 --- a/lib/ZFmtAuth.c +++ b/lib/ZFmtAuth.c @@ -25,28 +25,25 @@ Code_t ZFormatAuthenticNotice(notice,buffer,buffer_len,len,session) { char *ptr; int result,retval,hdrlen; - AUTH_DAT dat; - KTEXT_ST authent; - ZChecksum_t our_checksum; CREDENTIALS cred; notice->z_auth = 1; notice->z_authent_len = 0; - notice->z_ascii_authent = (KTEXT)""; + notice->z_ascii_authent = (char *)""; if ((retval = Z_FormatRawHeader(notice,buffer,buffer_len,&hdrlen)) != ZERR_NONE) return (retval); - for (hdrlen--;buffer[hdrlen];hdrlen--) + for (hdrlen--;buffer[hdrlen-1];hdrlen--) ; - if (result = get_credentials(SERVER_SERVICE,SERVER_INSTANCE, +/* if (result = get_credentials(SERVER_SERVICE,SERVER_INSTANCE, __Zephyr_realm,&cred)) return (result+krb_err_base); - +*/ notice->z_checksum = (ZChecksum_t)quad_cksum(buffer,NULL,hdrlen,0, - cred.session); + session); if ((retval = Z_FormatRawHeader(notice,buffer,buffer_len,&hdrlen)) != ZERR_NONE) |