mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
common: Extend the openpgp_curve_to_oid function.
* common/openpgp-oid.c (openpgp_curve_to_oid): Add optional arg R_NBITS. Change all callers. -- In particular for ed25519 and cv25519 it is quite useful to have an ability to get the required algorithm.
This commit is contained in:
parent
113a8288b8
commit
24095101a5
9 changed files with 27 additions and 16 deletions
|
@ -1879,7 +1879,7 @@ list_config(char *items)
|
|||
es_printf ("cfg:curveoid:");
|
||||
for (iter=0, first=1; (s = openpgp_enum_curves (&iter)); first = 0)
|
||||
{
|
||||
s = openpgp_curve_to_oid (s, NULL);
|
||||
s = openpgp_curve_to_oid (s, NULL, NULL);
|
||||
es_printf ("%s%s", first?"":";", s? s:"[?]");
|
||||
}
|
||||
es_printf ("\n");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue