mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-23 10:29:58 +01:00
* keygen.c (generate_keypair): Fix generating keys with the auth flag.
This commit is contained in:
parent
fa012921b2
commit
65ec9772a7
@ -1,3 +1,8 @@
|
|||||||
|
2004-10-10 David Shaw <dshaw@jabberwocky.com>
|
||||||
|
|
||||||
|
* keygen.c (generate_keypair): Fix generating keys with the auth
|
||||||
|
flag.
|
||||||
|
|
||||||
2004-10-08 David Shaw <dshaw@jabberwocky.com>
|
2004-10-08 David Shaw <dshaw@jabberwocky.com>
|
||||||
|
|
||||||
* encr-data.c (decrypt_data): Give a warning with a weak key, but
|
* encr-data.c (decrypt_data): Give a warning with a weak key, but
|
||||||
|
@ -2385,11 +2385,12 @@ generate_keypair (const char *fname, const char *card_serialno,
|
|||||||
|
|
||||||
if (use)
|
if (use)
|
||||||
{
|
{
|
||||||
r = m_alloc_clear( sizeof *r + 20 );
|
r = m_alloc_clear( sizeof *r + 25 );
|
||||||
r->key = pKEYUSAGE;
|
r->key = pKEYUSAGE;
|
||||||
sprintf( r->u.value, "%s%s",
|
sprintf( r->u.value, "%s%s%s",
|
||||||
(use & PUBKEY_USAGE_SIG)? "sign ":"",
|
(use & PUBKEY_USAGE_SIG)? "sign ":"",
|
||||||
(use & PUBKEY_USAGE_ENC)? "encrypt ":"" );
|
(use & PUBKEY_USAGE_ENC)? "encrypt ":"",
|
||||||
|
(use & PUBKEY_USAGE_AUTH)? "auth":"" );
|
||||||
r->next = para;
|
r->next = para;
|
||||||
para = r;
|
para = r;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user