diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2016-04-26 16:29:40 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2016-04-27 23:07:42 +0900 |
commit | 0d0067f3d03ef1bedf0a1e9da66606a381c77d7c (patch) | |
tree | c64a746061e4a064180d82395b7d987efa4cf5f8 /ext/openssl/extconf.rb | |
parent | e605469019f038a01f385ee65a886a2057fd24f8 (diff) | |
download | ruby-0d0067f3d03ef1bedf0a1e9da66606a381c77d7c.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 6f312220a6..5c3ba84e1c 100644 --- a/ext/openssl/extconf.rb +++ b/ext/openssl/extconf.rb @@ -128,6 +128,7 @@ have_func("X509_up_ref") have_func("X509_CRL_up_ref") have_func("X509_STORE_up_ref") have_func("SSL_CTX_get_ciphers") +have_func("SSL_CTX_get_security_level") have_func_like("SSL_CTX_set_min_proto_version", "openssl/ssl.h") have_func("SSL_SESSION_up_ref") have_func("EVP_PKEY_up_ref") |