summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);