summaryrefslogtreecommitdiff
path: root/imap/src/osdep/unix/env_unix.c
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2021-04-17 23:22:48 -0600
committerEduardo Chappa <chappa@washington.edu>2021-04-17 23:22:48 -0600
commitec66afcc51369f994cf04960fc4828cb007176bd (patch)
tree2056be54d1b2ff06a02377c41594efe4c29274d3 /imap/src/osdep/unix/env_unix.c
parentcd24f8efb57dd2b057ab6a216ff3789876c62420 (diff)
downloadalpine-ec66afcc51369f994cf04960fc4828cb007176bd.tar.xz
* Add new variable ssl-ciphers to list the ciphers that will be used when
negotiating a secure connection with a SSL server. Work in collaboration with professor Martin Trusler.
Diffstat (limited to 'imap/src/osdep/unix/env_unix.c')
-rw-r--r--imap/src/osdep/unix/env_unix.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/imap/src/osdep/unix/env_unix.c b/imap/src/osdep/unix/env_unix.c
index afec59b1..c41a5d04 100644
--- a/imap/src/osdep/unix/env_unix.c
+++ b/imap/src/osdep/unix/env_unix.c
@@ -76,6 +76,7 @@ static char *sslCApath = NIL; /* non-standard CA path */
static char *sslCAfile = NIL; /* non-standard CA container */
static char *sslAppCApath = NIL; /* App SSL CA path */
static char *sslAppCAfile = NIL; /* App SSL CA container */
+static char *sslciphers = NIL; /* ciphers to negotiate with a SSL server */
static short anonymous = NIL; /* is anonymous */
static short blackBox = NIL; /* is a black box */
static short closedBox = NIL; /* is a closed box (uses chroot() jail) */
@@ -370,6 +371,13 @@ void *env_parameters (long function,void *value)
case GET_SSLAPPCAFILE:
ret = (void *) sslAppCAfile;
break;
+ case SET_SSLCIPHERS: /* this can be set null */
+ if (sslciphers) fs_give ((void **) &sslciphers);
+ sslciphers = value ? cpystr ((char *) value) : value;
+ break;
+ case GET_SSLCIPHERS:
+ ret = (void *) sslciphers;
+ break;
case SET_LISTMAXLEVEL:
list_max_level = (long) value;
case GET_LISTMAXLEVEL: