aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/openssl/test_ssl.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/openssl/test_ssl.rb b/test/openssl/test_ssl.rb
index b539f2498d..d1281c116a 100644
--- a/test/openssl/test_ssl.rb
+++ b/test/openssl/test_ssl.rb
@@ -1171,9 +1171,10 @@ end
def test_get_ephemeral_key
return unless OpenSSL::SSL::SSLSocket.method_defined?(:tmp_key)
+ pkey = OpenSSL::PKey
ciphers = {
- 'ECDHE-RSA-AES128-SHA' => OpenSSL::PKey::EC,
- 'DHE-RSA-AES128-SHA' => OpenSSL::PKey::DH,
+ 'ECDHE-RSA-AES128-SHA' => (pkey::EC if defined?(pkey::EC)),
+ 'DHE-RSA-AES128-SHA' => (pkey::DH if defined?(pkey::DH)),
'AES128-SHA' => nil
}
conf_proc = Proc.new { |ctx| ctx.ciphers = 'ALL' }