summaryrefslogtreecommitdiff
path: root/lib/ZCkAuth.c
diff options
context:
space:
mode:
authorGravatar John Kohl <jtkohl@mit.edu>1989-03-23 04:30:08 +0000
committerGravatar John Kohl <jtkohl@mit.edu>1989-03-23 04:30:08 +0000
commitd55d2b3ca13f56679d3c8f07be26e7ec0b9f07ef (patch)
tree67257b72e0abfdf76d4acc6c6d6da95b4f0872cf /lib/ZCkAuth.c
parent90d4b66449dee9ff1e8588479ce73dffeb13fa69 (diff)
add NOENCRYPTION changes
Diffstat (limited to 'lib/ZCkAuth.c')
-rw-r--r--lib/ZCkAuth.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/ZCkAuth.c b/lib/ZCkAuth.c
index 13d3077..becf408 100644
--- a/lib/ZCkAuth.c
+++ b/lib/ZCkAuth.c
@@ -71,11 +71,14 @@ int ZCheckAuthentication(notice, from)
__Zephyr_realm, &cred))
return (ZAUTH_NO);
+#ifdef NOENCRYPTION
+ our_checksum = 0;
+#else
our_checksum = (ZChecksum_t)quad_cksum(notice->z_packet, NULL,
notice->z_default_format+
strlen(notice->z_default_format)+1-
notice->z_packet, 0, cred.session);
-
+#endif
/* if mismatched checksum, then the packet was corrupted */
return ((our_checksum == notice->z_checksum) ? ZAUTH_YES : ZAUTH_FAILED);