summaryrefslogtreecommitdiffstats
path: root/lib/openssl
diff options
context:
space:
mode:
authortenderlove <tenderlove@ruby-lang.org>2015-08-19 14:59:58 +0000
committertenderlove <tenderlove@ruby-lang.org>2015-08-19 14:59:58 +0000
commitdbba2073b37238bc7a7932ab67e6f2bffe09609b (patch)
tree94f127d81807ae38d6fa013c9f739216c9525736 /lib/openssl
parent2f2367902c527113e040b1c905a65379aded2516 (diff)
downloadruby-openssl-history-dbba2073b37238bc7a7932ab67e6f2bffe09609b.tar.gz
* ext/openssl/lib/openssl/ssl.rb (module OpenSSL): add OP_ALL to
existing options rather than just setting it. Some vendors apply custom patches to their versions of OpenSSL that set default values for options. This commit respects the custom patches they've applied. * test/openssl/test_ssl.rb (class OpenSSL): check that OP_ALL has been added to the options. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51642 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/openssl')
-rw-r--r--lib/openssl/ssl.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/openssl/ssl.rb b/lib/openssl/ssl.rb
index 03d0ebe..631943c 100644
--- a/lib/openssl/ssl.rb
+++ b/lib/openssl/ssl.rb
@@ -111,7 +111,7 @@ module OpenSSL
# You can get a list of valid methods with OpenSSL::SSL::SSLContext::METHODS
def initialize(version = nil)
INIT_VARS.each { |v| instance_variable_set v, nil }
- self.options = OpenSSL::SSL::OP_ALL
+ self.options = self.options | OpenSSL::SSL::OP_ALL
return unless version
self.ssl_version = version
end