From fcefffcb005d4df0fd075fb0d0f210a465a8156c Mon Sep 17 00:00:00 2001 From: David Shaw Date: Thu, 3 Oct 2002 19:20:37 +0000 Subject: * 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). --- g10/parse-packet.c | 1 + 1 file changed, 1 insertion(+) (limited to 'g10/parse-packet.c') 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 */ -- cgit v1.2.3