1. Fix build break issue for NOOPT target.

2. Fix potential system hang issue in X509_STORE_CTX_cleanup.
3. Fix potential overflow when convert UINTN to INT.
4. Update Pkcs7Sign() to output stripped PKCS#7 SignedData.
5. Update Pkcs7Verify() to support both wrapped/stripped PKCS#7 SignedData.

Signed-off-by: tye
Reviewed-by: xdu2



git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12593 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
tye1
2011-10-28 07:41:26 +00:00
parent 91c7aa5389
commit da9e7418da
5 changed files with 126 additions and 13 deletions

View File

@ -65,6 +65,10 @@ AuthenticodeVerify (
ASSERT (AuthData != NULL);
ASSERT (ImageHash != NULL);
if (DataSize > INT_MAX) {
return FALSE;
}
Status = FALSE;
Pkcs7 = NULL;
OrigAuthData = AuthData;