aboutsummaryrefslogtreecommitdiffstats
path: root/ext/openssl/extconf.rb
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2016-05-05 15:47:58 +0900
committerKazuki Yamaguchi <k@rhe.jp>2016-05-05 18:43:46 +0900
commit2eea53d8878d74d292b3982159e509729f03f8c7 (patch)
tree22c1fffec3ebb08844f66ad6a435db8259e4fbaf /ext/openssl/extconf.rb
parentce719f13aded9f7d3d4fcfd4e3078ea19ef0309e (diff)
downloadruby-2eea53d8878d74d292b3982159e509729f03f8c7.tar.gz
ext/openssl: SSL_state() is removed
SSL_state() is removed, and the replacement, SSL_get_state(), never returns SSL_ST_ACCEPT. I think it is used to distinguish if the SSL is a server or not, so replacing it with SSL_is_server(). And add some `const`s.
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 8f7cad89d5..7fb88c34a2 100644
--- a/ext/openssl/extconf.rb
+++ b/ext/openssl/extconf.rb
@@ -95,6 +95,7 @@ have_macro("EVP_CTRL_GCM_GET_TAG", ['openssl/evp.h']) && $defs.push("-DHAVE_AUTH
# added in 1.0.2
have_func("CRYPTO_memcmp")
have_func("X509_REVOKED_dup")
+have_func("SSL_is_server");
have_func("SSL_CTX_set_alpn_select_cb")
OpenSSL.check_func_or_macro("SSL_get_server_tmp_key", "openssl/ssl.h")