changeset 26351:36514cf784ec

m4: Check if some RSA key manipulators are present Needed for JWK
author Aki Tuomi <aki.tuomi@open-xchange.com>
date Wed, 21 Aug 2019 16:15:57 +0300
parents 883a6c06dc0b
children 970e6de13be8
files m4/ssl.m4
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/m4/ssl.m4	Thu Aug 22 18:43:11 2019 +0300
+++ b/m4/ssl.m4	Wed Aug 21 16:15:57 2019 +0300
@@ -218,6 +218,15 @@
       AC_CHECK_LIB(ssl, BN_secure_new, [
         AC_DEFINE(HAVE_BN_SECURE_NEW,, [Build with BN_secure_new support])
       ],, $SSL_LIBS)
+      AC_CHECK_LIB(ssl, RSA_set0_key, [
+        AC_DEFINE(HAVE_RSA_SET0_KEY,, [Build with RSA_set0_key support])
+      ],, $SSL_LIBS)
+      AC_CHECK_LIB(ssl, RSA_set0_factors, [
+        AC_DEFINE(HAVE_RSA_SET0_FACTORS,, [Build with RSA_set0_factors support])
+      ],, $SSL_LIBS)
+      AC_CHECK_LIB(ssl, RSA_set0_crt_params, [
+        AC_DEFINE(HAVE_RSA_SET0_CRT_PARAMS,, [Build with RSA_set0_crt_params support])
+      ],, $SSL_LIBS)
       AC_CHECK_LIB(ssl, [EVP_PKEY_CTX_new_id], [have_evp_pkey_ctx_new_id="yes"],, $SSL_LIBS)
       AC_CHECK_LIB(ssl, [EC_KEY_new], [have_ec_key_new="yes"],, $SSL_LIBS)
       if test "$have_evp_pkey_ctx_new_id" = "yes" && test "$have_ec_key_new" = "yes"; then