From 47135def057554c4e9432a30020d659c26089c4f Mon Sep 17 00:00:00 2001 From: zzak Date: Fri, 13 Nov 2015 04:10:58 +0000 Subject: * ext/openssl/ossl_ssl.c: Merge ruby/openssl@81e1a30 * test/openssl/test_ssl.rb: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52555 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 6 ++++++ ext/openssl/ossl_ssl.c | 6 ++++++ test/openssl/test_ssl.rb | 2 +- 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index ac9c411092..3b9be75fb1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Fri Nov 13 13:09:16 2015 Zachary Scott + + * ext/openssl/ossl_ssl.c: Merge ruby/openssl@81e1a30 + + * test/openssl/test_ssl.rb: ditto + Fri Nov 13 13:05:37 2015 Nobuyoshi Nakada * prelude.rb (Thread.exclusive): warn as deprecated. diff --git a/ext/openssl/ossl_ssl.c b/ext/openssl/ossl_ssl.c index 09d8dd2453..538ba37f24 100644 --- a/ext/openssl/ossl_ssl.c +++ b/ext/openssl/ossl_ssl.c @@ -2107,6 +2107,12 @@ Init_ossl_ssl(void) rb_define_const(mSSLExtConfig, "HAVE_TLSEXT_HOST_NAME", Qfalse); #endif +#ifdef TLS_DH_anon_WITH_AES_256_GCM_SHA384 + rb_define_const(mSSLExtConfig, "TLS_DH_anon_WITH_AES_256_GCM_SHA384", Qtrue); +#else + rb_define_const(mSSLExtConfig, "TLS_DH_anon_WITH_AES_256_GCM_SHA384", Qfalse); +#endif + /* * A callback invoked whenever a new handshake is initiated. May be used * to disable renegotiation entirely. diff --git a/test/openssl/test_ssl.rb b/test/openssl/test_ssl.rb index 0cbfcba590..9e98a21d33 100644 --- a/test/openssl/test_ssl.rb +++ b/test/openssl/test_ssl.rb @@ -415,7 +415,7 @@ class OpenSSL::TestSSL < OpenSSL::SSLTestCase assert_raise_with_message(sslerr,msg){ssl.post_connection_check("localhost.localdomain")} } } - end + end if OpenSSL::ExtConfig::TLS_DH_anon_WITH_AES_256_GCM_SHA384 def test_post_connection_check sslerr = OpenSSL::SSL::SSLError -- cgit v1.2.3