Skip to content

Commit 745ae8d

Browse files
authored
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
1 parent 3618382 commit 745ae8d

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

configure.ac

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1159,13 +1159,6 @@ case $php_sapi_module in
11591159
esac
11601160

11611161
EXTRA_LIBS="$EXTRA_LIBS $DLIBS $LIBS"
1162-
1163-
dnl This has to be here to prevent the openssl crypt() from overriding the
1164-
dnl system provided crypt().
1165-
if test "$ac_cv_lib_crypt_crypt" = "yes"; then
1166-
EXTRA_LIBS="-lcrypt $EXTRA_LIBS -lcrypt"
1167-
fi
1168-
11691162
unset LIBS
11701163

11711164
dnl PEAR

0 commit comments

Comments
 (0)