diff options
Diffstat (limited to 'src/libstrongswan/crypto/mac.h')
-rw-r--r-- | src/libstrongswan/crypto/mac.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libstrongswan/crypto/mac.h b/src/libstrongswan/crypto/mac.h index 10f09a831..10e789c22 100644 --- a/src/libstrongswan/crypto/mac.h +++ b/src/libstrongswan/crypto/mac.h @@ -44,8 +44,10 @@ struct mac_t { * * @param data chunk of data to authenticate * @param out pointer where the generated bytes will be written + * @return TRUE if mac generated successfully */ - void (*get_mac)(mac_t *this, chunk_t data, u_int8_t *out); + __attribute__((warn_unused_result)) + bool (*get_mac)(mac_t *this, chunk_t data, u_int8_t *out); /** * Get the size of the resulting MAC. |