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

View File

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

View File

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