X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Frsagen.h;h=58ce29f0cb20da3a18469b6168b0481ec3c73cb4;hp=3f9c824802ff51b0f625c1cbe686b7defe613824;hb=af9ee7ff003fb448b783ccf39347907adc239cb2;hpb=0acdce222ff21c84cafc82c137e3d1e107a66fd9 diff --git a/src/rsagen.h b/src/rsagen.h index 3f9c8248..58ce29f0 100644 --- a/src/rsagen.h +++ b/src/rsagen.h @@ -22,8 +22,8 @@ #include "rsa.h" -extern rsa_t *rsa_generate(size_t bits, unsigned long exponent); -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 rsa_t *rsa_generate(size_t bits, unsigned long exponent) __attribute__ ((__malloc__)); +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