X-Git-Url: https://www.tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Futils.h;h=a0f64bb04c6ca80dfa316cb6e76fa43d34afb4ba;hb=a6448291834ca7419553a807ee367c719c2956d0;hp=28afc4ef81ec42ef5407749c56fdcb21c23d5c1d;hpb=826ad11e419db90b66b3f76a90b54df021bb39fc;p=tinc diff --git a/src/utils.h b/src/utils.h index 28afc4ef..a0f64bb0 100644 --- a/src/utils.h +++ b/src/utils.h @@ -1,3 +1,6 @@ +#ifndef TINC_UTILS_H +#define TINC_UTILS_H + /* utils.h -- header file for utils.c Copyright (C) 1999-2005 Ivo Timmermans @@ -18,9 +21,6 @@ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef __TINC_UTILS_H__ -#define __TINC_UTILS_H__ - extern int hex2bin(const char *src, void *dst, int length); extern int bin2hex(const void *src, char *dst, int length); @@ -50,6 +50,8 @@ extern const char *winerror(int); extern unsigned int bitfield_to_int(const void *bitfield, size_t size); +extern bool check_id(const char *id); +extern bool check_netname(const char *netname, bool strict); char *replace_name(const char *name); -#endif /* __TINC_UTILS_H__ */ +#endif