diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2016-09-13 14:43:49 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2016-09-13 14:43:49 +0900 |
commit | f9c04779a84b45d85dc26dc19ea600d0613539e2 (patch) | |
tree | 5cf8105e76059b36b87bb8f1c8bf26502a6fb3ac | |
parent | c98322157e67ed3aa81efef803b067daa4fd0e81 (diff) | |
download | ruby-openssl-f9c04779a84b45d85dc26dc19ea600d0613539e2.tar.gz |
test/test_ssl: workaround for Ubuntu patch for SSL_CTX_*_options
The patch included in Ubuntu's libssl1.0.0 1.0.2g-1ubuntu4.3 package
forcibly adds SSL_OP_NO_SSLv3 option.
-rw-r--r-- | test/test_ssl.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/test_ssl.rb b/test/test_ssl.rb index 0af93a8b..f7048c3f 100644 --- a/test/test_ssl.rb +++ b/test/test_ssl.rb @@ -10,10 +10,13 @@ class OpenSSL::TestSSL < OpenSSL::SSLTestCase assert (OpenSSL::SSL::OP_ALL & ctx.options) == OpenSSL::SSL::OP_ALL, "OP_ALL is set by default" - ctx.options = 4 - assert_equal 4, ctx.options ctx.options = nil assert_equal OpenSSL::SSL::OP_ALL, ctx.options + ctx.options = 4 + assert_equal 4, ctx.options & 4 + if ctx.options != 4 + pend "SSL_CTX_set_options() seems to be modified by distributor" + end assert_equal true, ctx.setup assert_predicate ctx, :frozen? |