Home GnuPG
Diffusion GnuPG 5ea878274ef5

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.

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

Details

Provenance
wernerAuthored on Apr 24 2020, 1:14 PM
Parents
rGc03f80dc1960: sm: Minor debug output format changes.
Branches
Unknown
Tags
Unknown