aboutsummaryrefslogtreecommitdiffstats
path: root/ext/openssl/extconf.rb
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2016-04-21 00:23:08 +0900
committerKazuki Yamaguchi <k@rhe.jp>2016-04-27 23:07:41 +0900
commitb6f4eeca7d4e3f8bef61dc68f72a4b6017b2ffb7 (patch)
treef6422d4e6e08cded7b173b44e1cd12e993d1b738 /ext/openssl/extconf.rb
parent4846facb5f35ff04bd48eadbef0b366e4ffb6234 (diff)
downloadruby-b6f4eeca7d4e3f8bef61dc68f72a4b6017b2ffb7.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 8a83cf58db..d3d6da633c 100644
--- a/ext/openssl/extconf.rb
+++ b/ext/openssl/extconf.rb
@@ -127,6 +127,7 @@ have_func("OCSP_SINGLERESP_get0_id")
have_func("X509_up_ref")
have_func("X509_CRL_up_ref")
have_func("X509_STORE_up_ref")
+have_func_like("SSL_CTX_set_min_proto_version", "openssl/ssl.h")
have_func("SSL_SESSION_up_ref")
have_func("EVP_PKEY_up_ref")