Home GnuPG

Fold duplicated code in keyinfo.c into one function.

Description

Fold duplicated code in keyinfo.c into one function.

* src/keyinfo.c (_ksba_algoinfo_from_sexp): Remove.
(_ksba_keyinfo_from_sexp): Add arg algoinfomode
* src/certreq.c (ksba_certreq_add_subject): Adjust for change.
(ksba_certreq_set_serial): Use _ksba_keyinfo_from_sexp in
algoinfomode.
* tests/cert-basic.c (one_file): Adjust for change.
  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on May 14 2020, 12:13 PM
Parents
rKcdbced98819d: Fix qsort handler to reproducible sort the string table.
Branches
Unknown
Tags
Unknown