aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS2
-rw-r--r--imap.c9
2 files changed, 4 insertions, 7 deletions
diff --git a/NEWS b/NEWS
index a8a3f290..2e2a0d96 100644
--- a/NEWS
+++ b/NEWS
@@ -20,8 +20,6 @@ every user entry in a multi-user poll declaration.
* Use the libmd functions for md5 under Free BSD? (Low priority.)
-* Make the IMAP-K4 support 64-bit-safe.
-
Release Notes:
------------------------------------------------------------------------------
diff --git a/imap.c b/imap.c
index 733812c9..fb057bda 100644
--- a/imap.c
+++ b/imap.c
@@ -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];