Add public function gpgme_set_pinentry_mode.
authorWerner Koch <wk@gnupg.org>
Thu, 7 Feb 2013 19:59:16 +0000 (20:59 +0100)
committerWerner Koch <wk@gnupg.org>
Thu, 7 Feb 2013 19:59:16 +0000 (20:59 +0100)
commit61a0d92b679f248505f1bf16386bc41a5bf2ba1d
tree7f3e0358bb4f6004a395a55a2902b27940dcf79e
parent29eced50687dd8a39dafe704102ae09ea8e8533a
Add public function gpgme_set_pinentry_mode.

* src/gpgme.c (gpgme_set_pinentry_mode): New.
* src/gpgme.h.in (gpgme_pinentry_t): New.
(gpgme_set_pinentry_mode): New.
* src/context.h (struct gpgme_context): Add field pinentry_mode.
* src/engine-backend.h (struct engine_ops): Add field
set_pinentry_mode.
* src/engine-gpg.c (struct engine_gpg): Add field pinentry_mode.
(build_argv): Implement pinentry_mode.
(gpg_set_pinentry_mode): New.
(_gpgme_engine_ops_gpg): Register gpg_set_pinentry_mode.

--

Note that this new fucntion may only be used with gpg 2.1.
14 files changed:
NEWS
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-uiserver.c
src/engine.c
src/engine.h
src/gpgme.c
src/gpgme.h.in
src/op-support.c