aboutsummaryrefslogtreecommitdiffstats
path: root/imap.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2001-02-19 20:31:30 +0000
committerEric S. Raymond <esr@thyrsus.com>2001-02-19 20:31:30 +0000
commitea8294a37ef78608fc3b50c8363e64d93d2d491d (patch)
tree19f356e39db49f1a658cd7f1fc797c439ced55de /imap.c
parent665f79a142fb8db222aa6c6634173c25b2829d68 (diff)
downloadfetchmail-ea8294a37ef78608fc3b50c8363e64d93d2d491d.tar.gz
fetchmail-ea8294a37ef78608fc3b50c8363e64d93d2d491d.tar.bz2
fetchmail-ea8294a37ef78608fc3b50c8363e64d93d2d491d.zip
preauth -> auth.
svn path=/trunk/; revision=3121
Diffstat (limited to 'imap.c')
-rw-r--r--imap.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/imap.c b/imap.c
index 02b0ea43..cb78a0ac 100644
--- a/imap.c
+++ b/imap.c
@@ -270,7 +270,7 @@ int imap_getauth(int sock, struct query *ctl, char *greeting)
* If either (a) we saw a PREAUTH token in the greeting, or
* (b) the user specified ssh preauthentication, then we're done.
*/
- if (preauth || ctl->server.preauthenticate == A_SSH)
+ if (preauth || ctl->server.authenticate == A_SSH)
{
preauth = FALSE; /* reset for the next session */
return(PS_SUCCESS);
@@ -281,16 +281,16 @@ int imap_getauth(int sock, struct query *ctl, char *greeting)
* Try the protocol variants that don't require passwords first.
*/
#ifdef GSSAPI
- if ((ctl->server.preauthenticate == A_ANY
- || ctl->server.preauthenticate==A_GSSAPI)
+ if ((ctl->server.authenticate == A_ANY
+ || ctl->server.authenticate==A_GSSAPI)
&& strstr(capabilities, "AUTH=GSSAPI"))
return(do_gssauth(sock, ctl->server.truename, ctl->remotename));
#endif /* GSSAPI */
#ifdef KERBEROS_V4
- if ((ctl->server.preauthenticate == A_ANY
- || ctl->server.preauthenticate==A_KERBEROS_V4
- || ctl->server.preauthenticate==A_KERBEROS_V5)
+ if ((ctl->server.authenticate == A_ANY
+ || ctl->server.authenticate==A_KERBEROS_V4
+ || ctl->server.authenticate==A_KERBEROS_V5)
&& strstr(capabilities, "AUTH=KERBEROS_V4"))
{
if ((ok = do_rfc1731(sock, "AUTHENTICATE", ctl->server.truename)))