mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
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 <wk@gnupg.org>
This commit is contained in:
parent
877a321d01
commit
fa1155e89e
10 changed files with 83 additions and 26 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue