Home GnuPG

Simplify the ksba_keyinfo_from_sexp function.

Description

Simplify the ksba_keyinfo_from_sexp function.

* src/keyinfo.c: Include der-builder.h
(get_ecc_curve_oid): Change to return a string.
(oid_from_buffer): Ditto.
(_ksba_keyinfo_from_sexp): Rewrite.

The DER builder stuff makes things much easier and the code is thus
now actually manageable.

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

Details

Provenance
wernerAuthored on May 14 2020, 6:58 PM
Parents
rK31c42e7568a7: Fix DER builder to a allow a single primitive element.
Branches
Unknown
Tags
Unknown