summaryrefslogtreecommitdiffstats
path: root/lib/openssl
diff options
context:
space:
mode:
authortenderlove <tenderlove@ruby-lang.org>2015-07-25 23:16:49 +0000
committertenderlove <tenderlove@ruby-lang.org>2015-07-25 23:16:49 +0000
commit8c55d4c39a5e654a1082282ccce888a35522cb18 (patch)
treeee16b3e6c1a5753efc1e578abf9e0f9c31279288 /lib/openssl
parentc9c6d7ac0e8e27a5e586fc9ff44e7a929e2a8898 (diff)
downloadruby-openssl-history-8c55d4c39a5e654a1082282ccce888a35522cb18.tar.gz
* ext/openssl/lib/openssl/ssl.rb (module OpenSSL): support
specifically setting the tmp_dh_callback to nil. * ext/openssl/ossl_ssl.c (Init_ossl_ssl): ditto * test/openssl/test_pair.rb (module OpenSSL): add a test git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51381 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/openssl')
-rw-r--r--lib/openssl/ssl.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/openssl/ssl.rb b/lib/openssl/ssl.rb
index ef2b3f1..1c0cc2f 100644
--- a/lib/openssl/ssl.rb
+++ b/lib/openssl/ssl.rb
@@ -128,6 +128,10 @@ module OpenSSL
end
return params
end
+
+ def tmp_dh_callback=(value)
+ @tmp_dh_callback = value || DEFAULT_TMP_DH_CALLBACK
+ end
end
module SocketForwarder