You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
openssl.c - ignores opensslconf.h & fails to link #8430
If openssl 1.1.1n is configured & built with any combination of the Configure [no-<cipher> ...] options:
no-md2
no-md4
no-md5
no-rmd160
While building php 8.0.18, linking results in this output (or similar):
ld: error: undefined symbol: EVP_md4
>>> referenced by openssl.c
>>> ext/openssl/openssl.o:(php_openssl_get_evp_md_from_algo)
>>> did you mean: EVP_md5
>>> defined in: /usr/local/lib/libcrypto.so
But I expected this output instead:
Build complete.
Don't forget to run 'make test'.
This has two causes. First is that the existing precompiler test for MD2 merely checks for the presence of the include/openssl/md2.h file, rather than the actual capabilities of the compiled library. The second cause is that openssl.c does not consult include/openssl/opensslconf.h for the other listed options. I have a patch, and will submit a PR once I get the bug number.
Activity
openssl.c: Add opensslconf.h checks for md2, md4, md5 and rmd160
PHP doesn't work without these:
Add many no's to openssl configure
Add many no's to openssl configure
Add many no's to openssl configure
Add many no's to openssl configure
Add many no's to openssl configure
Disable unused openssl features
Disable unused openssl features
Disable unused openssl features
Fix GH-8430: OpenSSL compiled with old disgests does not build
bukka commentedon Oct 22, 2022
Fixed except no-md5 which was removed in OpenSSL 1.1.0. It actually did not even work with OpenSSL 1.0.2. And we still have default MD5 alg for SPKI.