X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fecdh.h;h=ea4a841ad30d224fb89023689c8ce2f43ee78abc;hb=4b6c01b1d5383b1a7417244a31ad4652aab2d5db;hp=03ff77ae9f2429f5eb1b7a06814faed902fe6075;hpb=f619a7412c1aeebcdeb98cb95244a9eed5d9b537;p=meshlink diff --git a/src/ecdh.h b/src/ecdh.h index 03ff77ae..ea4a841a 100644 --- a/src/ecdh.h +++ b/src/ecdh.h @@ -1,6 +1,9 @@ +#ifndef MESHLINK_ECDH_H +#define MESHLINK_ECDH_H + /* ecdh.h -- header file for ecdh.c - Copyright (C) 2014 Guus Sliepen + Copyright (C) 2014, 2017 Guus Sliepen This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -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 __MESHLINK_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 void ecdh_free(ecdh_t *ecdh); +ecdh_t *ecdh_generate_public(void *pubkey) __attribute__((__malloc__)); +bool ecdh_compute_shared(ecdh_t *ecdh, const void *pubkey, void *shared) __attribute__((__warn_unused_result__)); +void ecdh_free(ecdh_t *ecdh); #endif