Home GnuPG
Diffusion GnuPG e573e6188dad

gpg: Fix --default-key checks.
e573e6188dadUnpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

gpg: Fix --default-key checks.

* g10/getkey.c (parse_def_secret_key): Don't just check if a secret
key is available for the public key, also consider subkeys.  Also
check that the key has the signing capability, is not revoked, is not
expired and is not disabled.  Print a warning if there was a least one
value passed to --default-key and all were ignored.
  • Signed-off-by: Neal H. Walfield <neal@g10code.com>
  • Regression-due-to: e16d7168

Details

Provenance
Neal H. Walfield <neal@g10code.com>Authored on Dec 14 2015, 12:05 PM
Parents
rGd40975cbe8ff: scd: Fix regression for generating RSA keys on card.
Branches
Unknown
Tags
Unknown