WrapPkcs7Data(), Pkcs7GetSigners(), Pkcs7Verify() will get UEFI Authenticated\r
Variable and will do basic check for data structure.\r
\r
-Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2009 - 2015, 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
goto _Exit;\r
}\r
\r
- Length = ((BUF_MEM *) CertBio->ptr)->length;\r
+ Length = (INT32)(((BUF_MEM *) CertBio->ptr)->length);\r
if (Length <= 0) {\r
goto _Exit;\r
}\r
PKCS7 *Pkcs7;\r
BOOLEAN Status;\r
UINT8 *SignedData;\r
- UINT8 *Temp;\r
+ CONST UINT8 *Temp;\r
UINTN SignedDataSize;\r
BOOLEAN Wrapped;\r
STACK_OF(X509) *Stack;\r
X509 *Cert;\r
X509_STORE *CertStore;\r
UINT8 *SignedData;\r
- UINT8 *Temp;\r
+ CONST UINT8 *Temp;\r
UINTN SignedDataSize;\r
BOOLEAN Wrapped;\r
\r
//\r
// Read DER-encoded root certificate and Construct X509 Certificate\r
//\r
- Cert = d2i_X509 (NULL, &TrustedCert, (long) CertLength);\r
+ Temp = TrustedCert;\r
+ Cert = d2i_X509 (NULL, &Temp, (long) CertLength);\r
if (Cert == NULL) {\r
goto _Exit;\r
}\r