summaryrefslogtreecommitdiffstats
path: root/sm
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2020-06-03 11:21:10 +0200
committerWerner Koch <wk@gnupg.org>2020-06-03 11:21:10 +0200
commit7558128e16d7fc20b9c40bf7e150ca08bbb4467f (patch)
treef05c57aa46e9b71f7873fec5ac10969fb95bbd90 /sm
parentscd: Fix condition for C5 data object for newer Yubikey. (diff)
downloadgnupg2-7558128e16d7fc20b9c40bf7e150ca08bbb4467f.tar.xz
gnupg2-7558128e16d7fc20b9c40bf7e150ca08bbb4467f.zip
sm: Fix recently introduced regression in CSR creation.
* sm/certreqgen.c (create_request): Also set SIGKEYLEN. -- Fixes-commit: 44676819f2873705b78849e7b2fd22214b691642 Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'sm')
-rw-r--r--sm/certreqgen.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sm/certreqgen.c b/sm/certreqgen.c
index 1dd456452..27a6a3458 100644
--- a/sm/certreqgen.c
+++ b/sm/certreqgen.c
@@ -1419,7 +1419,11 @@ create_request (ctrl_t ctrl,
}
}
else
- sigkey = public;
+ {
+ sigkey = public;
+ sigkeylen = publiclen;
+ sigkeypkalgo = publicpkalgo;
+ }
do
{