]> granicus.if.org Git - apache/commit
util.c: add a strict Base64 decoding function
authorJacob Champion <jchampion@apache.org>
Thu, 25 May 2017 21:18:42 +0000 (21:18 +0000)
committerJacob Champion <jchampion@apache.org>
Thu, 25 May 2017 21:18:42 +0000 (21:18 +0000)
commit6a1008ee103b0f18609ebc7a96592b2c5fb7076f
treedcbb8a3300b3f52bd75a245e9125ed1999e54b24
parent9d1dad18d8bce72a4e18e04454751bed929a7b8a
util.c: add a strict Base64 decoding function

ap_pbase64decode_strict() adds to the functionality of
ap_pbase64decode() in two ways:

- the length of the decoded buffer is returned, allowing embedded NULLs
  to be retained by the caller
- the input string is strictly checked for Base64 validity, including
  correct zero-padding at the end of the string

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/httpdunit@1796208 13f79535-47bb-0310-9956-ffa450edef68
include/httpd.h
server/util.c
test/unit/base64.c [new file with mode: 0644]