Mark the *_primitive() accessors as warn_unused_result

This commit is contained in:
Frank Denis 2017-03-01 08:14:03 +01:00
parent ca188c59fd
commit 02565ad4c8

View File

@ -32,7 +32,8 @@ size_t crypto_kdf_keybytes(void);
#define crypto_kdf_PRIMITIVE "blake2b" #define crypto_kdf_PRIMITIVE "blake2b"
SODIUM_EXPORT SODIUM_EXPORT
const char *crypto_kdf_primitive(void); const char *crypto_kdf_primitive(void)
__attribute__ ((warn_unused_result));
SODIUM_EXPORT SODIUM_EXPORT
int crypto_kdf_derive_from_key(unsigned char *subkey, size_t subkey_len, int crypto_kdf_derive_from_key(unsigned char *subkey, size_t subkey_len,