Rewrote our local implementation of a Base64 encoder/decoder as specified
[citadel.git] / libcitadel / lib / libcitadel.h
index 144386cc414ec5ee106285fbea03a1544d1d386e..06a8bcf19cef4b280629daf139fa37e6691c78d4 100644 (file)
@@ -26,7 +26,7 @@
 #include <sys/types.h>
 #include <netinet/in.h>
 
-#define LIBCITADEL_VERSION_NUMBER 935
+#define LIBCITADEL_VERSION_NUMBER 950
 
 /*
  * Here's a bunch of stupid magic to make the MIME parser portable.
@@ -311,8 +311,8 @@ void StrBuf_RFC822_2_Utf8(StrBuf *Target,
 void StrBuf_RFC822_to_Utf8(StrBuf *Target, const StrBuf *DecodeMe, const StrBuf* DefaultCharset, StrBuf *FoundCharset);
 
 typedef enum __eStreamType {
-       eBase64Encode,
-       eBase64Decode,
+       //eBase64Encode,
+       //eBase64Decode,
        eZLibEncode,
        eZLibDecode,
        eEmtyCodec
@@ -405,7 +405,7 @@ long extract_long (const char *source, int parmnum);
 unsigned long extract_unsigned_long(const char *source, int parmnum);
 void CtdlInitBase64Table(void);
 size_t CtdlEncodeBase64(char *dest, const char *source, size_t sourcelen, int linebreaks);
-int CtdlDecodeBase64(char *dest, const char *source, size_t length);
+size_t CtdlDecodeBase64(char *dest, const char *source, size_t length);
 unsigned int decode_hex(char *Source);
 int CtdlDecodeQuotedPrintable(char *decoded, char *encoded, int sourcelen);
 void StripSlashes(char *Dir, int TrailingSlash);