diff options
| author | Werner Koch <[email protected]> | 2023-11-08 16:09:04 +0000 |
|---|---|---|
| committer | Werner Koch <[email protected]> | 2023-11-08 16:09:22 +0000 |
| commit | 3572b19fbd8f6eea1edcaa8f753a7c9654702bed (patch) | |
| tree | 26e3bc1245f0171eb429862b22689d0ddd0c79fc /sm/sign.c | |
| parent | common: Declare two LibrePGP constants for future use (diff) | |
| download | gnupg-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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]; |
