mirror of
git://git.gnupg.org/gnupg.git
synced 2024-06-09 23:39:51 +02:00
gpg: default-key: Simply don't limit by capability.
* g10/getkey.c (parse_def_secret_key): Remove the check. -- Backport from master commit:1aa2a0a46d
GnuPG-bug-id: 4810 Fixes-commit:e573e6188d
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
6e4f7fe26e
commit
a7840777e4
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user