X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fecdsagen.h;h=1132dd6f42a20794c843fa2fa64b82c6931e9aa8;hb=c44b08613508c993e7fd9f625e0b1b4775efffed;hp=621913bc678cd690f1b7da7110dc6ec51cfae8b7;hpb=45063953fd3f2c25c7f8cc65860b32a35b3ba80e;p=tinc diff --git a/src/ecdsagen.h b/src/ecdsagen.h index 621913bc..1132dd6f 100644 --- a/src/ecdsagen.h +++ b/src/ecdsagen.h @@ -1,3 +1,6 @@ +#ifndef TINC_ECDSAGEN_H +#define TINC_ECDSAGEN_H + /* ecdsagen.h -- ECDSA key generation and export Copyright (C) 2011-2013 Guus Sliepen @@ -17,13 +20,10 @@ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef __TINC_ECDSAGEN_H__ -#define __TINC_ECDSAGEN_H__ - #include "ecdsa.h" -extern ecdsa_t *ecdsa_generate(void) __attribute__ ((__malloc__)); -extern bool ecdsa_write_pem_public_key(ecdsa_t *ecdsa, FILE *fp); -extern bool ecdsa_write_pem_private_key(ecdsa_t *ecdsa, FILE *fp); +extern ecdsa_t *ecdsa_generate(void) ATTR_MALLOC; +extern bool ecdsa_write_pem_public_key(ecdsa_t *ecdsa, FILE *fp) ATTR_WARN_UNUSED; +extern bool ecdsa_write_pem_private_key(ecdsa_t *ecdsa, FILE *fp) ATTR_WARN_UNUSED; #endif