Add a return value to signer_t.set_key()

This commit is contained in:
Martin Willi
2012-07-16 14:53:33 +02:00
parent 9020f7d0b9
commit 2d56575d52
10 changed files with 56 additions and 20 deletions
@@ -101,10 +101,11 @@ METHOD(signer_t, get_block_size, size_t,
return this->truncation;
}
METHOD(signer_t, set_key, void,
METHOD(signer_t, set_key, bool,
private_signer_t *this, chunk_t key)
{
this->mac->set_key(this->mac, key);
return TRUE;
}
METHOD(signer_t, destroy, void,
+3 -1
View File
@@ -140,8 +140,10 @@ struct signer_t {
* Set the key for this object.
*
* @param key key to set
* @return TRUE if key set
*/
void (*set_key) (signer_t *this, chunk_t key);
__attribute__((warn_unused_result))
bool (*set_key) (signer_t *this, chunk_t key);
/**
* Destroys a signer_t object.