Commit 9c5c5801 authored by Christopher Dykes's avatar Christopher Dykes Committed by Facebook Github Bot

Define OPENSSL_NO_SSL2 under OpenSSL 1.1.0

Summary: OpenSSL 1.1.0 drops support for SSLv2, and in doing so also removes the define that user-code used to guard on whether SSLv2 was supported. This adds the define to the portability header to indicate SSLv2 is not supported.

Reviewed By: anirudhvr

Differential Revision: D5376869

fbshipit-source-id: 04708db138dc13e7747cfff582f4cfed291648b3
parent 1eee8628
...@@ -146,6 +146,10 @@ bool RSA_set0_key(RSA* r, BIGNUM* n, BIGNUM* e, BIGNUM* d); ...@@ -146,6 +146,10 @@ bool RSA_set0_key(RSA* r, BIGNUM* n, BIGNUM* e, BIGNUM* d);
// Note: this was a type and has been fixed upstream, so the next 1.1.0 // Note: this was a type and has been fixed upstream, so the next 1.1.0
// minor version upgrade will need to remove this // minor version upgrade will need to remove this
#define OPENSSL_lh_new OPENSSL_LH_new #define OPENSSL_lh_new OPENSSL_LH_new
// OpenSSL v1.1.0 removed support for SSLv2, and also removed the define that
// indicates it isn't supported.
#define OPENSSL_NO_SSL2
#endif #endif
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment