Rename some of the values of the ssl variable.

This commit is contained in:
Lefteris Chatzimparmpas 2013-06-08 11:06:28 +02:00
parent 0fae651308
commit 38f5f428c4
3 changed files with 8 additions and 8 deletions

View File

@ -201,7 +201,7 @@ myaccount = IMAP {
server = 'imap.mail.server', server = 'imap.mail.server',
username = 'me', username = 'me',
password = 'secret', password = 'secret',
ssl = 'ssl3' ssl = 'ssl23'
} }
.Ed .Ed
.Pp .Pp
@ -237,15 +237,15 @@ for imap and
.Dq 993 .Dq 993
for imaps. for imaps.
.It Va ssl .It Va ssl
Forces an imaps connection and specifies the SSL/TLS protocol to be used. It Forces an imaps connection and specifies the SSL/TLS protocol/version to be
takes a used. It takes a
.Vt string .Vt string
as a value, specifically one of: as a value, specifically one of:
.Dq ssl3 , .Dq ssl3 ,
.Dq ssl23 , .Dq ssl23 ,
.Dq tls1 , .Dq tls1 ,
.Dq tls11 , .Dq tls1.1 ,
.Dq tls12 . .Dq tls1.2 .
.El .El
.Pp .Pp
.Ss LISTING .Ss LISTING

View File

@ -24,7 +24,7 @@ account2 = IMAP {
server = 'imap2.mail.server', server = 'imap2.mail.server',
username = 'user2', username = 'user2',
password = 'secret2', password = 'secret2',
ssl = 'ssl3', ssl = 'ssl23',
} }
-- Get a list of the available mailboxes and folders -- Get a list of the available mailboxes and folders

View File

@ -95,9 +95,9 @@ open_secure_connection(session *ssn)
ctx = ssl3ctx; ctx = ssl3ctx;
} else if (!strcasecmp(ssn->sslproto, "tls1")) { } else if (!strcasecmp(ssn->sslproto, "tls1")) {
ctx = tls1ctx; ctx = tls1ctx;
} else if (!strcasecmp(ssn->sslproto, "tls11")) { } else if (!strcasecmp(ssn->sslproto, "tls1.1")) {
ctx = tls11ctx; ctx = tls11ctx;
} else if (!strcasecmp(ssn->sslproto, "tls12")) { } else if (!strcasecmp(ssn->sslproto, "tls1.2")) {
ctx = tls12ctx; ctx = tls12ctx;
} else { } else {
ctx = ssl23ctx; ctx = ssl23ctx;