Use void pointers to opaque buffers.
This commit is contained in:
parent
332b55d472
commit
75e5b2e906
2 changed files with 13 additions and 11 deletions
10
src/utils.h
10
src/utils.h
|
|
@ -21,12 +21,12 @@
|
|||
#ifndef __TINC_UTILS_H__
|
||||
#define __TINC_UTILS_H__
|
||||
|
||||
extern int hex2bin(const char *src, char *dst, int length);
|
||||
extern int bin2hex(const char *src, char *dst, int length);
|
||||
extern int hex2bin(const char *src, void *dst, int length);
|
||||
extern int bin2hex(const void *src, char *dst, int length);
|
||||
|
||||
extern int b64encode(const char *src, char *dst, int length);
|
||||
extern int b64encode_urlsafe(const char *src, char *dst, int length);
|
||||
extern int b64decode(const char *src, char *dst, int length);
|
||||
extern int b64encode(const void *src, char *dst, int length);
|
||||
extern int b64encode_urlsafe(const void *src, char *dst, int length);
|
||||
extern int b64decode(const char *src, void *dst, int length);
|
||||
|
||||
#ifdef HAVE_MINGW
|
||||
extern const char *winerror(int);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue