Klaus Demo nginx / 8fc9040
SSL: RSA_generate_key() is deprecated in OpenSSL 1.1.0. OpenSSL removed support for all 40 and 56 bit ciphers. Maxim Dounin 6 years ago
4 changed file(s) with 4 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
757757 return NULL;
758758 }
759759
760 #ifndef OPENSSL_NO_DEPRECATED
760 #if (OPENSSL_VERSION_NUMBER < 0x10100003L && !defined OPENSSL_NO_DEPRECATED)
761761
762762 if (key == NULL) {
763763 key = RSA_generate_key(512, RSA_F4, NULL, NULL);
717717 SSL_CTX_set_options(conf->ssl.ctx, SSL_OP_CIPHER_SERVER_PREFERENCE);
718718 }
719719
720 #ifndef LIBRESSL_VERSION_NUMBER
720 #if (OPENSSL_VERSION_NUMBER < 0x10100001L && !defined LIBRESSL_VERSION_NUMBER)
721721 /* a temporary 512-bit RSA key is required for export versions of MSIE */
722722 SSL_CTX_set_tmp_rsa_callback(conf->ssl.ctx, ngx_ssl_rsa512_key_callback);
723723 #endif
420420 SSL_CTX_set_options(conf->ssl.ctx, SSL_OP_CIPHER_SERVER_PREFERENCE);
421421 }
422422
423 #ifndef LIBRESSL_VERSION_NUMBER
423 #if (OPENSSL_VERSION_NUMBER < 0x10100001L && !defined LIBRESSL_VERSION_NUMBER)
424424 SSL_CTX_set_tmp_rsa_callback(conf->ssl.ctx, ngx_ssl_rsa512_key_callback);
425425 #endif
426426
275275 SSL_CTX_set_options(conf->ssl.ctx, SSL_OP_CIPHER_SERVER_PREFERENCE);
276276 }
277277
278 #ifndef LIBRESSL_VERSION_NUMBER
278 #if (OPENSSL_VERSION_NUMBER < 0x10100001L && !defined LIBRESSL_VERSION_NUMBER)
279279 SSL_CTX_set_tmp_rsa_callback(conf->ssl.ctx, ngx_ssl_rsa512_key_callback);
280280 #endif
281281