]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - configure.ac
openssl: Use the EVP library for RSA public encryption.
[paraslash.git] / configure.ac
index b9ac3d0d47a4dc2adcfd8b6c28468aab35c50601..d6796e5641aeea757b84db65d6e6f50f4a489240 100644 (file)
@@ -110,6 +110,11 @@ if test $HAVE_OPENSSL = yes; then
        will be removed in the next major paraslash release. Please upgrade
        your openssl installation.])
        fi
+
+       AC_CHECK_LIB([crypto], [OSSL_PARAM_construct_BN], [HAVE_OSSL_PARAM=yes],
+               [HAVE_OSSL_PARAM=no])
+       test $HAVE_OSSL_PARAM = yes &&
+               AC_DEFINE([HAVE_OSSL_PARAM], [1], [openssl >= 3.0])
        HAVE_CRYPTO_CLEANUP_ALL_EX_DATA=yes
        AC_CHECK_DECL([CRYPTO_cleanup_all_ex_data], [],
                [HAVE_CRYPTO_CLEANUP_ALL_EX_DATA=no],