aboutsummaryrefslogtreecommitdiffstats
path: root/g10/parse-packet.c
diff options
context:
space:
mode:
authorDavid Shaw <[email protected]>2002-10-03 19:20:37 +0000
committerDavid Shaw <[email protected]>2002-10-03 19:20:37 +0000
commitfcefffcb005d4df0fd075fb0d0f210a465a8156c (patch)
tree5d2dba10da87bd11933bfdc7d77b471fefb813ef /g10/parse-packet.c
parent* import.c (import_secret_one): Check for an illegal (>110) protection (diff)
downloadgnupg-fcefffcb005d4df0fd075fb0d0f210a465a8156c.tar.gz
gnupg-fcefffcb005d4df0fd075fb0d0f210a465a8156c.zip
* keylist.c (print_capabilities): Secret-parts-missing keys should show
that fact in the capabilities, and only primary signing keys can certify other keys. * packet.h, parse_packet.c (parse_key): Add is_primary flag for public keys (it already exists for secret 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 c50c8a2e8..bce3ce308 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 */