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 <email@example.com>
- Regression-due-to: e16d7168