CryptoPkg/Library/OpensslLib: Produce consistent set of APIs
Update all OpensslLib instances so they produce all the APIs used by the BaseCryptLib instances. Not producing the same set of APIs for a library class does not follow the EDK II library class rules and breaks the assumptions that consumers of the OpensslLib may make about which services are present. * Add missing declaration of the private library class OpensslLib to CryptoPkg.dec. * Add SslNull.c with NULL implementations of SSL functions * Add EcSm2Null.c with NULL implementations of EC/SM2 functions. * Update OpensslLibCrypto.inf to include both SslNull.c and EcSm2Null.c so this library instance produces all the opensll APIs used by the BaseCryptLib instances. * Update OpensslLib.inf and OpensslLibAccel.inf to include EcSm2Null.c so these library instances produce all the opensll APIs used by the BaseCryptLib instances. * Add missing declaration of the private library class IntrinsicLib to CryptoPkg.dec 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
ea6d859b50
commit
e75951ca89
@@ -37,6 +37,15 @@
|
||||
#
|
||||
HashApiLib|Include/Library/HashApiLib.h
|
||||
|
||||
[LibraryClasses.common.Private]
|
||||
## @libraryclass Provides library functions from the openssl project.
|
||||
#
|
||||
OpensslLib|Private/Library/OpensslLib.h
|
||||
|
||||
## @libraryclass Provides compiler intrinsic functions required to link openssl project.
|
||||
#
|
||||
InstrinsicLib|Private/Library/IntrinsicLib.h
|
||||
|
||||
[Protocols]
|
||||
## EDK II Crypto DXE protocol
|
||||
# 2C2275C9-3A7B-426F-BE54-2D22BD9D1092
|
||||
|
Reference in New Issue
Block a user