1 |
dpavlin |
1 |
/* |
2 |
|
|
* base64.c -- base-64 conversion routines. |
3 |
|
|
* |
4 |
|
|
* For license terms, see the file COPYING in this directory. |
5 |
|
|
* |
6 |
|
|
* This base 64 encoding is defined in RFC2045 section 6.8, |
7 |
|
|
* "Base64 Content-Transfer-Encoding", but lines must not be broken in the |
8 |
|
|
* scheme used here. |
9 |
|
|
*/ |
10 |
|
|
|
11 |
|
|
#ifndef __BASE64_H__ |
12 |
|
|
#define __BASE64_H__ |
13 |
|
|
|
14 |
|
|
/* Encode into base64 */ |
15 |
|
|
void base64_encode(unsigned char *out,const unsigned char *in,int inlen); |
16 |
|
|
|
17 |
|
|
/* Decode from base64 */ |
18 |
|
|
int base64_decode(char *out,const char *in,int maxlen); |
19 |
|
|
|
20 |
|
|
#endif |