Use different return values in payload decryption to distinguish between integrity and syntax errors
This commit is contained in:
@@ -1224,9 +1224,9 @@ static status_t decrypt_payloads(private_message_t *this, aead_t *aead)
|
||||
break;
|
||||
}
|
||||
chunk.len -= encryption->get_length(encryption);
|
||||
if (!encryption->decrypt(encryption, chunk))
|
||||
status = encryption->decrypt(encryption, chunk);
|
||||
if (status != SUCCESS)
|
||||
{
|
||||
status = VERIFY_ERROR;
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user