aboutsummaryrefslogtreecommitdiffstats
path: root/g10/parse-packet.c
diff options
context:
space:
mode:
authorDavid Shaw <[email protected]>2002-10-03 17:40:10 +0000
committerDavid Shaw <[email protected]>2002-10-03 17:40:10 +0000
commit3f2d94179fee455c14493653bb7c64cf1f74f019 (patch)
treec48949758e917359f0803465609c8d9c5ae8822b /g10/parse-packet.c
parent* import.c (import_secret_one): Check for an illegal (>110) protection (diff)
downloadgnupg-3f2d94179fee455c14493653bb7c64cf1f74f019.tar.gz
gnupg-3f2d94179fee455c14493653bb7c64cf1f74f019.zip
* packet.h, parse_packet (parse_key): Add is_primary flag for public keys
(it already exists for secret keys). * keylist.c (print_capabilities): Only primary signing keys can certify other keys.
Diffstat (limited to 'g10/parse-packet.c')
-rw-r--r--g10/parse-packet.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/g10/parse-packet.c b/g10/parse-packet.c
index 09647389a..b802be315 100644
--- a/g10/parse-packet.c
+++ b/g10/parse-packet.c
@@ -1523,6 +1523,7 @@ parse_key( IOBUF inp, int pkttype, unsigned long pktlen,
pk->max_expiredate = max_expiredate;
pk->hdrbytes = hdrlen;
pk->version = version;
+ pk->is_primary = pkttype == PKT_PUBLIC_KEY;
pk->pubkey_algo = algorithm;
pk->req_usage = 0;
pk->pubkey_usage = 0; /* not yet used */