Base64 encoding and decoding functions.
This commit is contained in:
parent
c385d11533
commit
1d92dd62a7
2 changed files with 71 additions and 0 deletions
|
|
@ -24,6 +24,9 @@
|
|||
extern void hex2bin(char *src, char *dst, int length);
|
||||
extern void bin2hex(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);
|
||||
#define strerror(x) ((x)>0?strerror(x):winerror(GetLastError()))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue