aboutsummaryrefslogtreecommitdiff
path: root/src/stream/ngx_stream_ssl_module.c
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2016-03-31 23:38:34 +0300
committerMaxim Dounin <mdounin@mdounin.ru>2016-03-31 23:38:34 +0300
commit8fc90404fb9c7ead8666a74519035e2b6a2333a7 (patch)
tree16407c8121afcb9899637286d8ce04976f0ff1b2 /src/stream/ngx_stream_ssl_module.c
parente6f04424affb4c16db9d9c65487ed47459abba7f (diff)
downloadnginx-8fc90404fb9c7ead8666a74519035e2b6a2333a7.tar.gz
nginx-8fc90404fb9c7ead8666a74519035e2b6a2333a7.zip
SSL: RSA_generate_key() is deprecated in OpenSSL 1.1.0.
OpenSSL removed support for all 40 and 56 bit ciphers.
Diffstat (limited to 'src/stream/ngx_stream_ssl_module.c')
-rw-r--r--src/stream/ngx_stream_ssl_module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stream/ngx_stream_ssl_module.c b/src/stream/ngx_stream_ssl_module.c
index 7abd9e150..e12da1b86 100644
--- a/src/stream/ngx_stream_ssl_module.c
+++ b/src/stream/ngx_stream_ssl_module.c
@@ -276,7 +276,7 @@ ngx_stream_ssl_merge_conf(ngx_conf_t *cf, void *parent, void *child)
SSL_CTX_set_options(conf->ssl.ctx, SSL_OP_CIPHER_SERVER_PREFERENCE);
}
-#ifndef LIBRESSL_VERSION_NUMBER
+#if (OPENSSL_VERSION_NUMBER < 0x10100001L && !defined LIBRESSL_VERSION_NUMBER)
SSL_CTX_set_tmp_rsa_callback(conf->ssl.ctx, ngx_ssl_rsa512_key_callback);
#endif