[PATCH] gpg: enable key-to-card upload for cert-only keys
Dominik Heidler
dominik at heidler.eu
Thu Jan 23 11:34:46 CET 2014
From: Dominik Heidler <dominik at heidler.eu>
* g10/card-util.c (card_store_subkey): allow PUBKEY_USAGE_CERT
--
GnuPG-bug-id: 1548
Signed-off-by: Dominik Heidler <dominik at heidler.eu>
---
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 add8eed..642843d 100644
--- a/g10/card-util.c
+++ b/g10/card-util.c
@@ -1569,7 +1569,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)));
-- 1.8.4.2
More information about the Gnupg-devel
mailing list