Issue
Description of problem:
Compiling the rhel-9-main openssl code in edk2 context fails due to warnings
and edk2 building the openssl with -Werror.
Version-Release number of selected component (if applicable):
git://pkgs.devel.redhat.com/rpms/openssl rhel-9-main
commit d30c497ed1125a1e780be4cf1c713041353bc88a
How reproducible:
100%
Steps to Reproduce:
1. compile rhel openssl rpm with -Werror enabled.
Actual results:
/vmdisk/nvme/tmp/rpmbuild/build/edk2-819cfc6b42a6/CryptoPkg/Library/OpensslLib/openssl/crypto/provider_conf.c: In function ‘provider_conf_init’:
/vmdisk/nvme/tmp/rpmbuild/build/edk2-819cfc6b42a6/CryptoPkg/Library/OpensslLib/openssl/crypto/provider_conf.c:341:13: error: implicit declaration of function ‘EVP_default_properties_enable_fips’ [-Werror=implicit-function-declaration]
341 |
if (EVP_default_properties_enable_fips(libctx, 1) != 1)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
Additional info:
Seems to be a missing '#include <openssl/evp.h>'