| 2 * It contains source for the ZFormatAuthenticNotice function. |
2 * It contains source for the ZFormatAuthenticNotice function. |
| 3 * |
3 * |
| 4 * Created by: Robert French |
4 * Created by: Robert French |
| 5 * |
5 * |
| 6 * $Source$ |
6 * $Source$ |
| 7 * $Author: warmenhoven $ |
7 * $Author: lschiere $ |
| 8 * |
8 * |
| 9 * Copyright (c) 1987,1988 by the Massachusetts Institute of Technology. |
9 * Copyright (c) 1987,1988 by the Massachusetts Institute of Technology. |
| 10 * For copying and distribution information, see the file |
10 * For copying and distribution information, see the file |
| 11 * "mit-copyright.h". |
11 * "mit-copyright.h". |
| 12 */ |
12 */ |
| 41 |
41 |
| 42 #ifdef NOENCRYPTION |
42 #ifdef NOENCRYPTION |
| 43 newnotice.z_checksum = 0; |
43 newnotice.z_checksum = 0; |
| 44 #else |
44 #else |
| 45 newnotice.z_checksum = |
45 newnotice.z_checksum = |
| 46 (ZChecksum_t)des_quad_cksum(buffer, NULL, ptr - buffer, 0, session); |
46 (ZChecksum_t)des_quad_cksum(buffer, NULL, ptr - buffer, 0, (C_Block*)session); |
| 47 #endif |
47 #endif |
| 48 if ((retval = Z_FormatRawHeader(&newnotice, buffer, buffer_len, |
48 if ((retval = Z_FormatRawHeader(&newnotice, buffer, buffer_len, |
| 49 &hdrlen, NULL, NULL)) != ZERR_NONE) |
49 &hdrlen, NULL, NULL)) != ZERR_NONE) |
| 50 return (retval); |
50 return (retval); |
| 51 |
51 |