Sync gnulib base64 with coreutils base64.
authorSimon Josefsson <simon@josefsson.org>
Mon, 19 May 2008 17:32:00 +0000 (19:32 +0200)
committerSimon Josefsson <simon@josefsson.org>
Mon, 19 May 2008 17:32:00 +0000 (19:32 +0200)
commit005993646a135f222bd7015b5de31c94eb07f325
treeba906133bd5824d53cd60f2d68e4b4ba07a5bf47
parentcfc551f783f5bde5457a350fcc99bfc64857573d
Sync gnulib base64 with coreutils base64.
* lib/base64.c (base64_decode_ctx): If a decode context structure
was passed in use it to ignore newlines.  If a context structure
was _not_ passed in, continue to treat newlines as garbage (this
is the historical behavior).  Formerly base64_decode.
(base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
takes a decode context structure.
* lib/base64.h (base64_decode): Macro for four-argument calls.
(base64_decode_alloc): Likewise.
* lib/base64.c (base64_decode_ctx): If a decode context structure
was passed in use it to ignore newlines.  If a context structure
was _not_ passed in, continue to treat newlines as garbage (this
is the historical behavior).  Formerly base64_decode.
(base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
takes a decode context structure.
* lib/base64.h (base64_decode): Macro for four-argument calls.
(base64_decode_alloc): Likewise.
ChangeLog
lib/base64.c
lib/base64.h