Use const pointer to source in base64 and hex routines.
This commit is contained in:
parent
574b380dfc
commit
fa4a01e4a2
2 changed files with 8 additions and 8 deletions
|
|
@ -21,11 +21,11 @@
|
|||
#ifndef __TINC_UTILS_H__
|
||||
#define __TINC_UTILS_H__
|
||||
|
||||
extern int hex2bin(char *src, char *dst, int length);
|
||||
extern int 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(char *src, char *dst, int length);
|
||||
extern int b64decode(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);
|
||||
|
||||
#ifdef HAVE_MINGW
|
||||
extern const char *winerror(int);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue