WrapPkcs7Data(), Pkcs7GetSigners(), Pkcs7Verify() will get UEFI Authenticated\r
Variable and will do basic check for data structure.\r
\r
-Copyright (c) 2009 - 2015, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2009 - 2016, Intel Corporation. All rights reserved.<BR>\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
@param[in] P7Data Pointer to the PKCS#7 message.\r
@param[in] P7Length Length of the PKCS#7 message in bytes.\r
- @param[out] SingerChainCerts Pointer to the certificates list chained to signer's\r
+ @param[out] SignerChainCerts Pointer to the certificates list chained to signer's\r
certificate. It's caller's responsiblity to free the buffer.\r
@param[out] ChainLength Length of the chained certificates list buffer in bytes.\r
@param[out] UnchainCerts Pointer to the unchained certificates lists. It's caller's\r
OldBuf = NULL;\r
Signers = NULL;\r
\r
+ ZeroMem (&CertCtx, sizeof (CertCtx));\r
+\r
//\r
// Parameter Checking\r
//\r
//\r
// Obtains Signer's Certificate from PKCS#7 data\r
// NOTE: Only one signer case will be handled in this function, which means SignerInfos\r
- // should include only one singer's certificate.\r
+ // should include only one signer's certificate.\r
//\r
Signers = PKCS7_get0_signers (Pkcs7, NULL, PKCS7_BINARY);\r
if ((Signers == NULL) || (sk_X509_num (Signers) != 1)) {\r
goto _Error;\r
}\r
}\r
- sk_X509_delete_ptr (CertCtx.untrusted, Signer);\r
+ (VOID)sk_X509_delete_ptr (CertCtx.untrusted, Signer);\r
\r
//\r
// Build certificates stack chained from Signer's certificate.\r
if (!sk_X509_push (CertCtx.chain, Issuer)) {\r
goto _Error;\r
}\r
- sk_X509_delete_ptr (CertCtx.untrusted, Issuer);\r
+ (VOID)sk_X509_delete_ptr (CertCtx.untrusted, Issuer);\r
\r
Cert = Issuer;\r
continue;\r