diff --git a/g10/ChangeLog b/g10/ChangeLog index 0ae89aefb..ab6de78e5 100644 --- a/g10/ChangeLog +++ b/g10/ChangeLog @@ -1,3 +1,8 @@ +2004-10-10 David Shaw + + * keygen.c (generate_keypair): Fix generating keys with the auth + flag. + 2004-10-08 David Shaw * encr-data.c (decrypt_data): Give a warning with a weak key, but diff --git a/g10/keygen.c b/g10/keygen.c index d1c6e609b..62ac28f1f 100644 --- a/g10/keygen.c +++ b/g10/keygen.c @@ -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; }