core: New function gpgme_op_tofu_policy
authorWerner Koch <wk@gnupg.org>
Wed, 14 Sep 2016 18:21:19 +0000 (20:21 +0200)
committerWerner Koch <wk@gnupg.org>
Wed, 14 Sep 2016 18:21:19 +0000 (20:21 +0200)
commit7c37719d79345a665ec2f4570e3f257033b58c62
tree10cccebe681f29cbf6b83e27f2a7f805b6b6abe8
parentd79dcb78d867aaf55b85aea117c4ae6035a1531a
core: New function gpgme_op_tofu_policy

* src/gpgme.h.in (gpgme_op_tofu_policy_start): New function.
(gpgme_op_tofu_policy): New function.
* src/libgpgme.vers, src/gpgme.def: Add new functions.
* src/tofupolicy.c: New.
* src/Makefile.am (main_sources): Add that file.
* src/context.h (ctx_op_data_id_t): Add OPDATA_TOFU_POLICY.
* src/engine.c (_gpgme_engine_op_tofu_policy): New.
* src/engine-backend.h (engine_ops): Add funcptr 'tofu_policy'.
Adjust all engine initializations.
* src/engine-gpg.c (gpg_tofu_policy): New.
(_gpgme_engine_ops_gpg): Register this function.

* tests/run-tofu.c: New.
* tests/Makefile.am (noinst_PROGRAMS): Add it.

Signed-off-by: Werner Koch <wk@gnupg.org>
19 files changed:
NEWS
src/Makefile.am
src/context.h
src/engine-assuan.c
src/engine-backend.h
src/engine-g13.c
src/engine-gpg.c
src/engine-gpgconf.c
src/engine-gpgsm.c
src/engine-spawn.c
src/engine-uiserver.c
src/engine.c
src/engine.h
src/gpgme.def
src/gpgme.h.in
src/libgpgme.vers
src/tofupolicy.c [new file with mode: 0644]
tests/Makefile.am
tests/run-tofu.c [new file with mode: 0644]