]> git.ipfire.org Git - people/ms/suricata.git/commit
util-base64: strict mode - all characters must be valid
authorJason Ish <ish@unx.ca>
Wed, 14 Oct 2015 19:37:45 +0000 (13:37 -0600)
committerVictor Julien <victor@inliniac.net>
Mon, 23 Nov 2015 11:13:40 +0000 (12:13 +0100)
commit9375e8fb3c5430d43f6f50d128ec24f1b48bc03e
treef9c9645f33f58f4742abfb6ec0ecab99f3663c49
parent7281f6aaf300a449b3fc6d1322d8b8070612d149
util-base64: strict mode - all characters must be valid

Introduce a strict mode to base64 decode. If strict,
the function will fail when invalid input data is seen.
If not strict, what has been decoded will be returned.

This is in support of adding a Snort compatible base64_decode
rule option that uses whatever data can be decoded as a length
of data to decode is optional.
src/util-base64.c
src/util-base64.h
src/util-decode-mime.c