Add a return value to mac_t.get_bytes()
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user