Home GnuPG
Diffusion GnuPG d21ced1e3596

common: Add an easy to use DER builder.

Description

common: Add an easy to use DER builder.

* common/tlv-builder.c: New.
* common/tlv.c: Remove stuff only used by GnuPG 1.
(put_tlv_to_membuf, get_tlv_length): Move to ...
* common/tlv-builder.c: here.
* common/tlv.h (tlv_builder_t): New.

Such code should actually go into libksba and we will eventually do
that. However, for now it is easier to keep it here.

(cherry picked from commit 5ea878274ef51c819368f021c69c518b9aef6f82)

  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Apr 24 2020, 1:14 PM
Parents
rG7b1db7192e6e: g10: Fix garbled status messages in NOTATION_DATA
Branches
Unknown
Tags
Unknown