X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Futils.h;h=e2a3306312be7727daeabeab1b38ba80c1148104;hb=ec1f7e525d046bcaeb8e7040b8cec9a34a568371;hp=4e0b55fc58f0515ae979f45f5c9c841b150f088c;hpb=1d92dd62a786ecabbc05dfba5195f3f08e0f9585;p=tinc diff --git a/src/utils.h b/src/utils.h index 4e0b55fc..e2a33063 100644 --- a/src/utils.h +++ b/src/utils.h @@ -21,8 +21,8 @@ #ifndef __TINC_UTILS_H__ #define __TINC_UTILS_H__ -extern void hex2bin(char *src, char *dst, int length); -extern void bin2hex(char *src, char *dst, int length); +extern int hex2bin(const char *src, char *dst, int length); +extern int bin2hex(const char *src, char *dst, int length); extern int b64encode(const char *src, char *dst, int length); extern int b64decode(const char *src, char *dst, int length); @@ -47,4 +47,4 @@ extern const char *winerror(int); extern unsigned int bitfield_to_int(const void *bitfield, size_t size); -#endif /* __TINC_UTILS_H__ */ +#endif /* __TINC_UTILS_H__ */