nossl2.diff 661 B

1234567891011121314151617
  1. diff --git a/ext/openssl/ossl_ssl.c b/ext/openssl/ossl_ssl.c
  2. index e8d2e86..be62fcc 100644
  3. --- a/ext/openssl/ossl_ssl.c
  4. +++ b/ext/openssl/ossl_ssl.c
  5. @@ -107,9 +107,12 @@ struct {
  6. OSSL_SSL_METHOD_ENTRY(TLSv1),
  7. OSSL_SSL_METHOD_ENTRY(TLSv1_server),
  8. OSSL_SSL_METHOD_ENTRY(TLSv1_client),
  9. +#if defined(HAVE_SSLV2_METHOD) && defined(HAVE_SSLV2_SERVER_METHOD) && \
  10. + defined(HAVE_SSLV2_CLIENT_METHOD)
  11. OSSL_SSL_METHOD_ENTRY(SSLv2),
  12. OSSL_SSL_METHOD_ENTRY(SSLv2_server),
  13. OSSL_SSL_METHOD_ENTRY(SSLv2_client),
  14. +#endif
  15. OSSL_SSL_METHOD_ENTRY(SSLv3),
  16. OSSL_SSL_METHOD_ENTRY(SSLv3_server),
  17. OSSL_SSL_METHOD_ENTRY(SSLv3_client),