aboutsummaryrefslogtreecommitdiffstats
path: root/src/b64enc.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Mark the initializations with __nonstring__ attribute.NIIBE Yutaka2025-04-211-0/+1
| | | | | | | | | | * src/b64enc.c (bintoasc): Use GPGRT_ATTR_NONSTRING. * src/gpg-error.h.in (GPGRT_ATTR_NONSTRING): New. -- GnuPG-bug-id: 7621 Signed-off-by: NIIBE Yutaka <[email protected]>
* core: Add Base-64 encoder.Werner Koch2018-03-221-132/+96
| | | | | | | | | | | | | | | | | | | | | | | * src/b64enc.c: Change to fit into libgpg-error. * src/Makefile.am: Add b64enc.c * src/b64dec.c: Use xtrymalloc etc. Always use gpg_err_code_t. (_gpgrt_b64dec_start): Set decoder flag (_gpgrt_b64dec_finish): Check for conflict. (_gpgrt_b64state): Move to ... * src/gpgrt-int.h: here. Add new fields. * src/visibility.c (gpgrt_b64enc_start): New. (gpgrt_b64enc_write): New. (gpgrt_b64enc_finish): New. * src/gpg-error.vers, src/gpg-error.def.in: Add new functions. * src/gpg-error.h.in: Ditto. * src/visibility.h: Ditto. * tests/t-b64dec.c: Remove. * tests/t-b64.c: New. * tests/Makefile.am (TESTS): Replace t-b64dec by t-b64. -- Signed-off-by: Werner Koch <[email protected]>
* core: Add file b64enc.c from gnupgWerner Koch2018-03-221-0/+422
-- This is from GnuPG commit fa0ed1c7e2eee7c559026696e6b21acc882a97aa with two tabs replaced by spaces. Signed-off-by: Werner Koch <[email protected]>