diff options
author | iwamatsu <iwamatsu@ruby-lang.org> | 2011-04-25 21:45:33 +0000 |
---|---|---|
committer | iwamatsu <iwamatsu@ruby-lang.org> | 2011-04-25 21:45:33 +0000 |
commit | c46a36af6ccc9143bfb7c55104862991cf7ea2e1 (patch) | |
tree | abc910eaf59c4c309e6bd414e65067c6002e9013 /ext | |
parent | 57524bbe3b5e2378ccf309bb8342e087135639eb (diff) | |
download | ruby-openssl-history-c46a36af6ccc9143bfb7c55104862991cf7ea2e1.tar.gz |
* ext/openssl/extconf.rb: Should check SSLv2_*method.
openssl compiled with "no-ssl2" the extconf don't fail
when running `make' having this compilation errors.
Patched by Laurent Arnoud. fixes #4562, #4556
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31346 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r-- | ext/openssl/extconf.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/openssl/extconf.rb b/ext/openssl/extconf.rb index b1f2d88..1bd5a07 100644 --- a/ext/openssl/extconf.rb +++ b/ext/openssl/extconf.rb @@ -100,6 +100,9 @@ have_func("OBJ_NAME_do_all_sorted") have_func("SSL_SESSION_get_id") have_func("SSL_SESSION_cmp") have_func("OPENSSL_cleanse") +have_func("SSLv2_method") +have_func("SSLv2_server_method") +have_func("SSLv2_client_method") unless have_func("SSL_set_tlsext_host_name", ['openssl/ssl.h']) have_macro("SSL_set_tlsext_host_name", ['openssl/ssl.h']) && $defs.push("-DHAVE_SSL_SET_TLSEXT_HOST_NAME") end |