New base64 decoder (can handle unusual line lengths).
[claws.git] / src / base64.h
index 24e16d7bda71134ab8dc320c4fa163944a587bc3..327dfbf643a7b0fc7ce736cbf4e9372dec80bf86 100644 (file)
@@ -1,6 +1,14 @@
 #ifndef __BASE64_H__
 #define __BASE64_H__
 
 #ifndef __BASE64_H__
 #define __BASE64_H__
 
+typedef struct _Base64Decoder Base64Decoder;
+
+Base64Decoder * base64_decoder_new     (void);
+void           base64_decoder_free     (Base64Decoder *decoder);
+int            base64_decoder_decode   (Base64Decoder *decoder,
+                                        const char    *in, 
+                                        char          *out);
+
 void to64frombits(unsigned char *, const unsigned char *, int);
 int from64tobits(char *, const char *);
 
 void to64frombits(unsigned char *, const unsigned char *, int);
 int from64tobits(char *, const char *);