aboutsummaryrefslogtreecommitdiffstats
path: root/ext/openssl/extconf.rb
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2016-05-04 22:41:49 +0900
committerKazuki Yamaguchi <k@rhe.jp>2016-05-05 18:42:08 +0900
commitce719f13aded9f7d3d4fcfd4e3078ea19ef0309e (patch)
tree1fe9c8c7547522a9e5bc3bc09d50a36507b747d0 /ext/openssl/extconf.rb
parent9bcdc891c810a1c267171d717d593ae2790ef59a (diff)
downloadruby-ce719f13aded9f7d3d4fcfd4e3078ea19ef0309e.tar.gz
ext/openssl: avoid using deprecated protocol version specific methods
They emit warnings with OpenSSL 1.1.0. Instead use SSL_CTX_set_{min,max}_proto_version().
Diffstat (limited to 'ext/openssl/extconf.rb')
-rw-r--r--ext/openssl/extconf.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/openssl/extconf.rb b/ext/openssl/extconf.rb
index 74f0415e48..8f7cad89d5 100644
--- a/ext/openssl/extconf.rb
+++ b/ext/openssl/extconf.rb
@@ -102,6 +102,7 @@ OpenSSL.check_func_or_macro("SSL_get_server_tmp_key", "openssl/ssl.h")
OpenSSL.check_func("RAND_pseudo_bytes", "openssl/rand.h") # deprecated
have_func("X509_STORE_get_ex_data")
have_func("X509_STORE_set_ex_data")
+OpenSSL.check_func_or_macro("SSL_CTX_set_min_proto_version", "openssl/ssl.h")
have_struct_member("X509_ATTRIBUTE", "single", "openssl/x509.h")
Logging::message "=== Checking done. ===\n"