X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fprf.h;h=1494eca8fae26acd56c785d3329f51abac180b33;hb=4b6c01b1d5383b1a7417244a31ad4652aab2d5db;hp=596d274407a9a2da569f9e3bdb9eb0d77aa99635;hpb=158cbe99f972a1613b7d4d95abfe5fe48e019e67;p=meshlink diff --git a/src/prf.h b/src/prf.h index 596d2744..1494eca8 100644 --- a/src/prf.h +++ b/src/prf.h @@ -1,6 +1,9 @@ +#ifndef MESHLINK_PRF_H +#define MESHLINK_PRF_H + /* prf.h -- header file for prf.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,9 +20,6 @@ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef __TINC_PRF_H__ -#define __TINC_PRF_H__ - -extern bool prf(const char *secret, size_t secretlen, char *seed, size_t seedlen, char *out, size_t outlen) __attribute__ ((__warn_unused_result__)); +bool prf(const char *secret, size_t secretlen, const char *seed, size_t seedlen, char *out, size_t outlen) __attribute__((__warn_unused_result__)); #endif