Back to index

courier  0.68.2
base64.h
Go to the documentation of this file.
00001 #ifndef base64_h
00002 #define base64_h
00003 
00004 #include "../rfc2045/rfc2045_config.h"
00005 
00006 
00007 /*
00008 ** Copyright 2002 Double Precision, Inc.  See COPYING for
00009 ** distribution information.
00010 */
00011 
00012 #ifdef  __cplusplus
00013 extern "C" {
00014 #endif
00015 
00016 /* This is an attempt to write a portable base64 decoder */
00017 
00018 struct base64decode {
00019 
00020        char workbuf[256];
00021        int workbuflen;
00022 
00023        int (*decode_func)(const char *, int, void *);
00024        void *decode_func_arg;
00025 } ;
00026 
00027 void base64_decode_init(struct base64decode *,
00028                      int (*)(const char *, int, void *),
00029                      void *);
00030 int base64_decode(struct base64decode *, const char *, int);
00031 int base64_decode_end(struct base64decode *);
00032 
00033 char *base64_decode_str(const char *);
00034 
00035 #ifdef  __cplusplus
00036 }
00037 #endif
00038 
00039 #endif