aboutsummaryrefslogtreecommitdiffstats
path: root/ext/openssl/extconf.rb
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2016-12-18 16:47:21 +0900
committerKazuki Yamaguchi <k@rhe.jp>2016-12-21 16:58:43 +0900
commit528fae6f9e5f46dbf7e5871fbac1bb2e78c674fc (patch)
treea63c8dd2f08e7860323e1efafd99021af8020eaa /ext/openssl/extconf.rb
parent1d94bc3a20e1fb7160f265e106e5c3c4502430b3 (diff)
downloadruby-openssl-528fae6f9e5f46dbf7e5871fbac1bb2e78c674fc.tar.gz
ssl: use SSL_SESSION_get_protocol_version()
Restore the old behavior of OpenSSL::SSL::Session#==. SSL_SESSION_get_protocol_version() was missing in OpenSSL master at the time r55287 (cad3226a06a1, "openssl: adapt to OpenSSL 1.1.0 opaque structs", 2016-06-05).
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 73a458ba..7033b0e2 100644
--- a/ext/openssl/extconf.rb
+++ b/ext/openssl/extconf.rb
@@ -144,6 +144,7 @@ OpenSSL.check_func_or_macro("SSL_CTX_set_tmp_ecdh_callback", "openssl/ssl.h") #
OpenSSL.check_func_or_macro("SSL_CTX_set_min_proto_version", "openssl/ssl.h")
have_func("SSL_CTX_get_security_level")
have_func("X509_get0_notBefore")
+have_func("SSL_SESSION_get_protocol_version")
Logging::message "=== Checking done. ===\n"