Mercurial > hg > nginx-quic
comparison src/event/ngx_event_openssl.c @ 6489:c256dfdd469d
SSL: RSA_generate_key() is deprecated in OpenSSL 1.1.0.
OpenSSL removed support for all 40 and 56 bit ciphers.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Thu, 31 Mar 2016 23:38:34 +0300 |
parents | a57b2b8999e7 |
children | ddf761495ce6 |
comparison
equal
deleted
inserted
replaced
6488:a57b2b8999e7 | 6489:c256dfdd469d |
---|---|
756 | 756 |
757 if (key_length != 512) { | 757 if (key_length != 512) { |
758 return NULL; | 758 return NULL; |
759 } | 759 } |
760 | 760 |
761 #ifndef OPENSSL_NO_DEPRECATED | 761 #if (OPENSSL_VERSION_NUMBER < 0x10100003L && !defined OPENSSL_NO_DEPRECATED) |
762 | 762 |
763 if (key == NULL) { | 763 if (key == NULL) { |
764 key = RSA_generate_key(512, RSA_F4, NULL, NULL); | 764 key = RSA_generate_key(512, RSA_F4, NULL, NULL); |
765 } | 765 } |
766 | 766 |