1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-06-18 00:49:50 +02:00

* getkey.c (merge_selfsigs_main): All primary keys can certify.

This commit is contained in:
David Shaw 2005-12-19 22:10:20 +00:00
parent 5432755319
commit 64fa7ea37e
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2005-12-19 David Shaw <dshaw@jabberwocky.com>
* getkey.c (merge_selfsigs_main): All primary keys can certify.
2005-12-18 David Shaw <dshaw@jabberwocky.com>
* gpg.c (main): Restore convert-sk-to-pk as programs rely on it.

View File

@ -1812,7 +1812,9 @@ merge_selfsigs_main(KBNODE keyblock, int *r_revoked, struct revoke_info *rinfo)
if ( x ) /* mask it down to the actual allowed usage */
key_usage &= x;
}
pk->pubkey_usage = key_usage;
/* Whatever happens, it's a primary key, so it can certify. */
pk->pubkey_usage = key_usage|PUBKEY_USAGE_CERT;
if ( !key_expire_seen ) {
/* find the latest valid user ID with a key expiration set