diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2001-02-19 08:11:35 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2001-02-19 08:11:35 +0000 |
commit | f077de8e8d6eb2f0c3ccadf6a38611fb14a1f89f (patch) | |
tree | fa65efc291271342d112903af2aa9a7dc5e8fed8 /pop3.c | |
parent | c406e3816603d635f5b08f9d76da1bdcf28ed1c3 (diff) | |
download | fetchmail-f077de8e8d6eb2f0c3ccadf6a38611fb14a1f89f.tar.gz fetchmail-f077de8e8d6eb2f0c3ccadf6a38611fb14a1f89f.tar.bz2 fetchmail-f077de8e8d6eb2f0c3ccadf6a38611fb14a1f89f.zip |
Enable user to suppress Kerberos and GSSAPI.
svn path=/trunk/; revision=3117
Diffstat (limited to 'pop3.c')
-rw-r--r-- | pop3.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -250,12 +250,17 @@ int pop3_getauth(int sock, struct query *ctl, char *greeting) } #if defined(GSSAPI) - if (has_kerberos) + if ((ctl->server.preauthenticate == A_ANY + || ctl->server.preauthenticate==A_GSSAPI) + && has_gssapi) return(do_gssauth(sock, "AUTH", ctl->server.truename, ctl->remotename)); #endif /* defined(GSSAPI) */ #if defined(KERBEROS_V4) || defined(KERBEROS_V5) - if (has_kerberos) + if ((ctl->server.preauthenticate == A_ANY + || ctl->server.preauthenticate==A_KERBEROS_V4 + || ctl->server.preauthenticate==A_KERBEROS_V5) + && has_kerberos) return(do_rfc1731(sock, "AUTH", ctl->server.truename)); #endif /* defined(KERBEROS_V4) || defined(KERBEROS_V5) */ if (has_cram) |