aboutsummaryrefslogtreecommitdiffstats
path: root/g10/getkey.c
diff options
context:
space:
mode:
Diffstat (limited to 'g10/getkey.c')
-rw-r--r--g10/getkey.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/g10/getkey.c b/g10/getkey.c
index 48c881b82..07efdc110 100644
--- a/g10/getkey.c
+++ b/g10/getkey.c
@@ -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