diff options
author | Werner Koch <[email protected]> | 2017-03-28 09:40:44 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2017-03-28 09:41:30 +0000 |
commit | 813ae5fa2d712aa9679b791c67c9c1c43d36ffe4 (patch) | |
tree | 21356c212fafd181ec0a270dc012100e80a07541 /tests | |
parent | qt: Disable testEncryptDecryptNowrap (diff) | |
download | gpgme-813ae5fa2d712aa9679b791c67c9c1c43d36ffe4.tar.gz gpgme-813ae5fa2d712aa9679b791c67c9c1c43d36ffe4.zip |
core: Prepare for new key listing data send by gpg.
* src/gpgme.h.in (gpgme_user_id_t): New fields 'origin' and
'last_update'.
(gpgme_key_t): New fields 'origin' and 'last_update'.
* src/conversion.c (_gpgme_parse_timestamp_ul): New.
* src/keylist.c (keylist_colon_handler): Parse fields 19 and 20.
* tests/run-keylist.c (main): Print new fields.
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/run-keylist.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/run-keylist.c b/tests/run-keylist.c index aab4bb64..dd310e5b 100644 --- a/tests/run-keylist.c +++ b/tests/run-keylist.c @@ -251,6 +251,7 @@ main (int argc, char **argv) key->is_qualified? " qualified":"", key->subkeys && key->subkeys->is_de_vs? " de-vs":"", key->subkeys && key->subkeys->is_cardkey? " cardkey":""); + printf ("upd : %lu (%u)\n", key->last_update, key->origin); subkey = key->subkeys; if (subkey) @@ -289,6 +290,7 @@ main (int argc, char **argv) printf (" name: %s\n", uid->name); if (uid->comment) printf (" cmmnt: %s\n", uid->comment); + printf (" upd: %lu (%u)\n", uid->last_update, uid->origin); printf (" valid: %s\n", uid->validity == GPGME_VALIDITY_UNKNOWN? "unknown": uid->validity == GPGME_VALIDITY_UNDEFINED? "undefined": |