diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2016-05-05 14:40:13 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2016-05-14 20:00:58 +0900 |
commit | fe2ba322bfafdbf1a0a195b81f4c241e2841026a (patch) | |
tree | 5c8f59ee39180b6ef8a7ec919c4c09bd2dae1104 /ext/openssl/extconf.rb | |
parent | 748dcd1c2c8e5ebda3c71c88475d957c460353ab (diff) | |
download | ruby-fe2ba322bfafdbf1a0a195b81f4c241e2841026a.tar.gz |
ext/openssl: add SSLContext#security_level, #security_level=
OpenSSL 1.1.0 introduced "security level" and these methods deal with
it.
This patch includes many test changes: setting the level to 0.
The default security level is 1 and this prohibits aNULL ciphers.
Diffstat (limited to 'ext/openssl/extconf.rb')
-rw-r--r-- | ext/openssl/extconf.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/openssl/extconf.rb b/ext/openssl/extconf.rb index 18425eec54..37d75efebb 100644 --- a/ext/openssl/extconf.rb +++ b/ext/openssl/extconf.rb @@ -142,6 +142,7 @@ have_func("X509_STORE_up_ref") have_func("SSL_CTX_get_ciphers") have_func("SSL_SESSION_up_ref") have_func("EVP_PKEY_up_ref") +have_func("SSL_CTX_get_security_level") OpenSSL.check_func_or_macro("SSL_CTX_set_min_proto_version", "openssl/ssl.h") Logging::message "=== Checking done. ===\n" |