X-Git-Url: https://www.tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Futils.h;h=7b16bc61ee3883f4dcb8d819c3ab50757b799b85;hb=5822f817aa802c2c5a83e9d99a8ae78cb822799b;hp=28afc4ef81ec42ef5407749c56fdcb21c23d5c1d;hpb=826ad11e419db90b66b3f76a90b54df021bb39fc;p=tinc diff --git a/src/utils.h b/src/utils.h index 28afc4ef..7b16bc61 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 *); +extern bool check_netname(const char *, bool strict); char *replace_name(const char *name); -#endif /* __TINC_UTILS_H__ */ +#endif