summaryrefslogtreecommitdiff
path: root/ext/openssl
diff options
context:
space:
mode:
authorAlan Wu <[email protected]>2022-07-11 16:55:39 -0400
committerKazuki Yamaguchi <[email protected]>2022-10-17 16:35:35 +0900
commit5dae78b9d36be7e2adfb5f9cad78bb10d641e40a (patch)
treed07fd6b3e7c72512d3271340935903d87797935f /ext/openssl
parenta211b32180b1ab0532f6978c32e907fe1c0c218a (diff)
[ruby/openssl] Pass arguments to check macro presence
X509_STORE_get_ex_new_index() is a macro, so passing just its name to have_func() doesn't detect it. Pass an example call instead. https://github.com/ruby/openssl/commit/8d264d3e60 Co-authored-by: Nobuyoshi Nakada <[email protected]>
Diffstat (limited to 'ext/openssl')
-rw-r--r--ext/openssl/extconf.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/openssl/extconf.rb b/ext/openssl/extconf.rb
index 4a9ae5598d..f8be3e9e03 100644
--- a/ext/openssl/extconf.rb
+++ b/ext/openssl/extconf.rb
@@ -142,7 +142,7 @@ have_func("EVP_MD_CTX_free", evp_h)
have_func("EVP_MD_CTX_pkey_ctx", evp_h)
have_func("X509_STORE_get_ex_data", x509_h)
have_func("X509_STORE_set_ex_data", x509_h)
-have_func("X509_STORE_get_ex_new_index", x509_h)
+have_func("X509_STORE_get_ex_new_index(0, NULL, NULL, NULL, NULL)", x509_h)
have_func("X509_CRL_get0_signature", x509_h)
have_func("X509_REQ_get0_signature", x509_h)
have_func("X509_REVOKED_get0_serialNumber", x509_h)