Home GnuPG

Use hasX instead of canX to check key capabilities

Description

Use hasX instead of canX to check key capabilities

In these cases we also want expired encryption keys to match. Therefore,
we need to use the new hasX capability queries. For example, canEncrypt()
returns false for an expired key with encryption subkey (if the primary
subkey does not support encryption).

Details

Provenance
ikloeckerAuthored on Oct 5 2023, 4:02 PM
Parents
rLIBKLEO0a9b99f2e47e: Add compat helpers for new hasCertify, hasSign, etc. methods of GpgME::Key
Branches
Unknown
Tags
Unknown