We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 668b3f0 commit 3b67b4eCopy full SHA for 3b67b4e
ext/openssl/config0.m4
@@ -50,9 +50,12 @@ if test "$PHP_OPENSSL" != "no"; then
50
if test "$PHP_THREAD_SAFETY" != "no"; then
51
AC_MSG_ERROR([Not supported in ZTS mode for now])
52
fi
53
- PHP_CHECK_LIBRARY([crypto], [OSSL_set_max_threads],
54
- [AC_DEFINE(HAVE_OPENSSL_ARGON2,1,[ Enable argon2 password hashing ])],
+ CFLAGS_SAVE=$CFLAGS
+ CFLAGS="$CFLAGS $OPENSSL_CFLAGS"
55
+ AC_CHECK_DECL([OSSL_KDF_PARAM_ARGON2_LANES],
56
+ [AC_DEFINE([HAVE_OPENSSL_ARGON2],[1],[ Enable argon2 password hashing ])],
57
[AC_MSG_ERROR([argon2 hashing requires OpenSSL 3.2])],
- [$OPENSSL_LIBS])
58
+ [[#include <openssl/core_names.h>]])
59
+ CFLAGS=$CFLAGS_SAVE
60
61
0 commit comments