summaryrefslogtreecommitdiff
path: root/tests/misc/base64
AgeCommit message (Collapse)Author
2007-01-04[ChangeLog]Jim Meyering
When decoding, always allow newlines in input, with almost no performance impact. * src/base64.c (do_decode): Initialize decode context. Call base64_decode one more time, after all input is processed. (usage): When decoding, newlines are always accepted. * tests/misc/base64: Add a bunch of tests, for the above. * gl/lib/base64.c: Include <string.h>. (base64_decode_ctx_init, get_4, decode_4): New functions. (base64_decode): Efficiently handle interspersed newlines. (base64_decode_alloc): Update signature. * gl/lib/base64.h (struct base64_decode_context): Define. (base64_decode_ctx_init): Add prototype. (base64_decode, base64_decode_alloc): Update prototypes. [doc/ChangeLog] * coreutils.texi (base64 invocation): When decoding, newlines are always accepted.
2006-12-30* tests/misc/base64: Factor a long, repetitive string.Jim Meyering
2006-08-17Add/fix copyright notices and adjust to latest GNU FDL.Paul Eggert
2006-02-27Derive --decode-using tests from the encode-based ones.Jim Meyering
2006-02-27Factor out a long constant string.Jim Meyering
Split lines to stay within 80 columns.
2006-02-27Test base64. From Simon Josefsson.Jim Meyering