mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
gpg: Cert only key should be usable with --default-key.
* g10/getkey.c (parse_def_secret_key): Allow cert-only key.
--
GnuPG-bug-id: 4810
Fixes-commit: e573e6188d
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
2dd6b4b998
commit
9287f9e87b
1 changed files with 2 additions and 1 deletions
|
@ -1860,7 +1860,8 @@ parse_def_secret_key (ctrl_t ctrl)
|
||||||
PKT_public_key *pk = node->pkt->pkt.public_key;
|
PKT_public_key *pk = node->pkt->pkt.public_key;
|
||||||
|
|
||||||
/* Check that the key has the signing capability. */
|
/* Check that the key has the signing capability. */
|
||||||
if (! (pk->pubkey_usage & PUBKEY_USAGE_SIG))
|
if (! (pk->pubkey_usage & PUBKEY_USAGE_SIG)
|
||||||
|
&& ! (pk->pubkey_usage & PUBKEY_USAGE_CERT))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
/* Check if the key is valid. */
|
/* Check if the key is valid. */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue