aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2001-02-14 17:11:14 +0000
committerEric S. Raymond <esr@thyrsus.com>2001-02-14 17:11:14 +0000
commit7de3063b8cda06b046214619c4a202ef12da5f7a (patch)
treecc652e3e94bf0f7d424b1c4530a11f398a8b2669
parent8951b137f01f72ba5066cfcb61593d86fcc76440 (diff)
downloadfetchmail-7de3063b8cda06b046214619c4a202ef12da5f7a.tar.gz
fetchmail-7de3063b8cda06b046214619c4a202ef12da5f7a.tar.bz2
fetchmail-7de3063b8cda06b046214619c4a202ef12da5f7a.zip
Fix patch for Kerberos
svn path=/trunk/; revision=3095
-rw-r--r--kerberos.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/kerberos.c b/kerberos.c
index 5ebbf1d6..ab8c7295 100644
--- a/kerberos.c
+++ b/kerberos.c
@@ -13,7 +13,7 @@
#include "fetchmail.h"
#include "socket.h"
-#include "i18n.h"
+#include <netinet/in.h> /* for htonl/ntohl */
#ifdef KERBEROS_V4
@@ -31,6 +31,10 @@
# include <krb.h>
# endif
+/* des.h might define _ for no good reason. */
+#undef _
+#include "i18n.h"
+
#if SIZEOF_INT == 4
typedef int int32;
#elif SIZEOF_SHORT == 4
@@ -130,7 +134,7 @@ int do_rfc1731(int sock, char *command, char *truename)
memcpy(session, credentials.session, sizeof session);
memset(&credentials, 0, sizeof credentials);
- des_key_sched(session, schedule);
+ des_key_sched(&session, schedule);
result = krb_get_tf_fullname(TKT_FILE, tktuser, tktinst, tktrealm);
if (result) {