From 745ae8ddd829d890feaf57a834f953fbbf718d37 Mon Sep 17 00:00:00 2001 From: Peter Kokot Date: Mon, 8 Jul 2024 20:24:28 +0200 Subject: [PATCH] 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 --- configure.ac | 7 ------- 1 file changed, 7 deletions(-) diff --git a/configure.ac b/configure.ac index 789fb038284..d94ecc21329 100644 --- a/configure.ac +++ b/configure.ac @@ -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