diff options
| author | Anton <anton@picapica> | 2019-06-04 12:58:21 +0400 |
|---|---|---|
| committer | Anton <anton@picapica> | 2019-06-04 12:58:21 +0400 |
| commit | e4d7941d90684379fa1b32db2c96bdb4be117560 (patch) | |
| tree | c58746e341ebfc47b996c24139b95dea9453cd74 /PICA_node.c | |
| parent | da5882b9786fd364be48e0a3669bb29f0186e5ca (diff) | |
| download | pica-pica-e4d7941d90684379fa1b32db2c96bdb4be117560.tar.gz pica-pica-e4d7941d90684379fa1b32db2c96bdb4be117560.zip | |
append @SECLEVEL=0 to the anon cipherlist string when building with OpenSSL >= 1.1.0, ADH ciphers are disabled by default in OpenSSL 1.1.0 branch
Diffstat (limited to 'PICA_node.c')
| -rw-r--r-- | PICA_node.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/PICA_node.c b/PICA_node.c index c38fd4a..0e9615d 100644 --- a/PICA_node.c +++ b/PICA_node.c @@ -1762,7 +1762,11 @@ int PICA_node_init() if (ret != 1) PICA_fatal("Failed to set DH parameters"); +#if OPENSSL_VERSION_NUMBER < 0x10100000L ret = SSL_CTX_set_cipher_list(anon_ctx, PICA_TLS_ANONDHCIPHERLIST); +#else + ret = SSL_CTX_set_cipher_list(anon_ctx, PICA_TLS_ANONDHCIPHERLIST "@SECLEVEL=0"); +#endif if (!ret) PICA_fatal("failed to set cipher list " PICA_TLS_ANONDHCIPHERLIST); |
