gpgme_tool: Support GPG's new pinentry-mode.
authorWerner Koch <wk@gnupg.org>
Thu, 7 Feb 2013 20:03:02 +0000 (21:03 +0100)
committerWerner Koch <wk@gnupg.org>
Thu, 7 Feb 2013 20:03:44 +0000 (21:03 +0100)
commit02a2cf0ccb4d01700adf6d18316d7705d519a048
tree1ca161d8d11ac664f7a776343125660578269a49
parent61a0d92b679f248505f1bf16386bc41a5bf2ba1d
gpgme_tool: Support GPG's new pinentry-mode.

* src/gpgme-tool.c (log_error): Do not always print the error source.
(gt_set_pinentry_mode): New.
(server_passphrase_cb): New.
(cmd_pinentry_mode): New.
(register_commands): Add cmd_pinentry_mode.
(options): Add option --gpg-binary.
(struct args): Add field gpg-binary.
(parse_options, main): Implement that option.
src/gpgme-tool.c
src/gpgme.def
src/libgpgme.vers