Home GnuPG
Diffusion GnuPG c1cd18538553

common: Add new function b64decode.

Description

common: Add new function b64decode.

* common/b64dec.c (b64decode): New.
* common/t-b64.c: Change license to LGPL.
(oops): New macro.
(hex2buffer): New.
(test_b64decode): New.
(main): Default to run the new test.
* common/Makefile.am (module_maint_tests): Move t-b64 to ...
(module_tests): here.

Sometimes we have a short base64 encoded string we need todecode.
This function makes it simpler.

License change of the test module justified because I am the single
author of the code.

Details

Provenance
wernerAuthored on Sep 29 2023, 11:34 AM
Parents
rG9f1c11cd3f45: dirmngr: Fix handling of the HTTP Content-Length
Branches
Unknown
Tags
Unknown