summaryrefslogtreecommitdiff
path: root/lib/ZFmtAuth.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/ZFmtAuth.c
parent90d4b66449dee9ff1e8588479ce73dffeb13fa69 (diff)
add NOENCRYPTION changes
Diffstat (limited to 'lib/ZFmtAuth.c')
-rw-r--r--lib/ZFmtAuth.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/ZFmtAuth.c b/lib/ZFmtAuth.c
index 7698058..d0bf6c2 100644
--- a/lib/ZFmtAuth.c
+++ b/lib/ZFmtAuth.c
@@ -41,9 +41,12 @@ Code_t ZFormatAuthenticNotice(notice, buffer, buffer_len, len, session)
&hdrlen, &ptr)) != ZERR_NONE)
return (retval);
+#ifdef NOENCRYPTION
+ newnotice.z_checksum = 0;
+#else
newnotice.z_checksum = (ZChecksum_t)quad_cksum(buffer, NULL, ptr - buffer,
0, session);
-
+#endif
if ((retval = Z_FormatRawHeader(&newnotice, buffer, buffer_len,
&hdrlen, (char **) 0)) != ZERR_NONE)
return (retval);