]> git.meshlink.io Git - meshlink/blobdiff - src/rsagen.h
Add __attribute__((warn_unused_result)) to crypto functions.
[meshlink] / src / rsagen.h
index 84cd0bb446b14de869b979b99556fe2b39c9cae4..58ce29f0cb20da3a18469b6168b0481ec3c73cb4 100644 (file)
@@ -23,7 +23,7 @@
 #include "rsa.h"
 
 extern rsa_t *rsa_generate(size_t bits, unsigned long exponent) __attribute__ ((__malloc__));
-extern bool rsa_write_pem_public_key(rsa_t *rsa, FILE *fp);
-extern bool rsa_write_pem_private_key(rsa_t *rsa, FILE *fp);
+extern bool rsa_write_pem_public_key(rsa_t *rsa, FILE *fp) __attribute__ ((__warn_unused_result__));
+extern bool rsa_write_pem_private_key(rsa_t *rsa, FILE *fp) __attribute__ ((__warn_unused_result__));
 
 #endif