Add a return value to crypter_t.decrypt()

This commit is contained in:
Martin Willi committed 2012-07-16 14:53:38 +02:00
1 parent e35abbe588
commit 3b96189a2a
17 files changed
+72 -35

No files matched your search

+4 -2
View File
@@ -499,8 +499,10 @@ static bool decrypt(private_simaka_message_t *this)
eap_type_names, this->hdr->type);
return FALSE;
}
crypter->decrypt(crypter, this->encr, this->iv, &plain);
if (!crypter->decrypt(crypter, this->encr, this->iv, &plain))
{
return FALSE;
}
this->encrypted = TRUE;
success = parse_attributes(this, plain);