From 7de3063b8cda06b046214619c4a202ef12da5f7a Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 14 Feb 2001 17:11:14 +0000 Subject: Fix patch for Kerberos svn path=/trunk/; revision=3095 --- kerberos.c | 8 ++++++-- 1 file 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 /* for htonl/ntohl */ #ifdef KERBEROS_V4 @@ -31,6 +31,10 @@ # include # 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) { -- cgit v1.2.3