diff options
author | David Shaw <[email protected]> | 2002-10-03 19:20:37 +0000 |
---|---|---|
committer | David Shaw <[email protected]> | 2002-10-03 19:20:37 +0000 |
commit | fcefffcb005d4df0fd075fb0d0f210a465a8156c (patch) | |
tree | 5d2dba10da87bd11933bfdc7d77b471fefb813ef /g10/parse-packet.c | |
parent | * import.c (import_secret_one): Check for an illegal (>110) protection (diff) | |
download | gnupg-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.c | 1 |
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 */ |