summaryrefslogtreecommitdiffstats
path: root/cpukit/include/rtems/score
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2021-02-23 13:25:00 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2021-02-25 16:16:25 +0100
commit5f8bc839e89ea6efa7f48ebcec8939861024649f (patch)
tree94fff4d939edd79621c60f66a4164822cb4296d4 /cpukit/include/rtems/score
parentlibtest: Report build label (diff)
downloadrtems-5f8bc839e89ea6efa7f48ebcec8939861024649f.tar.bz2
score: Add _IO_Base64url()
Update #4267.
Diffstat (limited to 'cpukit/include/rtems/score')
-rw-r--r--cpukit/include/rtems/score/io.h51
1 files changed, 44 insertions, 7 deletions
diff --git a/cpukit/include/rtems/score/io.h b/cpukit/include/rtems/score/io.h
index f851d30b8a..f7b576fddd 100644
--- a/cpukit/include/rtems/score/io.h
+++ b/cpukit/include/rtems/score/io.h
@@ -64,15 +64,21 @@ int _IO_Vprintf(
* After word length of output characters produced by the encoding a word break
* is produced.
*
- * @param put_char The put character function.
- * @param arg The argument passed to the put character function.
- * @param src The pointer to the source buffer begin.
- * @param srclen The length of the source buffer in bytes.
- * @param wordbreak The word break string.
- * @param wordlen The word length in bytes. If the word length is less than
+ * @param put_char is the put character function used to output the encoded
+ * source buffer.
+ *
+ * @param arg is the argument passed to the put character function.
+ *
+ * @param src is the pointer to the source buffer begin.
+ *
+ * @param srclen is the length of the source buffer in bytes.
+ *
+ * @param wordbreak is the word break string.
+ *
+ * @param wordlen is the word length in bytes. If the word length is less than
* four, then a word length of four will be used.
*
- * @return The count of output characters.
+ * @return Returns the count of output characters.
*/
int _IO_Base64(
IO_Put_char put_char,
@@ -83,6 +89,37 @@ int _IO_Base64(
int wordlen
);
+/**
+ * @brief Outputs the source buffer in base64url encoding.
+ *
+ * After word length of output characters produced by the encoding a word break
+ * is produced.
+ *
+ * @param put_char is the put character function used to output the encoded
+ * source buffer.
+ *
+ * @param arg is the argument passed to the put character function.
+ *
+ * @param src is the pointer to the source buffer begin.
+ *
+ * @param srclen is the length of the source buffer in bytes.
+ *
+ * @param wordbreak is the word break string.
+ *
+ * @param wordlen is the word length in bytes. If the word length is less than
+ * four, then a word length of four will be used.
+ *
+ * @return Returns the count of output characters.
+ */
+int _IO_Base64url(
+ IO_Put_char put_char,
+ void *arg,
+ const void *src,
+ size_t len,
+ const char *wordbreak,
+ int wordlen
+);
+
/** @} */
#ifdef __cplusplus