00001
00002
00003
00007 #ifndef _BASE64_H
00008 #define _BASE64_H
00009
00010 #ifdef __cplusplus
00011 extern "C" {
00012 #endif
00013
00014 #define ERR_BASE64_BUFFER_TOO_SMALL 0x0010
00015 #define ERR_BASE64_INVALID_CHARACTER 0x0012
00016
00032 int base64_encode( unsigned char *dst, int *dlen,
00033 unsigned char *src, int slen );
00034
00051 int base64_decode( unsigned char *dst, int *dlen,
00052 unsigned char *src, int slen );
00053
00059 int base64_self_test( int verbose );
00060
00061 #ifdef __cplusplus
00062 }
00063 #endif
00064
00065 #endif