mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
* gpg.c (main): Restore convert-sk-to-pk as programs rely on it.
* keyid.c (usagestr_from_pk): Remove special PUBKEY_USAGE_CERT flag. It's no longer needed.
This commit is contained in:
parent
26eeebf512
commit
aebd3a04f3
3 changed files with 10 additions and 6 deletions
|
@ -543,13 +543,9 @@ usagestr_from_pk( PKT_public_key *pk )
|
|||
static char buffer[10];
|
||||
int i = 0;
|
||||
unsigned int use = pk->pubkey_usage;
|
||||
|
||||
|
||||
if ( use & PUBKEY_USAGE_SIG )
|
||||
{
|
||||
if (pk->is_primary)
|
||||
use|=PUBKEY_USAGE_CERT;
|
||||
buffer[i++] = 'S';
|
||||
}
|
||||
buffer[i++] = 'S';
|
||||
|
||||
if ( use & PUBKEY_USAGE_CERT )
|
||||
buffer[i++] = 'C';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue