Add a return value to crypter_t.decrypt()

This commit is contained in:
Martin Willi
2012-07-16 14:53:38 +02:00
parent e35abbe588
commit 3b96189a2a
17 changed files with 72 additions and 35 deletions
+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);