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
33 33
  end
34 34
end
35 35

  
36
## 
37
## From openssl 1.0, SSLv2 becomes disable by default.
38
## If you want to use SSLv2 in ruby, you need config with --enable-opensslv2.
39
##
40
if enable_config("opensslv2")
41
  $defs << "-DENABLE_OPENSSLV2"
42
end
43

  
36 44
message "=== Checking for system dependent stuff... ===\n"
37 45
have_library("nsl", "t_open")
38 46
have_library("socket", "socket")
ext/openssl/ossl_ssl.c
107 107
    OSSL_SSL_METHOD_ENTRY(TLSv1),
108 108
    OSSL_SSL_METHOD_ENTRY(TLSv1_server),
109 109
    OSSL_SSL_METHOD_ENTRY(TLSv1_client),
110
#if defined(ENABLE_OPENSSLV2)
110 111
    OSSL_SSL_METHOD_ENTRY(SSLv2),
111 112
    OSSL_SSL_METHOD_ENTRY(SSLv2_server),
112 113
    OSSL_SSL_METHOD_ENTRY(SSLv2_client),
114
#endif
113 115
    OSSL_SSL_METHOD_ENTRY(SSLv3),
114 116
    OSSL_SSL_METHOD_ENTRY(SSLv3_server),
115 117
    OSSL_SSL_METHOD_ENTRY(SSLv3_client),
116
-