diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2001-02-11 23:26:10 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2001-02-11 23:26:10 +0000 |
commit | d6c728ad218f79305ad759eba6d787d125c67ec3 (patch) | |
tree | 3ab20cfce9699d9c0af61ad73229c5a16e577b95 /fetchmail.c | |
parent | 18f57966dd58cb32956332ab4ac235edd8d1d7ca (diff) | |
download | fetchmail-d6c728ad218f79305ad759eba6d787d125c67ec3.tar.gz fetchmail-d6c728ad218f79305ad759eba6d787d125c67ec3.tar.bz2 fetchmail-d6c728ad218f79305ad759eba6d787d125c67ec3.zip |
Let's get rid of the old protocols with preauthentication bundled in.
svn path=/trunk/; revision=3071
Diffstat (limited to 'fetchmail.c')
-rw-r--r-- | fetchmail.c | 25 |
1 files changed, 7 insertions, 18 deletions
diff --git a/fetchmail.c b/fetchmail.c index 3b06594d..9e42335a 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -323,13 +323,7 @@ int main(int argc, char **argv) { if (ctl->active && !(implicitmode && ctl->server.skip)&&!ctl->password) { - if (ctl->server.preauthenticate == A_KERBEROS_V4 || - ctl->server.preauthenticate == A_KERBEROS_V5 || - ctl->server.preauthenticate == A_SSH || -#ifdef GSSAPI - ctl->server.protocol == P_IMAP_GSS || -#endif /* GSSAPI */ - ctl->server.protocol == P_IMAP_K4) + if (ctl->server.preauthenticate != A_PASSWORD) /* Server won't care what the password is, but there must be some non-null string here. */ ctl->password = ctl->remotename; @@ -499,11 +493,7 @@ int main(int argc, char **argv) for (ctl = querylist; ctl; ctl = ctl->next) { if (ctl->active && !(implicitmode && ctl->server.skip) - && ctl->server.protocol != P_ETRN - && ctl->server.protocol != P_IMAP_K4 -#ifdef GSSAPI - && ctl->server.protocol != P_IMAP_GSS -#endif /* GSSAPI */ + && ctl->server.preauthenticate == A_PASSWORD && !ctl->password) { if (!isatty(0)) @@ -1486,9 +1476,6 @@ static int query_host(struct query *ctl) #endif /* POP3_ENABLE */ break; case P_IMAP: - case P_IMAP_K4: - case P_IMAP_CRAM_MD5: - case P_IMAP_LOGIN: #ifdef GSSAPI case P_IMAP_GSS: #endif /* GSSAPI */ @@ -1578,14 +1565,16 @@ static void dump_params (struct runctl *runp, ctl->server.skip ? _("will not") : _("will")); /* * Don't poll for password when there is one or when using the ETRN - * or IMAP-GSS protocol + * or GSSAPI or KERBEROS protocol */ /* ETRN, IMAP_GSS, and IMAP_K4 do not need a password, so skip this */ if ( (ctl->server.protocol != P_ETRN) #ifdef GSSAPI - && (ctl->server.protocol != P_IMAP_GSS) + && (ctl->server.preauthenticate != A_GSSAPI) #endif /* GSSAPI */ - && (ctl->server.protocol != P_IMAP_K4) ) { + && (ctl->server.preauthenticate != A_KERBEROS_V4) + && (ctl->server.preauthenticate != A_KERBEROS_V5)) + { if (!ctl->password) printf(_(" Password will be prompted for.\n")); else if (outlevel >= O_VERBOSE) |