From 41620bcbb3f21e2cf7d23242ab0d21b07c308a66 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 4 Jun 1998 04:28:41 +0000 Subject: Brendan Cully's fixes for GSSAPI. svn path=/trunk/; revision=1892 --- fetchmail.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'fetchmail.c') diff --git a/fetchmail.c b/fetchmail.c index 79563ab6..29ba051f 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -339,8 +339,10 @@ int main (int argc, char **argv) { if (ctl->server.preauthenticate == A_KERBEROS_V4 || ctl->server.preauthenticate == A_KERBEROS_V5 || - ctl->server.protocol == P_IMAP_K4 || - ctl->server.protocol == P_IMAP_GSS) +#ifdef GSSAPI + ctl->server.protocol == P_IMAP_GSS || +#endif /* GSSAPI */ + ctl->server.protocol == P_IMAP_K4) /* Server won't care what the password is, but there must be some non-null string here. */ ctl->password = ctl->remotename; @@ -356,7 +358,11 @@ int main (int argc, char **argv) ctl->password = xstrdup(p->password); } - if (ctl->server.protocol != P_ETRN && ctl->server.protocol != P_IMAP_K4 && ctl->server.protocol != P_IMAP_GSS && !ctl->password) + if (ctl->server.protocol != P_ETRN && ctl->server.protocol != P_IMAP_K4 +#ifdef GSSAPI + && ctl->server.protocol != P_IMAP_GSS +#endif /* GSSAPI */ + && !ctl->password) { free(tmpbuf); #define PASSWORD_PROMPT "Enter password for %s@%s: " @@ -1081,7 +1087,9 @@ static int query_host(struct query *ctl) break; case P_IMAP: case P_IMAP_K4: +#ifdef GSSAPI case P_IMAP_GSS: +#endif /* GSSAPI */ #ifdef IMAP_ENABLE return(doIMAP(ctl)); #else -- cgit v1.2.3