1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00

* keygen.c (generate_keypair): Fix generating keys with the auth flag.

This commit is contained in:
David Shaw 2004-10-10 13:13:47 +00:00
parent fa012921b2
commit 65ec9772a7
2 changed files with 9 additions and 3 deletions

View File

@ -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>
* encr-data.c (decrypt_data): Give a warning with a weak key, but

View File

@ -2385,11 +2385,12 @@ generate_keypair (const char *fname, const char *card_serialno,
if (use)
{
r = m_alloc_clear( sizeof *r + 20 );
r = m_alloc_clear( sizeof *r + 25 );
r->key = pKEYUSAGE;
sprintf( r->u.value, "%s%s",
sprintf( r->u.value, "%s%s%s",
(use & PUBKEY_USAGE_SIG)? "sign ":"",
(use & PUBKEY_USAGE_ENC)? "encrypt ":"" );
(use & PUBKEY_USAGE_ENC)? "encrypt ":"",
(use & PUBKEY_USAGE_AUTH)? "auth":"" );
r->next = para;
para = r;
}