core: Add GPGME_KEYLIST_MODE_WITH_TOFU.
authorWerner Koch <wk@gnupg.org>
Thu, 25 Aug 2016 09:38:03 +0000 (11:38 +0200)
committerWerner Koch <wk@gnupg.org>
Thu, 25 Aug 2016 09:38:03 +0000 (11:38 +0200)
commit9ee103957e4136337b92d238283f8ef30fd4a7c5
tree28efd68346717ec611619c22bc9f3799f44d29bf
parent38798fee5b539d6153a8a7856152959412ee59b5
core: Add GPGME_KEYLIST_MODE_WITH_TOFU.

* src/gpgme.h.in (GPGME_KEYLIST_MODE_WITH_TOFU): New.
* src/engine-gpg.c (gpg_keylist_build_options): Use that.
* src/keylist.c: Include limits.h.
(parse_tfs_record): New.
(keylist_colon_handler): Support TFS record.
* tests/run-keylist.c: Include time.h.
(isotimestr): New.
(main): Add option --tofu.  Print TOFU info.
* tests/run-verify.c: Include time.h.
(isotimestr): New.
(print_result): Use isotimestr for TOFU dates.

Signed-off-by: Werner Koch <wk@gnupg.org>
NEWS
doc/gpgme.texi
src/engine-gpg.c
src/gpgme.h.in
src/keylist.c
tests/run-keylist.c
tests/run-verify.c