core,cpp: Extend the TOFU information.
authorWerner Koch <wk@gnupg.org>
Wed, 7 Sep 2016 07:26:11 +0000 (09:26 +0200)
committerWerner Koch <wk@gnupg.org>
Wed, 7 Sep 2016 07:26:11 +0000 (09:26 +0200)
commit120b14783c0312d782dc08ce4949a6209d5ccc7b
tree6cbd39d10a102aed9ce9b46e0e1d34c05909489e
parent151da95470f174dc770b2111890ad650a1697276
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 <wk@gnupg.org>
lang/cpp/src/tofuinfo.cpp
lang/cpp/src/tofuinfo.h
src/gpgme.h.in
src/keylist.c
src/verify.c
tests/run-keylist.c
tests/run-verify.c