diff options
author | Justus Winter <[email protected]> | 2017-03-08 10:01:22 +0000 |
---|---|---|
committer | Justus Winter <[email protected]> | 2017-03-08 12:31:10 +0000 |
commit | 2649fdfff5d9e227025956e015b67502fd4962c4 (patch) | |
tree | bb438851a7a66668a8a38ddba389c3f584da594b /g10/keyserver.c | |
parent | dirmngr: Do not put a keyserver into a new dirmngr.conf (diff) | |
download | gnupg-2649fdfff5d9e227025956e015b67502fd4962c4.tar.gz gnupg-2649fdfff5d9e227025956e015b67502fd4962c4.zip |
g10: Move more flags into the flag bitfield.
* g10/packet.h (PKT_user_id): Move 'is_primary', 'is_revoked', and
'is_expired' into the flags bitfield, and drop the prefix.
* g10/call-dirmngr.c: Adapt accordingly.
* g10/export.c: Likewise.
* g10/getkey.c: Likewise.
* g10/import.c: Likewise.
* g10/kbnode.c: Likewise.
* g10/keyedit.c: Likewise.
* g10/keylist.c: Likewise.
* g10/keyserver.c: Likewise.
* g10/mainproc.c: Likewise.
* g10/pkclist.c: Likewise.
* g10/pubkey-enc.c: Likewise.
* g10/tofu.c: Likewise.
* g10/trust.c: Likewise.
* g10/trustdb.c: Likewise.
--
This patch has been created by applying the following semantic patch:
@@
expression E;
@@
-E->is_expired
+E->flags.expired
@@
expression E;
@@
-E->is_primary
+E->flags.primary
@@
expression E;
@@
-E->is_revoked
+E->flags.revoked
Signed-off-by: Justus Winter <[email protected]>
Diffstat (limited to 'g10/keyserver.c')
-rw-r--r-- | g10/keyserver.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/keyserver.c b/g10/keyserver.c index 0794527fd..1fe3ea853 100644 --- a/g10/keyserver.c +++ b/g10/keyserver.c @@ -1323,7 +1323,7 @@ keyidlist(strlist_t users,KEYDB_SEARCH_DESC **klist,int *count,int fakev3) for(node=node->next;node;node=node->next) { if(node->pkt->pkttype==PKT_USER_ID - && node->pkt->pkt.user_id->is_primary) + && node->pkt->pkt.user_id->flags.primary) uid=node->pkt->pkt.user_id; else if(node->pkt->pkttype==PKT_SIGNATURE && node->pkt->pkt.signature-> |