aboutsummaryrefslogtreecommitdiffstats
path: root/com32/libutil/include
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-07-24 22:49:05 -0700
committerH. Peter Anvin <hpa@zytor.com>2007-07-24 22:49:05 -0700
commit61a4936836c3dc8341130b4fa938e0106f8a41bf (patch)
treeb594b7e08ca47794326610cae4018a63686f4e73 /com32/libutil/include
parent217a9b0c77cdd5df5800c7b250765f543c680477 (diff)
downloadsyslinux-61a4936836c3dc8341130b4fa938e0106f8a41bf.tar.gz
syslinux-61a4936836c3dc8341130b4fa938e0106f8a41bf.tar.xz
syslinux-61a4936836c3dc8341130b4fa938e0106f8a41bf.zip
Add support for Unix-standard MD5 password
Diffstat (limited to 'com32/libutil/include')
-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