mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
wks: Print the UID creation time with gpg-wks-client --check.
* tools/gpg-wks.h (uidinfo_list_s): Add field 'created'. * tools/wks-util.c (append_to_uidinfo_list): Add arf 'created'. (wks_list_key): Pass timestamp to append_to_uidinfo_list. * tools/gpg-wks-client.c (command_check): Print UID creation time. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
4e0696de89
commit
a0035986a8
3 changed files with 6 additions and 2 deletions
|
@ -94,7 +94,7 @@ wks_write_status (int no, const char *format, ...)
|
|||
/* Append UID to LIST and return the new item. On success LIST is
|
||||
* updated. On error ERRNO is set and NULL returned. */
|
||||
static uidinfo_list_t
|
||||
append_to_uidinfo_list (uidinfo_list_t *list, const char *uid)
|
||||
append_to_uidinfo_list (uidinfo_list_t *list, const char *uid, time_t created)
|
||||
{
|
||||
uidinfo_list_t r, sl;
|
||||
|
||||
|
@ -103,6 +103,7 @@ append_to_uidinfo_list (uidinfo_list_t *list, const char *uid)
|
|||
return NULL;
|
||||
|
||||
strcpy (sl->uid, uid);
|
||||
sl->created = created;
|
||||
sl->mbox = mailbox_from_userid (uid);
|
||||
sl->next = NULL;
|
||||
if (!*list)
|
||||
|
@ -273,7 +274,8 @@ wks_list_key (estream_t key, char **r_fpr, uidinfo_list_t *r_mboxes)
|
|||
else if (!strcmp (fields[0], "uid") && nfields > 9)
|
||||
{
|
||||
/* Fixme: Unescape fields[9] */
|
||||
if (!append_to_uidinfo_list (&mboxes, fields[9]))
|
||||
if (!append_to_uidinfo_list (&mboxes, fields[9],
|
||||
parse_timestamp (fields[5], NULL)))
|
||||
{
|
||||
err = gpg_error_from_syserror ();
|
||||
goto leave;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue