diff options
author | Rich Salz <rsalz@openssl.org> | 2016-03-16 17:33:00 +0100 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2016-03-17 03:21:25 +0100 |
commit | 748f254657ab900c0de5e9e1843150c2df4c4bea (patch) | |
tree | 71fca621ae9f196baedea3095d206265ead55af2 /ssl/ssl_ciph.c | |
parent | unix-Makefile template: use $(PERL) everywhere (diff) | |
download | openssl-748f254657ab900c0de5e9e1843150c2df4c4bea.tar.xz openssl-748f254657ab900c0de5e9e1843150c2df4c4bea.zip |
Sort cipher-list at runtime.
Reduces #ifdef complexity.
Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
Diffstat (limited to 'ssl/ssl_ciph.c')
-rw-r--r-- | ssl/ssl_ciph.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ssl/ssl_ciph.c b/ssl/ssl_ciph.c index f7e9259c93..aaeeb8da27 100644 --- a/ssl/ssl_ciph.c +++ b/ssl/ssl_ciph.c @@ -488,7 +488,9 @@ void ssl_load_ciphers(void) { size_t i; const ssl_cipher_table *t; + disabled_enc_mask = 0; + ssl_sort_cipher_list(); for (i = 0, t = ssl_cipher_table_cipher; i < SSL_ENC_NUM_IDX; i++, t++) { if (t->nid == NID_undef) { ssl_cipher_methods[i] = NULL; |