summaryrefslogtreecommitdiff
path: root/lib/base64.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/base64.h')
-rw-r--r--lib/base64.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/base64.h b/lib/base64.h
new file mode 100644
index 0000000..0f5e498
--- /dev/null
+++ b/lib/base64.h
@@ -0,0 +1,10 @@
+#ifndef NULLMAILER_BASE64__H__
+#define NULLMAILER_BASE64__H__
+
+#include "mystring/mystring.h"
+
+extern void base64_encode(const mystring& in, mystring& out);
+extern void base64_encode_chunk(const unsigned char bin[3], unsigned len,
+ char encoded[4]);
+
+#endif // NULLMAILER_BASE64__H__