aboutsummaryrefslogtreecommitdiffstats
path: root/com32/libutil/include/base64.h
diff options
context:
space:
mode:
Diffstat (limited to 'com32/libutil/include/base64.h')
-rw-r--r--com32/libutil/include/base64.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/com32/libutil/include/base64.h b/com32/libutil/include/base64.h
index 89ea1800..514eb177 100644
--- a/com32/libutil/include/base64.h
+++ b/com32/libutil/include/base64.h
@@ -36,6 +36,16 @@
#include <stddef.h>
+#define BASE64_PAD 0x10000
+
+/* There is plenty of disagreement w.r.t. the last few characters... */
+#define BASE64_MIME ('+' + ('/' << 8))
+#define BASE64_SAFE ('-' + ('_' << 8))
+#define BASE64_CRYPT ('.' + ('/' << 8))
+#define BASE64_URL ('*' + ('-' << 8)) /* Haven't seen myself */
+#define BASE64_REGEX ('|' + ('-' << 8)) /* Ditto... */
+
+size_t genbase64(char *output, const void *digest, size_t size, int flags);
size_t unbase64(unsigned char *, size_t, const char *);
#endif