diff options
author | NIIBE Yutaka <gniibe@fsij.org> | 2020-01-16 02:28:15 +0100 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2020-01-16 02:28:15 +0100 |
commit | 1aa2a0a46dc19e108b79dc129a3b0c5576d14671 (patch) | |
tree | 3836deab2c080c0360d7cf3e94e2dd4b1d089318 /g10 | |
parent | gpg: Cert only key should be usable with --default-key. (diff) | |
download | gnupg2-1aa2a0a46dc19e108b79dc129a3b0c5576d14671.tar.xz gnupg2-1aa2a0a46dc19e108b79dc129a3b0c5576d14671.zip |
gpg: default-key: Simply don't limit by capability.
* g10/getkey.c (parse_def_secret_key): Remove the check.
--
GnuPG-bug-id: 4810
Fixes-commit: e573e6188dada4d70f6897aa2fda3c3af8c50441
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
Diffstat (limited to 'g10')
-rw-r--r-- | g10/getkey.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/g10/getkey.c b/g10/getkey.c index cc908964e..3f1bd7e70 100644 --- a/g10/getkey.c +++ b/g10/getkey.c @@ -1859,11 +1859,6 @@ parse_def_secret_key (ctrl_t ctrl) { PKT_public_key *pk = node->pkt->pkt.public_key; - /* Check that the key has the signing capability. */ - if (! (pk->pubkey_usage & PUBKEY_USAGE_SIG) - && ! (pk->pubkey_usage & PUBKEY_USAGE_CERT)) - continue; - /* Check if the key is valid. */ if (pk->flags.revoked) { |