From 84aba39491c29b3b65e4746a7301cb13cde43c8d Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 15 Nov 2022 14:52:40 +0100 Subject: [PATCH] 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. --- scd/app-nks.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scd/app-nks.c b/scd/app-nks.c index 348a6203c..b872e6e57 100644 --- a/scd/app-nks.c +++ b/scd/app-nks.c @@ -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;