aboutsummaryrefslogtreecommitdiffstats
path: root/ext/openssl/extconf.rb
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2020-07-10 14:34:51 +0900
committerKazuki Yamaguchi <k@rhe.jp>2021-04-15 20:55:25 +0900
commit797e9f8e0865785df5a95c7344fa62a0a5c70e0b (patch)
treea8c32db6afa7618d37725c5c63dbaf14cbb41466 /ext/openssl/extconf.rb
parent48a6c391ef47c9a12c3d2c96a5a2db4f44295182 (diff)
downloadruby-openssl-797e9f8e0865785df5a95c7344fa62a0a5c70e0b.tar.gz
pkey/dh, pkey/ec: use EVP_PKEY_check() familyky/pkey-generic-evp-more
Use EVP_PKEY_param_check() instead of DH_check() if available. Also, use EVP_PKEY_public_check() instead of EC_KEY_check_key(). EVP_PKEY_*check() is part of the EVP API and is meant to replace those low-level functions. They were added by OpenSSL 1.1.1. It is currently not provided by LibreSSL.
Diffstat (limited to 'ext/openssl/extconf.rb')
-rw-r--r--ext/openssl/extconf.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/openssl/extconf.rb b/ext/openssl/extconf.rb
index 5cb28f30..8812b7de 100644
--- a/ext/openssl/extconf.rb
+++ b/ext/openssl/extconf.rb
@@ -165,6 +165,9 @@ have_func("TS_RESP_CTX_set_time_cb")
have_func("EVP_PBE_scrypt")
have_func("SSL_CTX_set_post_handshake_auth")
+# added in 1.1.1
+have_func("EVP_PKEY_check")
+
Logging::message "=== Checking done. ===\n"
create_header