aboutsummaryrefslogtreecommitdiffstats
path: root/sm/certcheck.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2020-06-25 06:57:33 +0000
committerWerner Koch <[email protected]>2020-06-25 06:57:33 +0000
commit17a25c14f1ed1199898ad618c17204eafd5524c1 (patch)
tree0c5fb33d470c2436d880a767ed901cde683c860a /sm/certcheck.c
parentagent: separate out daemon handling infrastructure for reuse (diff)
downloadgnupg-17a25c14f1ed1199898ad618c17204eafd5524c1.tar.gz
gnupg-17a25c14f1ed1199898ad618c17204eafd5524c1.zip
sm: Fix support verification of nistp521 signatures.
* sm/certcheck.c (do_encode_md): Fix obvious bug. -- Fixes-commit: 596212e71abf33b30608348b782c093dace83110 Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'sm/certcheck.c')
-rw-r--r--sm/certcheck.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sm/certcheck.c b/sm/certcheck.c
index cf9495a58..d04a86588 100644
--- a/sm/certcheck.c
+++ b/sm/certcheck.c
@@ -82,7 +82,7 @@ do_encode_md (gcry_md_hd_t md, int algo, int pkalgo, unsigned int nbits,
if ( pkalgo == GCRY_PK_ECC )
{
qbits0 = gcry_pk_get_nbits (pkey);
- qbits = qbits0 == 521? 512 : qbits;
+ qbits = qbits0 == 521? 512 : qbits0;
}
else
qbits0 = qbits = get_dsa_qbits (pkey);