X-Git-Url: https://code.citadel.org/?p=citadel.git;a=blobdiff_plain;f=libcitadel%2Flib%2Flibcitadel.h;fp=libcitadel%2Flib%2Flibcitadel.h;h=7dd18e64cb351f465aaa9499a8db2ec41a8f1dcc;hp=a1aacb5fb2aa965b8d28873420e886ff46c107df;hb=e2c97f4b0f5420b21f491d6e61dca580f8772d39;hpb=77686f3e3c7b3a87e7bcf911601f1707ab0c0110 diff --git a/libcitadel/lib/libcitadel.h b/libcitadel/lib/libcitadel.h index a1aacb5fb..7dd18e64c 100644 --- a/libcitadel/lib/libcitadel.h +++ b/libcitadel/lib/libcitadel.h @@ -338,6 +338,14 @@ void StrBuf_RFC822_2_Utf8(StrBuf *Target, /* deprecated old version: */ void StrBuf_RFC822_to_Utf8(StrBuf *Target, const StrBuf *DecodeMe, const StrBuf* DefaultCharset, StrBuf *FoundCharset); +typedef enum __eStreamType { + eBase64Decode +} eStreamType; + +void *StrBufNewStreamContext(eStreamType type); +void StrBufDestroyStreamContext(eStreamType type, void **Stream); +void StrBufStreamDecodeTo(StrBuf *Target, const StrBuf *In, const char* pIn, long pInLen, void *Stream); + int StrBufDecodeBase64(StrBuf *Buf); int StrBufDecodeBase64To(const StrBuf *BufIn, StrBuf *BufOut); int StrBufDecodeHex(StrBuf *Buf);