summaryrefslogtreecommitdiffstats
path: root/include/base64.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/base64.h')
-rw-r--r--include/base64.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/base64.h b/include/base64.h
new file mode 100644
index 0000000000..0df510281d
--- /dev/null
+++ b/include/base64.h
@@ -0,0 +1,9 @@
+#ifndef __BASE64_H
+#define __BASE64_H
+
+void uuencode(char *p, const char *src, int length);
+int decode_base64(char *dst, int dst_len, const char *src);
+
+#define BASE64_LENGTH(len) (4 * (((len) + 2) / 3))
+
+#endif /* __BASE64_H */