Project

General

Profile

Feature #4556 » 0001-Add-option-which-enable-SSLv2-support.patch

iwamatsu (Nobuhiro Iwamatsu), 04/06/2011 01:12 PM

View differences:

ext/openssl/extconf.rb
end
end
##
## From openssl 1.0, SSLv2 becomes disable by default.
## If you want to use SSLv2 in ruby, you need config with --enable-opensslv2.
##
if enable_config("opensslv2")
$defs << "-DENABLE_OPENSSLV2"
end
message "=== Checking for system dependent stuff... ===\n"
have_library("nsl", "t_open")
have_library("socket", "socket")
ext/openssl/ossl_ssl.c
OSSL_SSL_METHOD_ENTRY(TLSv1),
OSSL_SSL_METHOD_ENTRY(TLSv1_server),
OSSL_SSL_METHOD_ENTRY(TLSv1_client),
#if defined(ENABLE_OPENSSLV2)
OSSL_SSL_METHOD_ENTRY(SSLv2),
OSSL_SSL_METHOD_ENTRY(SSLv2_server),
OSSL_SSL_METHOD_ENTRY(SSLv2_client),
#endif
OSSL_SSL_METHOD_ENTRY(SSLv3),
OSSL_SSL_METHOD_ENTRY(SSLv3_server),
OSSL_SSL_METHOD_ENTRY(SSLv3_client),
(2-2/2)