diff options
author | Werner Koch <[email protected]> | 2017-07-13 15:28:32 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2017-07-13 16:29:01 +0000 |
commit | fa1155e89ebb4b16ee95549b8ab72672df3a0c54 (patch) | |
tree | 515f2f5684c032772406b27e4ea94a91c87e766a /g10/packet.h | |
parent | doc: Document gnupg version requirement for gpg-preset-passphrase. (diff) | |
download | gnupg-fa1155e89ebb4b16ee95549b8ab72672df3a0c54.tar.gz gnupg-fa1155e89ebb4b16ee95549b8ab72672df3a0c54.zip |
gpg: New option --key-origin.
* g10/keydb.h (KEYORG_): Rename to KEYORG_.
* g10/packet.h (PKT_user_id): Rename field keysrc to keyorg. Adjust
users.
(PKT_public_key): Ditto.
(PKT_ring_trust): Ditto.
* g10/options.h (struct opt): Add field key_origin.
* g10/getkey.c (parse_key_origin): New.
* g10/gpg.c (oKeyOrigin): New.
(opts): Add "keys-origin".
(main): Set option.
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'g10/packet.h')
-rw-r--r-- | g10/packet.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/g10/packet.h b/g10/packet.h index cf2121c6c..56ac50376 100644 --- a/g10/packet.h +++ b/g10/packet.h @@ -285,7 +285,7 @@ typedef struct u32 created; /* according to the self-signature */ u32 keyupdate; /* From the ring trust packet. */ char *updateurl; /* NULL or the URL of the last update origin. */ - byte keysrc; /* From the ring trust packet. */ + byte keyorg; /* From the ring trust packet. */ byte selfsigversion; struct { @@ -407,7 +407,7 @@ typedef struct u32 trust_timestamp; byte trust_depth; byte trust_value; - byte keysrc; /* From the ring trust packet. */ + byte keyorg; /* From the ring trust packet. */ u32 keyupdate; /* From the ring trust packet. */ char *updateurl; /* NULL or the URL of the last update origin. */ const byte *trust_regexp; @@ -498,7 +498,7 @@ typedef struct { unsigned int trustval; unsigned int sigcache; unsigned char subtype; /* The subtype of this ring trust packet. */ - unsigned char keysrc; /* The origin of the key (KEYSRC_*). */ + unsigned char keyorg; /* The origin of the key (KEYSRC_*). */ u32 keyupdate; /* The wall time the key was last updated. */ char *url; /* NULL or the URL of the source. */ } PKT_ring_trust; |