diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2006-11-27 02:47:57 +0000 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2006-11-27 02:47:57 +0000 |
commit | 15b7f3bc60c50d1b13430c2e51b52275fffc4cc9 (patch) | |
tree | 4b1677f02e0088c8c156ed934b3fce8a8601eb75 /pop2.c | |
parent | c5cf37a81f295113478aa9271cef6f43bb9e7f15 (diff) | |
download | fetchmail-15b7f3bc60c50d1b13430c2e51b52275fffc4cc9.tar.gz fetchmail-15b7f3bc60c50d1b13430c2e51b52275fffc4cc9.tar.bz2 fetchmail-15b7f3bc60c50d1b13430c2e51b52275fffc4cc9.zip |
Complain if strong authentication is requested.
svn path=/branches/BRANCH_6-3/; revision=4966
Diffstat (limited to 'pop2.c')
-rw-r--r-- | pop2.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -61,11 +61,19 @@ static int pop2_getauth(int sock, struct query *ctl, char *buf) int status; (void)buf; + if (ctl->sslproto && !strcasecmp(ctl->sslproto, "tls1") && !ctl->use_ssl) { report(stderr, GT_("POP2 does not support STLS. Giving up.\n")); return PS_SOCKET; } + + if (ctl->server.authentication != A_ANY && ctl->server.authentication != A_PASSWORD) + { + report(stderr, GT_("POP2 only supports password authentication. Giving up.\n")); + return PS_AUTHFAIL; + } + strlcpy(shroud, ctl->password, sizeof(shroud)); status = gen_transact(sock, "HELO %s %s", |