mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 02:37:28 +02:00
account for KARI bundle without CERT when callback is set
This commit is contained in:
@ -9110,6 +9110,14 @@ static int wc_PKCS7_DecryptKari(PKCS7* pkcs7, byte* in, word32 inSz,
|
||||
decryptedKey, *decryptedKeySz,
|
||||
keyWrapOID, (int)PKCS7_KARI, direction);
|
||||
XFREE(tmpKeyDer, pkcs7->heap, DYNAMIC_TYPE_TMP_BUFFER);
|
||||
|
||||
if (keySz > 0) {
|
||||
/* If unwrapping was successful then consider recipient
|
||||
* found. Checking for NULL singleCert to confirm previous
|
||||
* SID check was not done */
|
||||
if (pkcs7->singleCert == NULL)
|
||||
*recipFound = 1;
|
||||
}
|
||||
}
|
||||
else {
|
||||
/* create KEK */
|
||||
|
Reference in New Issue
Block a user