Diffusion GnuPG e573e6188dad

gpg: Fix --default-key checks.

Authored by neal on Dec 14 2015, 12:05 PM.

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

Committed
nealDec 14 2015, 1:02 PM
Parents
rGd40975cbe8ff: scd: Fix regression for generating RSA keys on card.
Branches
Unknown
Tags
Unknown