aboutsummaryrefslogtreecommitdiffstats
path: root/sm/sign.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2023-11-08 16:09:04 +0000
committerWerner Koch <[email protected]>2023-11-08 16:09:22 +0000
commit3572b19fbd8f6eea1edcaa8f753a7c9654702bed (patch)
tree26e3bc1245f0171eb429862b22689d0ddd0c79fc /sm/sign.c
parentcommon: Declare two LibrePGP constants for future use (diff)
downloadgnupg-3572b19fbd8f6eea1edcaa8f753a7c9654702bed.tar.gz
gnupg-3572b19fbd8f6eea1edcaa8f753a7c9654702bed.zip
gpgsm: Support ECDSA in de-vs mode.
* common/compliance.h (PK_ALGO_FLAG_ECC18): New. * common/compliance.c (gnupg_pk_is_allowed): Implement. * sm/decrypt.c (gpgsm_decrypt): Pass new flag. * sm/sign.c (gpgsm_sign): Ditto. * sm/verify.c (gpgsm_verify): Ditto. -- GnuPG-bug-id: 6802
Diffstat (limited to 'sm/sign.c')
-rw-r--r--sm/sign.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sm/sign.c b/sm/sign.c
index cd0ddceb3..3e8f26cbd 100644
--- a/sm/sign.c
+++ b/sm/sign.c
@@ -835,8 +835,8 @@ gpgsm_sign (ctrl_t ctrl, certlist_t signerlist,
goto leave;
}
- if (!gnupg_pk_is_allowed (opt.compliance, PK_USE_SIGNING, pk_algo, 0,
- NULL, nbits, curve))
+ if (!gnupg_pk_is_allowed (opt.compliance, PK_USE_SIGNING, pk_algo,
+ PK_ALGO_FLAG_ECC18, NULL, nbits, curve))
{
char kidstr[10+1];