1 /* b64 encoding/decoding */
6 #include "generic_types.h"
8 using namespace sysync;
12 // encode data to B64, returns allocated buffer
13 // does line breaks if maxLineLen!=0
15 const uInt8 *instr, uInt32 len, uInt32 *outlenP=NULL,
16 sInt16 maxLineLen=0, bool crLineEnd=false
19 // decode B64 string to data (len=0 calculates string length automatically)
20 uInt8 *decode(const char *instr, uInt32 len=0, uInt32 *outlenP=NULL);
22 // free memory allocated with encode or decode above
27 #endif /* SYSYNC_B64_H */