summaryrefslogtreecommitdiff
path: root/imap/src
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2021-04-18 11:05:36 -0600
committerEduardo Chappa <chappa@washington.edu>2021-04-18 11:05:36 -0600
commit3e9f5e0b67a6b74bd5771e92079639a9ff02f194 (patch)
tree1de6349624f640c7b928311be660d014d202218c /imap/src
parent43f4dca2ead9fb8f65778c2772228dff554e1c75 (diff)
downloadalpine-3e9f5e0b67a6b74bd5771e92079639a9ff02f194.tar.xz
* Fixes to the support for ssl ciphers (variable could be set
in alpine, but never seen by c-client.)
Diffstat (limited to 'imap/src')
-rw-r--r--imap/src/osdep/unix/ssl_unix.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/imap/src/osdep/unix/ssl_unix.c b/imap/src/osdep/unix/ssl_unix.c
index 841077cc..b43842df 100644
--- a/imap/src/osdep/unix/ssl_unix.c
+++ b/imap/src/osdep/unix/ssl_unix.c
@@ -1,5 +1,5 @@
/* ========================================================================
- * Copyright 2019 Eduardo Chappa
+ * Copyright 2019-2021 Eduardo Chappa
* Copyright 2008-2009 Mark Crispin
* ========================================================================
*/
@@ -417,6 +417,7 @@ static char *ssl_start_work (SSLSTREAM *stream,char *host,unsigned long flags)
/* set cipher list */
ciphers = (char *) mail_parameters (NIL,GET_SSLCIPHERS,NIL);
if(ciphers != NIL
+ && *ciphers != '\0'
&& !SSL_CTX_set_cipher_list (stream->context,ciphers))
return "No listed ciphers recognized";
/* if a non-standard path desired */