From e36a92e005700a7cbccdf2d5885baf1efb43e4ee Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Mon, 15 Dec 1997 02:42:30 +0000 Subject: GSSAPI support. svn path=/trunk/; revision=1569 --- fetchmail.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'fetchmail.c') diff --git a/fetchmail.c b/fetchmail.c index b620467a..7f78eae6 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -295,7 +295,7 @@ int main (int argc, char **argv) for (ctl = querylist; ctl; ctl = ctl->next) if (ctl->active && !(implicitmode && ctl->server.skip)&&!ctl->password) { - if (ctl->server.preauthenticate == A_KERBEROS_V4 || ctl->server.protocol == P_IMAP_K4) + if (ctl->server.preauthenticate == A_KERBEROS_V4 || ctl->server.protocol == P_IMAP_K4 || ctl->server.protocol == P_IMAP_GSS) /* Server won't care what the password is, but there must be some non-null string here. */ ctl->password = ctl->remotename; @@ -311,7 +311,7 @@ int main (int argc, char **argv) ctl->password = xstrdup(p->password); } - if (ctl->server.protocol != P_ETRN && ctl->server.protocol != P_IMAP_K4 && !ctl->password) + if (ctl->server.protocol != P_ETRN && ctl->server.protocol != P_IMAP_K4 && ctl->server.protocol != P_IMAP_GSS && !ctl->password) { (void) sprintf(tmpbuf, "Enter password for %s@%s: ", ctl->remotename, ctl->server.pollname); @@ -874,6 +874,7 @@ static int query_host(struct query *ctl) break; case P_IMAP: case P_IMAP_K4: + case P_IMAP_GSS: #ifdef IMAP_ENABLE return(doIMAP(ctl)); #else -- cgit v1.2.3