add man page and unit tests for scan_base64url
This commit is contained in:
@@ -16,10 +16,6 @@ Note that real world base64 encoded data is sometimes permitted to
|
||||
contain whitespace characters or new lines. This function will not allow
|
||||
those and return the decoded data until then.
|
||||
|
||||
base64 works by taking 3 bytes of binary input and converting them into
|
||||
4 bytes of printable ASCII. If the input ends in the middle of a base64
|
||||
4-byte-tuple, scan_base64 will disregard the whole tuple.
|
||||
|
||||
Many base64 variants demand padding in the last block. Some don't. This
|
||||
implementation will consume padding if it is there, but will not
|
||||
complain if it is not.
|
||||
@@ -30,7 +26,7 @@ dest can be NULL. destlen can be NULL.
|
||||
scan_base64 returns the number of bytes successfully scanned and
|
||||
processed from src.
|
||||
.SH EXAMPLES
|
||||
scan_base64("%9FYO<F0`",buf,&i) -> return 8, i=5, buf="fnord"
|
||||
scan_base64("Zm5vcmQ=",buf,&i) -> return 8, i=5, buf="fnord"
|
||||
|
||||
.SH "SEE ALSO"
|
||||
scan_xlong(3), scan_8long(3), fmt_ulong(3)
|
||||
scan_base64url(3), scan_xlong(3), scan_8long(3), fmt_ulong(3)
|
||||
|
||||
Reference in New Issue
Block a user