aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/crypto/mac.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstrongswan/crypto/mac.h')
-rw-r--r--src/libstrongswan/crypto/mac.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libstrongswan/crypto/mac.h b/src/libstrongswan/crypto/mac.h
index 10e789c22..4f952a2ad 100644
--- a/src/libstrongswan/crypto/mac.h
+++ b/src/libstrongswan/crypto/mac.h
@@ -62,8 +62,10 @@ struct mac_t {
* Any key length must be accepted.
*
* @param key key to set
+ * @return TRUE if key set successfully
*/
- void (*set_key) (mac_t *this, chunk_t key);
+ __attribute__((warn_unused_result))
+ bool (*set_key) (mac_t *this, chunk_t key);
/**
* Destroys a mac_t object.