diff options
author | Werner Koch <[email protected]> | 2016-09-07 07:26:11 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2016-09-07 07:26:11 +0000 |
commit | 120b14783c0312d782dc08ce4949a6209d5ccc7b (patch) | |
tree | 6cbd39d10a102aed9ce9b46e0e1d34c05909489e /src/gpgme.h.in | |
parent | tests: Set passphrase cb in t-encrypt-mixed (diff) | |
download | gpgme-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 '')
-rw-r--r-- | src/gpgme.h.in | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/gpgme.h.in b/src/gpgme.h.in index 57f34469..00a4bed3 100644 --- a/src/gpgme.h.in +++ b/src/gpgme.h.in @@ -650,9 +650,11 @@ struct _gpgme_tofu_info unsigned short encrcount; /* Number of seconds since Epoch when the first and the most - * recently seen message were verified. 0 means unknown. */ - unsigned long firstseen; - unsigned long lastseen; + * recently seen message were verified/decrypted. 0 means unknown. */ + unsigned long signfirst; + unsigned long signlast; + unsigned long encrfirst; + unsigned long encrlast; /* If non-NULL a human readable string summarizing the TOFU data. */ char *description; |