mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Autotools: Sync CS in ext/openssl
This commit is contained in:
@@ -25,7 +25,9 @@ PHP_ARG_WITH([openssl-argon2],
|
||||
[no])
|
||||
|
||||
if test "$PHP_OPENSSL" != "no"; then
|
||||
PHP_NEW_EXTENSION([openssl], [openssl.c openssl_pwhash.c xp_ssl.c], [$ext_shared])
|
||||
PHP_NEW_EXTENSION([openssl],
|
||||
[openssl.c openssl_pwhash.c xp_ssl.c],
|
||||
[$ext_shared])
|
||||
PHP_SUBST([OPENSSL_SHARED_LIBADD])
|
||||
PHP_SETUP_OPENSSL([OPENSSL_SHARED_LIBADD],
|
||||
[AC_DEFINE([HAVE_OPENSSL_EXT], [1],
|
||||
@@ -46,13 +48,14 @@ if test "$PHP_OPENSSL" != "no"; then
|
||||
[Define to 1 to load the OpenSSL legacy algorithm provider in addition to
|
||||
the default provider.])])
|
||||
|
||||
if test "$PHP_OPENSSL_ARGON2" != "no"; then
|
||||
if test "$PHP_THREAD_SAFETY" != "no"; then
|
||||
AC_MSG_ERROR([Not supported in ZTS mode for now])
|
||||
fi
|
||||
AS_VAR_IF([PHP_OPENSSL_ARGON2], [no],, [
|
||||
AS_VAR_IF([PHP_THREAD_SAFETY], [yes],
|
||||
[AC_MSG_ERROR([Not supported in ZTS mode for now])])
|
||||
|
||||
PHP_CHECK_LIBRARY([crypto], [OSSL_set_max_threads],
|
||||
[AC_DEFINE([HAVE_OPENSSL_ARGON2], [1], [ Define to 1 to enable argon2 password hashing ])],
|
||||
[AC_DEFINE([HAVE_OPENSSL_ARGON2], [1],
|
||||
[Define to 1 to enable OpenSSL argon2 password hashing.])],
|
||||
[AC_MSG_ERROR([argon2 hashing requires OpenSSL 3.2])],
|
||||
[$OPENSSL_LIBS])
|
||||
fi
|
||||
])
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user