Home GnuPG
Diffusion GnuPG 332a72f73408

common: Extend the new get_keyalgo_string function

Description

common: Extend the new get_keyalgo_string function

* common/openpgp-oid.c (openpgp_oid_or_name_to_curve): New.
(get_keyalgo_string): Use it.

We do not always have an OID, so except the name or the alias of the
curve as well. This creates a second entry mapping to the same name
but that does not matter.

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

Details

Provenance
wernerAuthored on Feb 10 2020, 12:31 AM
Parents
rGd1c518cdc933: common: Remove duplicated call to a function.
Branches
Unknown
Tags
Unknown