summaryrefslogtreecommitdiff
path: root/src/base64.c
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-07-14(do_decode): Output to parameter OUT, not to stdout.Paul Eggert
2006-03-05Make `base64 --wrap=N' work for N=0, and for N larger than SIZE_MAX.Jim Meyering
(wrap_write, do_encode, main): Change type of parameters and locals, wrap_column, form size_t to uintmax_t. (main): Adjust to use xstrtoumax, accordingly.
2006-02-27(do_decode): Use correct type for parameter, ignore_garbage: s/size_t/bool/.Jim Meyering
2006-02-27(wrap_write): Correct declaration syntax: s/size_t * V/size_t *V/.Jim Meyering
2006-02-27Don't include .h files already included by system.h:Jim Meyering
<string.h>, <stdlib.h>, <stdbool.h>, <limits.h>, <errno.h>. Include "system.h" before the other lib/*.h header files. Include <sys/types.h> before "system.h". (wrap_write): Remove declaration of unused local, initial_column.
2006-02-27*** empty log message ***Jim Meyering