diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2017-08-13 23:24:48 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2017-09-09 14:16:29 +0900 |
commit | b7591c2383335b3fe884f576ba2b77ddd12328a6 (patch) | |
tree | a248b5f81fd4864450e07064775c962e35bbbd6c /test | |
parent | de965374ee85eb9b8475e619bd76307c779d2ba9 (diff) | |
download | ruby-openssl-b7591c2383335b3fe884f576ba2b77ddd12328a6.tar.gz |
test/test_ssl: skip tmp_ecdh_callback test for LibreSSL >= 2.6.1
LibreSSL 2.6.1 has SSL_CTX_set_tmp_ecdh_callback() function, but it does
not work.
Diffstat (limited to 'test')
-rw-r--r-- | test/test_ssl.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/test_ssl.rb b/test/test_ssl.rb index e6368943..017fd357 100644 --- a/test/test_ssl.rb +++ b/test/test_ssl.rb @@ -1111,6 +1111,8 @@ end pend "EC is disabled" unless defined?(OpenSSL::PKey::EC) pend "tmp_ecdh_callback is not supported" unless \ OpenSSL::SSL::SSLContext.method_defined?(:tmp_ecdh_callback) + pend "LibreSSL 2.6 has broken SSL_CTX_set_tmp_ecdh_callback()" \ + if libressl?(2, 6, 1) EnvUtil.suppress_warning do # tmp_ecdh_callback is deprecated (2016-05) called = false |