mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
Use EVP_PKEY_id() for OpenSSL 1.1 detection
The previous function, EVP_PKEY_meth_remove(), was deprecated in OpenSSL 3.0 and fully removed in OpenSSL 4.0. As a result, it fails detection of OpenSSL 1.1+ if OpenSSL 4 is present. Closes: https://github.com/ibm-s390-linux/s390-tools/pull/204 [seiden@linux.ibm.com: Add link to GH PR] Signed-off-by: Stephen Gallagher <sgallagh@redhat.com> Signed-off-by: Steffen Eiden <seiden@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
committed by
Jan Höppner
parent
8bb20be528
commit
679ab77b96
@@ -46,7 +46,7 @@ detect-openssl-version.dep:
|
||||
echo " #error openssl version 1.1 is required" >> $(TMPFILE)
|
||||
echo "#endif" >> $(TMPFILE)
|
||||
echo "static void __attribute__((unused)) test(void) {" >> $(TMPFILE)
|
||||
echo " EVP_PKEY_meth_remove(NULL);" >> $(TMPFILE)
|
||||
echo " EVP_PKEY_id(NULL);" >> $(TMPFILE)
|
||||
echo "}" >> $(TMPFILE)
|
||||
mv $(TMPFILE) $@
|
||||
|
||||
|
||||
Reference in New Issue
Block a user