aboutsummaryrefslogtreecommitdiffstats
path: root/tests/run-keylist.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2016-09-07 07:26:11 +0000
committerWerner Koch <[email protected]>2016-09-07 07:26:11 +0000
commit120b14783c0312d782dc08ce4949a6209d5ccc7b (patch)
tree6cbd39d10a102aed9ce9b46e0e1d34c05909489e /tests/run-keylist.c
parenttests: Set passphrase cb in t-encrypt-mixed (diff)
downloadgpgme-120b14783c0312d782dc08ce4949a6209d5ccc7b.tar.gz
gpgme-120b14783c0312d782dc08ce4949a6209d5ccc7b.zip
core,cpp: Extend the TOFU information.
* src/gpgme.h.in (struct _gpeme_tofu_info): Rename FIRSTSEEN to SIGNFIRST and LASTSEEN to SIGNLAST. Add ENCRFIST and ENCRLAST. * src/keylist.c (parse_tfs_record): Parse to ENCRFIRST and ENCRLAST. * src/verify.c (parse_tofu_stats): Ditto. * tests/run-keylist.c (main): Adjust and print encrypt stats. * tests/run-verify.c (print_result): Ditto. * lang/cpp/src/tofuinfo.h (TofuInfo): Rename firstSeen to signFirst and lastSeen to signLast. Add encrCount, encrFirst and encrLast. * lang/cpp/src/tofuinfo.cpp (encrCount, encrFirst, encrLast): New. -- The latest GnuPG commits have the needed changes but we also allow the use of currently released GnuPG version. Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'tests/run-keylist.c')
-rw-r--r--tests/run-keylist.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/run-keylist.c b/tests/run-keylist.c
index 00f874da..647a9ed2 100644
--- a/tests/run-keylist.c
+++ b/tests/run-keylist.c
@@ -291,9 +291,11 @@ main (int argc, char **argv)
ti->policy == GPGME_TOFU_POLICY_BAD? "bad" :
ti->policy == GPGME_TOFU_POLICY_ASK? "ask" : "?");
printf (" nsigs: %hu\n", ti->signcount);
+ printf (" first: %s\n", isotimestr (ti->signfirst));
+ printf (" last: %s\n", isotimestr (ti->signlast));
printf (" nencr: %hu\n", ti->encrcount);
- printf (" first: %s\n", isotimestr (ti->firstseen));
- printf (" last: %s\n", isotimestr (ti->lastseen));
+ printf (" first: %s\n", isotimestr (ti->encrfirst));
+ printf (" last: %s\n", isotimestr (ti->encrlast));
}
}