mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
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 <dominik@heidler.eu>
This commit is contained in:
parent
74c7ab5fa6
commit
f171fd226e
@ -1570,7 +1570,7 @@ card_store_subkey (KBNODE node, int use)
|
|||||||
goto leave;
|
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[1] = (!use || (use & (PUBKEY_USAGE_ENC)));
|
||||||
allow_keyno[2] = (!use || (use & (PUBKEY_USAGE_SIG|PUBKEY_USAGE_AUTH)));
|
allow_keyno[2] = (!use || (use & (PUBKEY_USAGE_SIG|PUBKEY_USAGE_AUTH)));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user