#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 1 if all ok, 0 if end of base64 data
found, -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. */
/* Decode given string to a buffer allocated from data stack. */
/* Returns TRUE if c is a valid base64 encoding character (excluding '=') */
bool base64_is_valid_char(char c);
/* max. buffer size required for base64_encode() */
/* max. buffer size required for base64_decode() */
#endif