audk/CryptoPkg/Library/BaseCryptLib
Jian J Wang cc01b26e05 CryptoPkg/BaseCryptLib: split CryptPkcs7Verify.c on behalf of runtime
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1493

Pkcs7GetAttachedContent() implementation in current CryptPkcs7Verify.c
is actually shared by RuntimeCryptLib.inf, SmmCryptLib.inf and
BaseCryptLib.inf, which are not correct since there's no use scenario
for runtime and AllocatePool() used in this method can only be called
in boot time.

This patch fix this issue by splitting file CryptPkcs7Verify.c into 3 parts.

  CryptPkcs7VerifyCommon.c  (shared among Base, SMM, Runtime)
  CryptPkcs7VerifyBase.c    (shared between Base, SMM)
  CryptPkcs7VerifyRuntime.c (for Runtime only)

CryptPkcs7VerifyBase.c will have original implementation of
Pkcs7GetAttachedContent() as CryptPkcs7Verify.c. CryptPkcs7VerifyRuntime.c
provide a NULL version of Pkcs7GetAttachedContent().

No functionality and interface change is involved in this patch.

Cc: Ting Ye <ting.ye@intel.com>
Cc: Qin Long <qin.long@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang <jian.j.wang@intel.com>
Reviewed-by: Ting Ye <ting.ye@intel.com>
2019-01-31 21:25:05 +08:00
..
Cipher CryptoPkg: Clean up source files 2018-06-28 11:19:40 +08:00
Hash CryptoPkg: Clean up source files 2018-06-28 11:19:40 +08:00
Hmac CryptoPkg: Clean up source files 2018-06-28 11:19:40 +08:00
Pem CryptoPkg: Clean up source files 2018-06-28 11:19:40 +08:00
Pk CryptoPkg/BaseCryptLib: split CryptPkcs7Verify.c on behalf of runtime 2019-01-31 21:25:05 +08:00
Rand CryptoPkg: Clean up source files 2018-06-28 11:19:40 +08:00
SysCall CryptoPkg/BaseCryptLib: Fix potential integer overflow issue. 2018-10-31 11:07:53 +08:00
BaseCryptLib.inf CryptoPkg/BaseCryptLib: split CryptPkcs7Verify.c on behalf of runtime 2019-01-31 21:25:05 +08:00
BaseCryptLib.uni CryptoPkg: Clean up source files 2018-06-28 11:19:40 +08:00
InternalCryptLib.h CryptoPkg/BaseCryptLib: split CryptPkcs7Verify.c on behalf of runtime 2019-01-31 21:25:05 +08:00
PeiCryptLib.inf CryptoPkg/BaseCryptLib: split CryptPkcs7Verify.c on behalf of runtime 2019-01-31 21:25:05 +08:00
PeiCryptLib.uni CryptoPkg: Clean up source files 2018-06-28 11:19:40 +08:00
RuntimeCryptLib.inf CryptoPkg/BaseCryptLib: split CryptPkcs7Verify.c on behalf of runtime 2019-01-31 21:25:05 +08:00
RuntimeCryptLib.uni CryptoPkg: Clean up source files 2018-06-28 11:19:40 +08:00
SmmCryptLib.inf CryptoPkg/BaseCryptLib: split CryptPkcs7Verify.c on behalf of runtime 2019-01-31 21:25:05 +08:00
SmmCryptLib.uni CryptoPkg: Clean up source files 2018-06-28 11:19:40 +08:00