File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 1+ Fri Mar 7 12:06:19 2014 Martin Bosslet <Martin.Bosslet@gmail.com>
2+
3+ * test/openssl/test_ssl.rb: Reuse TLS default options from
4+ OpenSSL::SSL::SSLContext::DEFAULT_PARAMS.
5+
16Thu Mar 6 10:33:31 2014 Martin Bosslet <Martin.Bosslet@gmail.com>
27
38 * lib/openssl/ssl.rb: Explicitly whitelist the default
Original file line number Diff line number Diff line change 44
55class OpenSSL ::TestSSL < OpenSSL ::SSLTestCase
66
7- TLS_DEFAULT_OPS = defined? ( OpenSSL ::SSL ::OP_DONT_INSERT_EMPTY_FRAGMENTS ) ?
8- OpenSSL ::SSL ::OP_ALL & ~OpenSSL ::SSL ::OP_DONT_INSERT_EMPTY_FRAGMENTS :
9- OpenSSL ::SSL ::OP_ALL
10-
117 def test_ctx_setup
128 ctx = OpenSSL ::SSL ::SSLContext . new
139 assert_equal ( ctx . setup , true )
@@ -276,7 +272,7 @@ def test_sslctx_set_params
276272 ctx = OpenSSL ::SSL ::SSLContext . new
277273 ctx . set_params
278274 assert_equal ( OpenSSL ::SSL ::VERIFY_PEER , ctx . verify_mode )
279- assert_equal ( TLS_DEFAULT_OPS , ctx . options )
275+ assert_equal ( OpenSSL :: SSL :: SSLContext :: DEFAULT_PARAMS [ :options ] , ctx . options )
280276 ciphers = ctx . ciphers
281277 ciphers_versions = ciphers . collect { |_ , v , _ , _ | v }
282278 ciphers_names = ciphers . collect { |v , _ , _ , _ | v }
You can’t perform that action at this time.
0 commit comments