From f171fd226e84311f92545ca0494771db07ba777d Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 24 Jun 2014 09:13:38 +0200 Subject: [PATCH] gpg: Allow key-to-card upload for cert-only keys * g10/card-util.c (card_store_subkey): Allo CERT usage for key 0. -- Suggested-by: Dominik Heidler --- g10/card-util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/g10/card-util.c b/g10/card-util.c index 411a4d482..84752eb0b 100644 --- a/g10/card-util.c +++ b/g10/card-util.c @@ -1570,7 +1570,7 @@ card_store_subkey (KBNODE node, int use) goto leave; } - allow_keyno[0] = (!use || (use & (PUBKEY_USAGE_SIG))); + allow_keyno[0] = (!use || (use & (PUBKEY_USAGE_SIG|PUBKEY_USAGE_CERT))); allow_keyno[1] = (!use || (use & (PUBKEY_USAGE_ENC))); allow_keyno[2] = (!use || (use & (PUBKEY_USAGE_SIG|PUBKEY_USAGE_AUTH)));