mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-04 00:00:14 -04:00
pkcs7: Add supported for unprotected PKCS#7 encrypted-data
This commit is contained in:
parent
dc704cf206
commit
bdd8f14354
@ -54,6 +54,11 @@ static bool decrypt(pkcs5_t *pkcs5, chunk_t data, chunk_t *decrypted)
|
||||
shared_key_t *shared;
|
||||
bool success = FALSE;
|
||||
|
||||
if (pkcs5->decrypt(pkcs5, chunk_empty, data, decrypted))
|
||||
{
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
enumerator = lib->credmgr->create_shared_enumerator(lib->credmgr,
|
||||
SHARED_PRIVATE_KEY_PASS, NULL, NULL);
|
||||
while (enumerator->enumerate(enumerator, &shared, NULL, NULL))
|
||||
|
Loading…
x
Reference in New Issue
Block a user