CryptoPkg/Library/OpensslLib: Combine all performance optimized INFs
* Remove IA32/X64 specific INF files for performance optimized OpensslLib and combine into OpensslLibAccel.inf and OpensslLibFullAccel.inf. * Remove use of PcdOpensslEcEnabled and let the platform select the EC feature by using either OpensslLibFull.inf or OpensslLibFullAccel.inf. * With PcdOpensslEcEnabled removed, roll back style of opensslconf.h and remove opensslconf_generated.h. Move the choice to disable EC/SM2 into OpensslLib INF files using OPENSSL_FLAGS define. * Update OpensslLibContructor() API to be compatible with all FW phases by using types from Base.h and using RETURN_STATUS type and values instead of EFI_STATUS type and values. * Add /wd4718 to VS2015x86 for IA32 and X64 to disable warning for recursive call with no side effects. This is a false positive warning that is not produced with VS2017 or VS2019. Cc: Jiewen Yao <jiewen.yao@intel.com> Cc: Jian J Wang <jian.j.wang@intel.com> Cc: Xiaoyu Lu <xiaoyu1.lu@intel.com> Cc: Guomin Jiang <guomin.jiang@intel.com> Cc: Christopher Zurcher <christopher.zurcher@microsoft.com> Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com> Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
This commit is contained in:
committed by
mergify[bot]
parent
dd00f92b2f
commit
ea6d859b50
@@ -6,7 +6,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
|
||||
**/
|
||||
|
||||
#include <Uefi.h>
|
||||
#include <Base.h>
|
||||
|
||||
/**
|
||||
An internal OpenSSL function which fetches a local copy of the hardware
|
||||
@@ -30,7 +30,7 @@ OPENSSL_cpuid_setup (
|
||||
@retval EFI_SUCCESS The construction succeeded.
|
||||
|
||||
**/
|
||||
EFI_STATUS
|
||||
RETURN_STATUS
|
||||
EFIAPI
|
||||
OpensslLibConstructor (
|
||||
VOID
|
||||
@@ -38,5 +38,5 @@ OpensslLibConstructor (
|
||||
{
|
||||
OPENSSL_cpuid_setup ();
|
||||
|
||||
return EFI_SUCCESS;
|
||||
return RETURN_SUCCESS;
|
||||
}
|
||||
|
Reference in New Issue
Block a user