1 /*
2  * include/common/base64.h
3  * Ascii to Base64 conversion as described in RFC1421.
4  *
5  * Copyright 2006-2010 Willy Tarreau <w@1wt.eu>
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License
9  * as published by the Free Software Foundation; either version
10  * 2 of the License, or (at your option) any later version.
11  *
12  */
13 
14 #ifndef _COMMON_BASE64_H
15 #define _COMMON_BASE64_H
16 
17 #include <common/config.h>
18 
19 int a2base64(char *in, int ilen, char *out, int olen);
20 int base64dec(const char *in, size_t ilen, char *out, size_t olen);
21 const char *s30tob64(int in, char *out);
22 int b64tos30(const char *in);
23 
24 extern const char base64tab[];
25 
26 #endif /* _COMMON_BASE64_H */
27