X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Frsagen.h;h=27c076d0b264e076664efe6737dc70579dad7d19;hb=28be4baae016a5a771d0d9ec6e97ef38a4fc9e46;hp=58ce29f0cb20da3a18469b6168b0481ec3c73cb4;hpb=7b949262c4c01fdeff30a612d43f4b64f1ad426f;p=tinc diff --git a/src/rsagen.h b/src/rsagen.h index 58ce29f0..27c076d0 100644 --- a/src/rsagen.h +++ b/src/rsagen.h @@ -1,3 +1,6 @@ +#ifndef TINC_RSAGEN_H +#define TINC_RSAGEN_H + /* rsagen.h -- RSA key generation and export Copyright (C) 2008-2013 Guus Sliepen @@ -17,13 +20,10 @@ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef __TINC_RSAGEN_H__ -#define __TINC_RSAGEN_H__ - #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) __attribute__ ((__warn_unused_result__)); -extern bool rsa_write_pem_private_key(rsa_t *rsa, FILE *fp) __attribute__ ((__warn_unused_result__)); +extern rsa_t *rsa_generate(size_t bits, unsigned long exponent) ATTR_DEALLOCATOR(rsa_free); +extern bool rsa_write_pem_public_key(rsa_t *rsa, FILE *fp) ATTR_WARN_UNUSED; +extern bool rsa_write_pem_private_key(rsa_t *rsa, FILE *fp) ATTR_WARN_UNUSED; #endif