Home GnuPG
Diffusion GnuPG 2649fdfff5d9

g10: Move more flags into the flag bitfield.
2649fdfff5d9Unpublished

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

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 <justus@g10code.com>

Details

Provenance
justusAuthored on Mar 8 2017, 11:01 AM
Parents
rG8f028642239f: dirmngr: Do not put a keyserver into a new dirmngr.conf
Branches
Unknown
Tags
Unknown

Event Timeline

Justus Winter <justus@g10code.com> committed rG2649fdfff5d9: g10: Move more flags into the flag bitfield. (authored by Justus Winter <justus@g10code.com>).Mar 8 2017, 1:31 PM