scd:nks: Fix ECC signing if key not given by keygrip.

* scd/app-nks.c (keygripstr_from_pk_file): Set r_algo if not in cache.
This commit is contained in:
Werner Koch 2022-11-15 14:52:40 +01:00
parent 6ba5b6b854
commit 84aba39491
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B
1 changed files with 2 additions and 0 deletions

View File

@ -450,6 +450,8 @@ keygripstr_from_pk_file (app_t app, int pkfid, int cfid, char *r_gripstr,
if (!err)
{
if (r_algo)
*r_algo = algo;
if (r_algostr)
{
*r_algostr = algostr;