diff --git a/CryptoPkg/Library/BaseCryptLib/Pk/CryptPkcs7.c b/CryptoPkg/Library/BaseCryptLib/Pk/CryptPkcs7.c index 433175bbf1..c00d3bb033 100644 --- a/CryptoPkg/Library/BaseCryptLib/Pk/CryptPkcs7.c +++ b/CryptoPkg/Library/BaseCryptLib/Pk/CryptPkcs7.c @@ -408,7 +408,7 @@ Pkcs7Verify ( } Temp = SignedData; - Pkcs7 = d2i_PKCS7 (NULL, &Temp, (int) SignedDataSize); + Pkcs7 = d2i_PKCS7 (NULL, (const unsigned char **) &Temp, (int) SignedDataSize); if (Pkcs7 == NULL) { goto _Exit; }