diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2020-07-10 14:34:51 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2021-04-15 20:55:25 +0900 |
commit | 797e9f8e0865785df5a95c7344fa62a0a5c70e0b (patch) | |
tree | a8c32db6afa7618d37725c5c63dbaf14cbb41466 /ext/openssl/extconf.rb | |
parent | 48a6c391ef47c9a12c3d2c96a5a2db4f44295182 (diff) | |
download | ruby-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.rb | 3 |
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 |