X-Git-Url: https://www.tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fecdh.h;h=0bfc271598b972117bf2c399b563f56cacd0f2be;hb=f6e87ab476a0faf8b124ecaaa27f967d825e6457;hp=c5ea3efbb6d64b593de3d789785b8264c8b9d4a2;hpb=49e3baec20ddad9cc297c3eeb1d13f0e421f69c8;p=tinc diff --git a/src/ecdh.h b/src/ecdh.h index c5ea3efb..0bfc2715 100644 --- a/src/ecdh.h +++ b/src/ecdh.h @@ -1,3 +1,6 @@ +#ifndef TINC_ECDH_H +#define TINC_ECDH_H + /* ecdh.h -- header file for ecdh.c Copyright (C) 2011-2013 Guus Sliepen @@ -17,18 +20,15 @@ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef __TINC_ECDH_H__ -#define __TINC_ECDH_H__ - #define ECDH_SIZE 32 #define ECDH_SHARED_SIZE 32 -#ifndef __TINC_ECDH_INTERNAL__ +#ifndef TINC_ECDH_INTERNAL typedef struct ecdh ecdh_t; #endif -extern ecdh_t *ecdh_generate_public(void *pubkey) __attribute__ ((__malloc__)); -extern bool ecdh_compute_shared(ecdh_t *ecdh, const void *pubkey, void *shared) __attribute__ ((__warn_unused_result__)); +extern ecdh_t *ecdh_generate_public(void *pubkey) __attribute__((__malloc__)); +extern bool ecdh_compute_shared(ecdh_t *ecdh, const void *pubkey, void *shared) __attribute__((__warn_unused_result__)); extern void ecdh_free(ecdh_t *ecdh); #endif