Add a return value to radius_message_t.sign()

This commit is contained in:
Martin Willi
2012-07-16 14:53:33 +02:00
parent 264e702109
commit 5fb719e0de
5 changed files with 26 additions and 15 deletions
+2 -1
View File
@@ -286,7 +286,7 @@ METHOD(radius_message_t, add, void,
this->msg->length = htons(ntohs(this->msg->length) + attribute->length);
}
METHOD(radius_message_t, sign, void,
METHOD(radius_message_t, sign, bool,
private_radius_message_t *this, u_int8_t *req_auth, chunk_t secret,
hasher_t *hasher, signer_t *signer, rng_t *rng, bool msg_auth)
{
@@ -329,6 +329,7 @@ METHOD(radius_message_t, sign, void,
hasher->get_hash(hasher, msg, NULL);
hasher->get_hash(hasher, secret, this->msg->authenticator);
}
return TRUE;
}
METHOD(radius_message_t, verify, bool,