base64 encoder/decoder: Add parameter to control linefeed handling
authorThomas Jarosch <thomas.jarosch@intra2net.com>
Thu, 8 Jun 2017 09:22:14 +0000 (11:22 +0200)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Thu, 8 Jun 2017 09:22:14 +0000 (11:22 +0200)
commit1ebab1e3b74e4c9c435e4806402e0a4503d0f59c
tree08f076f8a5853fa1c42d924f9385aee1bf55b134
parent2bb723379a55acfa37cd2258f14a43914022ef41
base64 encoder/decoder: Add parameter to control linefeed handling

openssl is very strict about if the input data of the decoder
contains linefeeds or not.

Therefore make it a parameter and default
to "one line" base64 output/input.

Add unit test cases.
src/stringfunc.cpp
src/stringfunc.hxx
test/stringfunc.cpp