X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fed25519%2Fecdh.c;h=844b0fcc02b1ba1c86167ebde382e53ea8834b67;hb=eaea9a2ea3c80478a6aa4e502afaed5b5b6bbfde;hp=d0cd7e0aae80168b03940a13c880513f9599ef89;hpb=f619a7412c1aeebcdeb98cb95244a9eed5d9b537;p=meshlink diff --git a/src/ed25519/ecdh.c b/src/ed25519/ecdh.c index d0cd7e0a..844b0fcc 100644 --- a/src/ed25519/ecdh.c +++ b/src/ed25519/ecdh.c @@ -1,6 +1,6 @@ /* ecdh.c -- Diffie-Hellman key exchange handling - Copyright (C) 2011-2013 Guus Sliepen + Copyright (C) 2014 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 @@ -21,7 +21,7 @@ #include "ed25519.h" -#define __TINC_ECDH_INTERNAL__ +#define __MESHLINK_ECDH_INTERNAL__ typedef struct ecdh_t { uint8_t private[64]; } ecdh_t; @@ -31,7 +31,7 @@ typedef struct ecdh_t { #include "../xalloc.h" ecdh_t *ecdh_generate_public(void *pubkey) { - ecdh_t *ecdh = xzalloc(sizeof *ecdh); + ecdh_t *ecdh = xzalloc(sizeof * ecdh); uint8_t seed[32]; randomize(seed, sizeof seed);