Add a return value to crypter_t.set_key()

This commit is contained in:
Martin Willi
2012-07-16 14:53:38 +02:00
parent 3b96189a2a
commit ce73fc19db
23 changed files with 87 additions and 57 deletions
+3 -1
View File
@@ -147,8 +147,10 @@ struct crypter_t {
* The length of the key must match get_key_size().
*
* @param key key to set
* @return TRUE if key set successfully
*/
void (*set_key) (crypter_t *this, chunk_t key);
__attribute__((warn_unused_result))
bool (*set_key) (crypter_t *this, chunk_t key);
/**
* Destroys a crypter_t object.