aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2020-01-16 01:28:15 +0000
committerNIIBE Yutaka <[email protected]>2020-01-16 01:31:23 +0000
commita7840777e4277039482ce3ea3e6fc919526be2f1 (patch)
tree66a1ddd1576bc7c89c1c2c2d54ade7e4bc117639
parentpo: Update Japanese Translation. (diff)
downloadgnupg-a7840777e4277039482ce3ea3e6fc919526be2f1.tar.gz
gnupg-a7840777e4277039482ce3ea3e6fc919526be2f1.zip
gpg: default-key: Simply don't limit by capability.
* g10/getkey.c (parse_def_secret_key): Remove the check. -- Backport from master commit: 1aa2a0a46dc19e108b79dc129a3b0c5576d14671 GnuPG-bug-id: 4810 Fixes-commit: e573e6188dada4d70f6897aa2fda3c3af8c50441 Signed-off-by: NIIBE Yutaka <[email protected]>
-rw-r--r--g10/getkey.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/g10/getkey.c b/g10/getkey.c
index 0aca88ca1..f375bf45b 100644
--- a/g10/getkey.c
+++ b/g10/getkey.c
@@ -1917,10 +1917,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))
- continue;
-
/* Check if the key is valid. */
if (pk->flags.revoked)
{