aboutsummaryrefslogtreecommitdiffstats
path: root/pop3.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2006-08-14 23:27:23 +0000
committerMatthias Andree <matthias.andree@gmx.de>2006-08-14 23:27:23 +0000
commit221e4bda865f30ce604386b5266c564e4cd5d95e (patch)
tree4afccca00751eec7635e42e83162ae712f66e313 /pop3.c
parentdf4a264f6a4bf53592f9e273462a8861ea7e6a6d (diff)
downloadfetchmail-221e4bda865f30ce604386b5266c564e4cd5d95e.tar.gz
fetchmail-221e4bda865f30ce604386b5266c564e4cd5d95e.tar.bz2
fetchmail-221e4bda865f30ce604386b5266c564e4cd5d95e.zip
Add IMAP AUTH=EXTERNAL support. BerliOS Patch #1095.
Courtesy of Götz 'nimrill' Babin-Ebell. This patch also makes --sslproto arguments case insensitive. svn path=/branches/BRANCH_6-3/; revision=4896
Diffstat (limited to 'pop3.c')
-rw-r--r--pop3.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pop3.c b/pop3.c
index e32103d7..0b201289 100644
--- a/pop3.c
+++ b/pop3.c
@@ -441,7 +441,7 @@ static int pop3_getauth(int sock, struct query *ctl, char *greeting)
#ifdef SSL_ENABLE
if (has_ssl
&& !ctl->use_ssl
- && (!ctl->sslproto || !strcmp(ctl->sslproto,"tls1")))
+ && (!ctl->sslproto || !strcasecmp(ctl->sslproto,"tls1")))
{
char *realhost;
@@ -453,7 +453,7 @@ static int pop3_getauth(int sock, struct query *ctl, char *greeting)
if (ok == PS_SUCCESS &&
SSLOpen(sock,ctl->sslcert,ctl->sslkey,"tls1",ctl->sslcertck,
ctl->sslcertpath,ctl->sslfingerprint,
- realhost,ctl->server.pollname) == -1)
+ realhost,ctl->server.pollname,&ctl->remotename) == -1)
{
if (!ctl->sslproto && !ctl->wehaveauthed)
{