Skip to content

Commit

Permalink
Merge pull request #12935 from rgacogne/fix-crypto-detection-deprecated
Browse files Browse the repository at this point in the history
Stop using the now deprecated ERR_load_CRYPTO_strings() to detect OpenSSL
  • Loading branch information
rgacogne authored Jun 21, 2023
2 parents e7c71d4 + 9fcef49 commit 5079639
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion m4/pdns_check_libcrypto.m4
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ AC_DEFUN([PDNS_CHECK_LIBCRYPTO], [
LIBS="$LIBCRYPTO_LIBS $LIBS"
CPPFLAGS="$LIBCRYPTO_INCLUDES $CPPFLAGS"
AC_LINK_IFELSE(
[AC_LANG_PROGRAM([#include <openssl/crypto.h>], [ERR_load_CRYPTO_strings()])],
[AC_LANG_PROGRAM([#include <openssl/bn.h>], [BN_new()])],
[
AC_MSG_RESULT([yes])
AC_CHECK_FUNCS([RAND_bytes RAND_pseudo_bytes CRYPTO_memcmp OPENSSL_init_crypto EVP_MD_CTX_new EVP_MD_CTX_free RSA_get0_key])
Expand Down

0 comments on commit 5079639

Please sign in to comment.