Add a return value to crypter_t.set_key()

This commit is contained in:
Martin Willi
2012-07-16 14:53:38 +02:00
parent 3b96189a2a
commit ce73fc19db
23 changed files with 87 additions and 57 deletions
@@ -168,9 +168,8 @@ static private_key_t *decrypt_private_key(chunk_t blob,
{
continue;
}
crypter->set_key(crypter, key);
if (!crypter->decrypt(crypter, blob, iv, &decrypted))
if (!crypter->set_key(crypter, key) ||
!crypter->decrypt(crypter, blob, iv, &decrypted))
{
continue;
}