mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-31 11:41:32 +01:00
common: Fix openpgp_is_curve_supported.
* common/openpgp-oid.c (openpgp_is_curve_supported): Support both of canonical name of the curve and alias. -- Only alias (the name for print) was allowed before this change. Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
acef095164
commit
945e7ab0dd
@ -424,8 +424,8 @@ openpgp_is_curve_supported (const char *name, int *r_algo)
|
||||
*r_algo = 0;
|
||||
for (idx = 0; idx < DIM (oidtable) && oidtable[idx].name; idx++)
|
||||
{
|
||||
if (!strcmp (name, (oidtable[idx].alias? oidtable[idx].alias
|
||||
/**/ : oidtable[idx].name))
|
||||
if ((!strcmp (name, oidtable[idx].name)
|
||||
|| (oidtable[idx].alias && !strcmp (name, (oidtable[idx].alias))))
|
||||
&& curve_supported_p (oidtable[idx].name))
|
||||
{
|
||||
if (r_algo)
|
||||
|
Loading…
x
Reference in New Issue
Block a user