mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-23 10:29:58 +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
ceef5568d5
commit
e790671cb3
@ -1549,7 +1549,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