File tree Expand file tree Collapse file tree 2 files changed +0
-17
lines changed
Expand file tree Collapse file tree 2 files changed +0
-17
lines changed Original file line number Diff line number Diff line change @@ -52,12 +52,6 @@ def self.exists?(file_name)
5252require_relative '../../puppet/ssl/openssl_loader'
5353unless Puppet ::Util ::Platform . jruby_fips?
5454 class OpenSSL ::SSL ::SSLContext
55- if DEFAULT_PARAMS [ :options ]
56- DEFAULT_PARAMS [ :options ] |= OpenSSL ::SSL ::OP_NO_SSLv3
57- else
58- DEFAULT_PARAMS [ :options ] = OpenSSL ::SSL ::OP_NO_SSLv3
59- end
60-
6155 alias __original_initialize initialize
6256 private :__original_initialize
6357
Original file line number Diff line number Diff line change 7171end
7272
7373describe OpenSSL ::SSL ::SSLContext do
74- it 'disables SSLv3 via the SSLContext#options bitmask' do
75- expect ( subject . options & OpenSSL ::SSL ::OP_NO_SSLv3 ) . to eq ( OpenSSL ::SSL ::OP_NO_SSLv3 )
76- end
77-
78- it 'does not exclude SSLv3 ciphers shared with TLSv1' do
79- cipher_str = OpenSSL ::SSL ::SSLContext ::DEFAULT_PARAMS [ :ciphers ]
80- if cipher_str
81- expect ( cipher_str . split ( ':' ) ) . not_to include ( '!SSLv3' )
82- end
83- end
84-
8574 it 'sets parameters on initialization' do
8675 expect_any_instance_of ( described_class ) . to receive ( :set_params )
8776 subject
You can’t perform that action at this time.
0 commit comments