ruby-changes:22435
From: nahi <ko1@a...>
Date: Wed, 8 Feb 2012 14:49:02 +0900 (JST)
Subject: [ruby-changes:22435] nahi:r34483 (ruby_1_8): merge revision(s) 31346,31528:
nahi 2012-02-08 14:48:44 +0900 (Wed, 08 Feb 2012) New Revision: 34483 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=34483 Log: merge revision(s) 31346,31528: * 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 Modified files: branches/ruby_1_8/ChangeLog branches/ruby_1_8/ext/openssl/extconf.rb branches/ruby_1_8/ext/openssl/ossl_ssl.c Index: ruby_1_8/ext/openssl/ossl_ssl.c =================================================================== --- ruby_1_8/ext/openssl/ossl_ssl.c (revision 34482) +++ ruby_1_8/ext/openssl/ossl_ssl.c (revision 34483) @@ -109,9 +109,12 @@ OSSL_SSL_METHOD_ENTRY(TLSv1), OSSL_SSL_METHOD_ENTRY(TLSv1_server), OSSL_SSL_METHOD_ENTRY(TLSv1_client), +#if defined(HAVE_SSLV2_METHOD) && defined(HAVE_SSLV2_SERVER_METHOD) && \ + defined(HAVE_SSLV2_CLIENT_METHOD) 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), Index: ruby_1_8/ext/openssl/extconf.rb =================================================================== --- ruby_1_8/ext/openssl/extconf.rb (revision 34482) +++ ruby_1_8/ext/openssl/extconf.rb (revision 34483) @@ -103,6 +103,12 @@ if try_compile("#define FOO(...) foo(__VA_ARGS__)\n int x(){FOO(1);FOO(1,2);FOO(1,2,3);}\n") $defs.push("-DHAVE_VA_ARGS_MACRO") end +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 if have_header("openssl/engine.h") have_func("ENGINE_add") have_func("ENGINE_load_builtin_engines") Index: ruby_1_8/ChangeLog =================================================================== --- ruby_1_8/ChangeLog (revision 34482) +++ ruby_1_8/ChangeLog (revision 34483) @@ -1,3 +1,16 @@ +Sun Jun 26 17:52:32 2011 Nobuhiro Iwamatsu <iwamatsu@n...> + + * ext/openssl/ossl_ssl.c: By trunk@31346, function check of SSLv2 is executed. + However, the problem is not revised in this. + This adds the control of using function of SSLv2 in made macro by function check. + +Sun Jun 26 17:52:32 2011 Nobuhiro Iwamatsu <iwamatsu@n...> + + * ext/openssl/extconf.rb: Should check SSLv2_*method. + ssl compiled with "no-ssl2" the extconf don't fail + running `make' having this compilation errors. + hed by Laurent Arnoud. fixes #4562, #4556 + Thu Jan 26 16:08:43 2012 URABE Shyouhei <shyouhei@r...> * string.c (rb_str_hash): randomize hash to avoid algorithmic -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/