Autotools: Remove obsolete crypt link override due to OpenSSL (#14863)

OpenSSL versions before 0.9.7 provided its own crypt() function (and
des_* functions) in its Crypto library that interfered with the
implementation relying on crypt() from some other crypt library. This is
at this point obsolete as crypt and other functions that caused clashes
were removed in OpenSSL version 1.1.0.

In OpenSSL 0.9.7 des_old.c and des_old.h files were provided for BC.

In OpenSSL 0.9.8 crypt() function was renamed to _ossl_old_crypt and the
crypt macro definition was commented out in the des_old.h header.

In OpenSSL 1.1.0 the old DES API was removed, meaning OpenSSL's crypto
library no longer provides crypt() function as it used to.

References:
- Some further historic notes on this:
  https://www.openldap.org/faq/data/cache/1041.html
- OpenSSL Git commit history and changelogs
This commit is contained in:
Peter Kokot 2024-07-08 20:24:28 +02:00 committed by GitHub
parent 3618382d07
commit 745ae8ddd8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1159,13 +1159,6 @@ case $php_sapi_module in
esac
EXTRA_LIBS="$EXTRA_LIBS $DLIBS $LIBS"
dnl This has to be here to prevent the openssl crypt() from overriding the
dnl system provided crypt().
if test "$ac_cv_lib_crypt_crypt" = "yes"; then
EXTRA_LIBS="-lcrypt $EXTRA_LIBS -lcrypt"
fi
unset LIBS
dnl PEAR