base64.h revision 4b058f90f9e8a2c6b2eed275de4eb8cc5195a71d
#ifndef __BASE64_H
#define __BASE64_H
/* Translates binary data into base64. The src must not point to dest buffer. */
/* Translates base64 data into binary and appends it to dest buffer. dest may
point to same buffer as src. Returns 0 if all ok, -1 if data is invalid.
Any CR, LF characters are ignored, as well as whitespace at beginning or
end of line.
This function may be called multiple times for parsing the same stream.
If src_pos is non-NULL, it's updated to first non-translated character in
src. */
/* max. buffer size required for base64_encode() */
#define MAX_BASE64_ENCODED_SIZE(size) \
/* max. buffer size required for base64_decode() */
#define MAX_BASE64_DECODED_SIZE(size) \
#endif