20
20
* External interface.
22
extern VSTRING *base64_encode(VSTRING *, const char *, ssize_t);
23
extern VSTRING *base64_decode(VSTRING *, const char *, ssize_t);
22
extern VSTRING *base64_encode_opt(VSTRING *, const char *, ssize_t, int);
23
extern VSTRING *base64_decode_opt(VSTRING *, const char *, ssize_t, int);
25
#define BASE64_FLAG_NONE 0
26
#define BASE64_FLAG_APPEND (1<<0)
28
#define base64_encode(bp, cp, ln) \
29
base64_encode_opt((bp), (cp), (ln), BASE64_FLAG_NONE)
30
#define base64_decode(bp, cp, ln) \
31
base64_decode_opt((bp), (cp), (ln), BASE64_FLAG_NONE)