mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
* 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.
This commit is contained in:
parent
27d526298b
commit
3f2d94179f
4 changed files with 23 additions and 3 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue