From 8188f1d8fcceeab862cd497dabbc57f513dc65ca Mon Sep 17 00:00:00 2001 From: Aki Tuomi Date: Wed, 21 Aug 2019 16:15:57 +0300 Subject: [PATCH] m4: Check if some RSA key manipulators are present Needed for JWK --- m4/ssl.m4 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/m4/ssl.m4 b/m4/ssl.m4 index 7499836094..45118cb6d8 100644 --- a/m4/ssl.m4 +++ b/m4/ssl.m4 @@ -218,6 +218,15 @@ AC_DEFUN([DOVECOT_SSL], [ 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 -- 2.47.3