aboutsummaryrefslogtreecommitdiff
path: root/picohttp_base64.h
diff options
context:
space:
mode:
authorWolfgang Draxinger <Wolfgang.Draxinger@physik.uni-muenchen.de>2013-09-13 21:17:08 +0200
committerWolfgang Draxinger <Wolfgang.Draxinger@physik.uni-muenchen.de>2013-09-13 21:17:08 +0200
commit764e9f839f2b93a7f95b156a09c2c5f2067b95d3 (patch)
treea8a7c17a34bda999cf6be3100c8acdfe33142db9 /picohttp_base64.h
parent71a023a46a7ab8636ff3e5aa6ae42b181a6ac69d (diff)
downloadlitheweb-764e9f839f2b93a7f95b156a09c2c5f2067b95d3.tar.gz
litheweb-764e9f839f2b93a7f95b156a09c2c5f2067b95d3.tar.bz2
custom base64 decoder
Diffstat (limited to 'picohttp_base64.h')
-rw-r--r--picohttp_base64.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/picohttp_base64.h b/picohttp_base64.h
new file mode 100644
index 0000000..736b670
--- /dev/null
+++ b/picohttp_base64.h
@@ -0,0 +1,21 @@
+#pragma once
+#ifndef PICOHTTP_BASE64_H
+#define PICOHTTP_BASE64_H
+
+#include <stddef.h>
+#include <stdint.h>
+
+typedef uint8_t phb64raw_t[3];
+typedef char phb64enc_t[4];
+typedef uint32_t phb64state_t;
+
+void phb64encode(
+ phb64raw_t const raw,
+ size_t count,
+ phb64enc_t enc);
+
+size_t phb64decode(
+ phb64enc_t const enc,
+ phb64raw_t raw);
+
+#endif/*PICOHTTP_BASE64_H*/