Base64 encoding and decoding functions.

This commit is contained in:
Guus Sliepen 2011-07-03 22:13:58 +02:00
parent c385d11533
commit 1d92dd62a7
2 changed files with 71 additions and 0 deletions

View file

@ -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()))