1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00

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 868dabb402
commit 2c4757352d
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B

View File

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