mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
gpgsm: Allow ECC encryption keys with just keyAgreement specified.
* sm/certlist.c (cert_usage_p): Allow keyAgreement for ECC. * sm/fingerprint.c (gpgsm_is_ecc_key): New. -- For ECC encryption keys keyAgreement is the keyUsage we want.
This commit is contained in:
parent
50efcf2eb0
commit
6bd0dd762c
3 changed files with 11 additions and 1 deletions
|
@ -170,7 +170,8 @@ cert_usage_p (ksba_cert_t cert, int mode, int silent)
|
|||
}
|
||||
|
||||
encr_bits = (KSBA_KEYUSAGE_KEY_ENCIPHERMENT|KSBA_KEYUSAGE_DATA_ENCIPHERMENT);
|
||||
if ((opt.compat_flags & COMPAT_ALLOW_KA_TO_ENCR))
|
||||
if ((opt.compat_flags & COMPAT_ALLOW_KA_TO_ENCR)
|
||||
|| gpgsm_is_ecc_key (cert))
|
||||
encr_bits |= KSBA_KEYUSAGE_KEY_AGREEMENT;
|
||||
|
||||
sign_bits = (KSBA_KEYUSAGE_DIGITAL_SIGNATURE|KSBA_KEYUSAGE_NON_REPUDIATION);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue