aboutsummaryrefslogtreecommitdiffstats
path: root/imap.c
diff options
context:
space:
mode:
Diffstat (limited to 'imap.c')
-rw-r--r--imap.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/imap.c b/imap.c
index 5fe6bc10..d1ee1c2b 100644
--- a/imap.c
+++ b/imap.c
@@ -391,7 +391,9 @@ static int imap_getauth(int sock, struct query *ctl, char *greeting)
* not other SSL protocols
*/
if (ok == PS_SUCCESS &&
- SSLOpen(sock,ctl->sslcert,ctl->sslkey,"tls1",ctl->sslcertck, ctl->sslcertpath,ctl->sslfingerprint,realhost,ctl->server.pollname) == -1)
+ SSLOpen(sock,ctl->sslcert,ctl->sslkey,"tls1",ctl->sslcertck,
+ ctl->sslcertpath,ctl->sslfingerprint,
+ realhost,ctl->server.pollname) == -1)
{
if (!ctl->sslproto && !ctl->wehaveauthed)
{
@@ -402,7 +404,10 @@ static int imap_getauth(int sock, struct query *ctl, char *greeting)
report(stderr,
GT_("SSL connection failed.\n"));
return PS_SOCKET;
- }
+ } else {
+ if (outlevel >= O_VERBOSE && !ctl->sslproto)
+ report(stdout, GT_("%s: opportunistic upgrade to TLS.\n"), realhost);
+ }
did_stls = TRUE;
/*