From d55d2b3ca13f56679d3c8f07be26e7ec0b9f07ef Mon Sep 17 00:00:00 2001 From: John Kohl Date: Thu, 23 Mar 1989 04:30:08 +0000 Subject: add NOENCRYPTION changes --- lib/ZFmtAuth.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/ZFmtAuth.c') 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); -- cgit v1.2.3