diff options
author | Karl Ramm <kcr@mit.edu> | 2008-01-21 19:09:14 +0000 |
---|---|---|
committer | Karl Ramm <kcr@mit.edu> | 2008-01-21 19:09:14 +0000 |
commit | 5de536083518144acf875e49288f8154eb401ed7 (patch) | |
tree | 139d4ef1df79bdf8f1ee8a2e3df391ca91dd7517 /lib/ZFmtAuth.c | |
parent | 125183b2bce6874c2eca34f1a0253de32e9c957a (diff) |
no more NOENCRYPTION
Diffstat (limited to 'lib/ZFmtAuth.c')
-rw-r--r-- | lib/ZFmtAuth.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/ZFmtAuth.c b/lib/ZFmtAuth.c index 21b133b..821e608 100644 --- a/lib/ZFmtAuth.c +++ b/lib/ZFmtAuth.c @@ -37,12 +37,9 @@ ZFormatAuthenticNotice(ZNotice_t *notice, &hdrlen, &ptr, NULL)) != ZERR_NONE) return (retval); -#ifdef NOENCRYPTION - newnotice.z_checksum = 0; -#else newnotice.z_checksum = (ZChecksum_t)des_quad_cksum((unsigned char *)buffer, NULL, ptr - buffer, 0, (C_Block *)session); -#endif + if ((retval = Z_FormatRawHeader(&newnotice, buffer, buffer_len, &hdrlen, NULL, NULL)) != ZERR_NONE) return (retval); |