Add a return value to prf_t.set_key()
This commit is contained in:
@@ -70,10 +70,11 @@ METHOD(prf_t, get_key_size, size_t,
|
||||
return this->mac->get_mac_size(this->mac);
|
||||
}
|
||||
|
||||
METHOD(prf_t, set_key, void,
|
||||
METHOD(prf_t, set_key, bool,
|
||||
private_prf_t *this, chunk_t key)
|
||||
{
|
||||
this->mac->set_key(this->mac, key);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
METHOD(prf_t, destroy, void,
|
||||
|
||||
@@ -113,8 +113,10 @@ struct prf_t {
|
||||
* Set the key for this prf_t object.
|
||||
*
|
||||
* @param key key to set
|
||||
* @return TRUE if key set successfully
|
||||
*/
|
||||
void (*set_key) (prf_t *this, chunk_t key);
|
||||
__attribute__((warn_unused_result))
|
||||
bool (*set_key) (prf_t *this, chunk_t key);
|
||||
|
||||
/**
|
||||
* Destroys a prf object.
|
||||
|
||||
Reference in New Issue
Block a user