aboutsummaryrefslogtreecommitdiffstats
path: root/pop2.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2006-11-01 23:06:04 +0000
committerMatthias Andree <matthias.andree@gmx.de>2006-11-01 23:06:04 +0000
commit983bd40c04cffdf4f9715ae8ba803007a5ed3640 (patch)
tree7a14196bfbdb5ba9ae36bb3fd835970c6aaac851 /pop2.c
parent78a6bed18346b084aefe9569faf7464082720df1 (diff)
downloadfetchmail-983bd40c04cffdf4f9715ae8ba803007a5ed3640.tar.gz
fetchmail-983bd40c04cffdf4f9715ae8ba803007a5ed3640.tar.bz2
fetchmail-983bd40c04cffdf4f9715ae8ba803007a5ed3640.zip
Snapshot 6.3.6-rc1.
svn path=/branches/BRANCH_6-3/; revision=4925
Diffstat (limited to 'pop2.c')
-rw-r--r--pop2.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/pop2.c b/pop2.c
index b8dbb09f..8bfefb4c 100644
--- a/pop2.c
+++ b/pop2.c
@@ -17,6 +17,7 @@
#endif
#include "fetchmail.h"
#include "socket.h"
+#include "i18n.h"
static int pound_arg, equal_arg;
@@ -60,6 +61,11 @@ 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 STARTTLS. Giving up.\n"));
+ return PS_SOCKET;
+ }
strlcpy(shroud, ctl->password, sizeof(shroud));
status = gen_transact(sock,
"HELO %s %s",