summaryrefslogtreecommitdiff
path: root/data/lighttpd/lighttpd-1.4.53/src/base64.h
diff options
context:
space:
mode:
authorMCApollo <34170230+MCApollo@users.noreply.github.com>2019-04-29 17:53:00 +0000
committerMCApollo <34170230+MCApollo@users.noreply.github.com>2019-04-29 17:53:00 +0000
commit59f5fd20e2f59ae186d5a461aef7782dd55e4e7b (patch)
tree10475faf0b6dcb812b64da679f4ae8ff01c45874 /data/lighttpd/lighttpd-1.4.53/src/base64.h
parentf06e297cd175cca39745f6d1970225ae88aa68f1 (diff)
Updated lighttpd.
Diffstat (limited to 'data/lighttpd/lighttpd-1.4.53/src/base64.h')
-rw-r--r--data/lighttpd/lighttpd-1.4.53/src/base64.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/data/lighttpd/lighttpd-1.4.53/src/base64.h b/data/lighttpd/lighttpd-1.4.53/src/base64.h
new file mode 100644
index 000000000..615f32f2a
--- /dev/null
+++ b/data/lighttpd/lighttpd-1.4.53/src/base64.h
@@ -0,0 +1,20 @@
+#ifndef _BASE64_H_
+#define _BASE64_H_
+#include "first.h"
+
+#include "buffer.h"
+
+typedef enum {
+ BASE64_STANDARD,
+ BASE64_URL,
+} base64_charset;
+
+unsigned char* buffer_append_base64_decode(buffer *out, const char* in, size_t in_length, base64_charset charset);
+
+size_t li_to_base64_no_padding(char* out, size_t out_length, const unsigned char* in, size_t in_length, base64_charset charset);
+size_t li_to_base64(char* out, size_t out_length, const unsigned char* in, size_t in_length, base64_charset charset);
+
+char* buffer_append_base64_encode_no_padding(buffer *out, const unsigned char* in, size_t in_length, base64_charset charset);
+char* buffer_append_base64_encode(buffer *out, const unsigned char* in, size_t in_length, base64_charset charset);
+
+#endif