summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2021-04-17 23:25:13 -0600
committerEduardo Chappa <chappa@washington.edu>2021-04-17 23:25:13 -0600
commit11b99bcba4650ea597c0458af6b349312fb95216 (patch)
tree55d9d8d774899a1bcc81589ad27ec4cc67aa887d
parentec66afcc51369f994cf04960fc4828cb007176bd (diff)
downloadalpine-11b99bcba4650ea597c0458af6b349312fb95216.tar.xz
* This code was not committed earlier, and is part of support of the
ssl-ciphers configuration option.
-rw-r--r--imap/src/osdep/unix/ssl_unix.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/imap/src/osdep/unix/ssl_unix.c b/imap/src/osdep/unix/ssl_unix.c
index 5d3ffcd8..841077cc 100644
--- a/imap/src/osdep/unix/ssl_unix.c
+++ b/imap/src/osdep/unix/ssl_unix.c
@@ -416,6 +416,9 @@ static char *ssl_start_work (SSLSTREAM *stream,char *host,unsigned long flags)
else SSL_CTX_set_verify (stream->context,SSL_VERIFY_PEER,ssl_open_verify);
/* set cipher list */
ciphers = (char *) mail_parameters (NIL,GET_SSLCIPHERS,NIL);
+ if(ciphers != NIL
+ && !SSL_CTX_set_cipher_list (stream->context,ciphers))
+ return "No listed ciphers recognized";
/* if a non-standard path desired */
CAfile = (char *) mail_parameters (NIL,GET_SSLCAFILE,NIL);
CApath = (char *) mail_parameters (NIL,GET_SSLCAPATH,NIL);