Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: cc01b26e053c7ae1e33889c8bc42beaa1d7799ac
      
https://github.com/tianocore/edk2/commit/cc01b26e053c7ae1e33889c8bc42beaa1d7799ac
  Author: Jian J Wang <[email protected]>
  Date:   2019-01-31 (Thu, 31 Jan 2019)

  Changed paths:
    M CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
    M CryptoPkg/Library/BaseCryptLib/InternalCryptLib.h
    M CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf
    R CryptoPkg/Library/BaseCryptLib/Pk/CryptPkcs7Verify.c
    A CryptoPkg/Library/BaseCryptLib/Pk/CryptPkcs7VerifyBase.c
    A CryptoPkg/Library/BaseCryptLib/Pk/CryptPkcs7VerifyCommon.c
    A CryptoPkg/Library/BaseCryptLib/Pk/CryptPkcs7VerifyRuntime.c
    M CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
    M CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf

  Log Message:
  -----------
  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 <[email protected]>
Cc: Qin Long <[email protected]>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang <[email protected]>
Reviewed-by: Ting Ye <[email protected]>




_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to