Commit | Line | Data |
---|---|---|
2340bcd3 JVH |
1 | #ifndef BASE64_H |
2 | #define BASE64_H | |
3 | ||
4 | typedef struct base64_s base64_t; | |
5 | ||
6 | base64_t *base64_init(const char *charlist, int use_padding, int skip_spaces); | |
7 | ||
8 | int base64_encoded_length(base64_t *base64, int srclen); | |
9 | ||
10 | int base64_encode(base64_t *base64, char *dst, const unsigned char *src, int srclen); | |
11 | int base64_decode(base64_t *base64, unsigned char **dst, const char *src, int srclen); | |
12 | ||
13 | void base64_destroy(base64_t *base64); | |
14 | ||
15 | #endif |