diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1997-05-28 13:54:37 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1997-05-28 13:54:37 +0000 |
commit | 2afa38327b6951413ba8e3825e62d5dc791d5252 (patch) | |
tree | 6f8b1b8ae8b42d952934924ee5d5103fa56ca5c1 /imap.c | |
parent | 79e1585c2d078e1d80e633107cd1f5a6bfe51496 (diff) | |
download | fetchmail-2afa38327b6951413ba8e3825e62d5dc791d5252.tar.gz fetchmail-2afa38327b6951413ba8e3825e62d5dc791d5252.tar.bz2 fetchmail-2afa38327b6951413ba8e3825e62d5dc791d5252.zip |
Force 32 bits for RFC1731 calculation.
svn path=/trunk/; revision=1034
Diffstat (limited to 'imap.c')
-rw-r--r-- | imap.c | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -81,16 +81,15 @@ int imap_ok (int sock, char *argbuf) } #ifdef KERBEROS_V4 +#include <sys/types.h> + static int do_rfc1731(int sock, struct query *ctl, char *buf) -/* authenticate as per RFC1731 - * note 32-bit integer requirement here... - * sizeof int must be 4! - */ +/* authenticate as per RFC1731 -- note 32-bit integer requirement here */ { int result = 0, len; char buf1[4096], buf2[4096]; union { - int cint; + u_int32_t cint; char cstr[4]; } challenge1, challenge2; char srvinst[INST_SZ]; |