Add a return value to aead_t.set_key()

This commit is contained in:
Martin Willi
2012-07-16 14:53:32 +02:00
parent e2ed7bfd22
commit ad08730a4b
7 changed files with 30 additions and 9 deletions
+3 -1
View File
@@ -100,8 +100,10 @@ struct aead_t {
* Set the key for encryption and authentication.
*
* @param key encryption and authentication key
* @return TRUE if key set successfully
*/
void (*set_key)(aead_t *this, chunk_t key);
__attribute__((warn_unused_result))
bool (*set_key)(aead_t *this, chunk_t key);
/**
* Destroy a aead_t.