]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
m4: Check if some RSA key manipulators are present
authorAki Tuomi <aki.tuomi@open-xchange.com>
Wed, 21 Aug 2019 13:15:57 +0000 (16:15 +0300)
committerVille Savolainen <ville.savolainen@dovecot.fi>
Mon, 23 Sep 2019 05:47:48 +0000 (08:47 +0300)
Needed for JWK

m4/ssl.m4

index 749983609481aa9081e4eca5da10d2291102de23..45118cb6d80be0a2ffe732161f0d9f83af5308a9 100644 (file)
--- 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