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/ZCkAuth.c | |
parent | 125183b2bce6874c2eca34f1a0253de32e9c957a (diff) |
no more NOENCRYPTION
Diffstat (limited to 'lib/ZCkAuth.c')
-rw-r--r-- | lib/ZCkAuth.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/ZCkAuth.c b/lib/ZCkAuth.c index a851463..94de793 100644 --- a/lib/ZCkAuth.c +++ b/lib/ZCkAuth.c @@ -52,14 +52,11 @@ ZCheckAuthentication(ZNotice_t *notice, session = (C_Block *)cred.session; -#ifdef NOENCRYPTION - our_checksum = 0; -#else our_checksum = des_quad_cksum(notice->z_packet, NULL, notice->z_default_format+ strlen(notice->z_default_format)+1- notice->z_packet, 0, session); -#endif + /* if mismatched checksum, then the packet was corrupted */ return ((our_checksum == notice->z_checksum) ? ZAUTH_YES : ZAUTH_FAILED); #else |