1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00

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>
This commit is contained in:
NIIBE Yutaka 2020-01-16 10:28:15 +09:00
parent 9287f9e87b
commit 1aa2a0a46d

View File

@ -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)
{