aboutsummaryrefslogtreecommitdiffstats
path: root/wrap-json.md
diff options
context:
space:
mode:
authorjobol <jose.bollo@iot.bzh>2018-04-13 09:43:54 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2018-12-13 14:12:02 +0100
commit9457e11059bf723d9f2729712189925d9f98cbfc (patch)
tree7c3ff629e41a8b24a4fe5fb242c4a30ac778930a /wrap-json.md
parent40146155d3e305b0eb03b3871e054e203627e892 (diff)
wrap-json: Add base64 byte buffer support
Signed-off-by: jobol <jose.bollo@iot.bzh>
Diffstat (limited to 'wrap-json.md')
-rw-r--r--wrap-json.md19
1 files changed, 19 insertions, 0 deletions
diff --git a/wrap-json.md b/wrap-json.md
index 131b7aa..a86d2a5 100644
--- a/wrap-json.md
+++ b/wrap-json.md
@@ -66,6 +66,15 @@ arguments.
: Like `+#` but the length argument is of type size\_t.
+`y` (byte array) \[const uint8_t \*, size\_t\]
+
+: Convert the byte array whose length is given to
+ its base64url string representation.
+
+`Y` (byte array) \[const uint8_t \*, size\_t\]
+
+: Like 'y' but output is base64.
+
`n` (null)
: Output a JSON null value. No argument is consumed.
@@ -183,6 +192,16 @@ type whose address should be passed.
: Convert a JSON string to a pointer to a null terminated UTF-8 string
and its length.
+`y` (byte array) \[uint8_t \*\*, size\_t \*\]
+
+: Convert an input string base64url encoded to its
+ byte array representation. The result and its length
+ are stored. The returned buffer must be freed by the caller.
+
+`Y` (byte array) \[uint8_t \*\*, size\_t \*\]
+
+: Like 'y' but input is base64.
+
`n` (null)
: Expect a JSON null value. Nothing is extracted.