core: New context flag "ignore-mdc-error".
authorWerner Koch <wk@gnupg.org>
Thu, 31 May 2018 23:29:20 +0000 (01:29 +0200)
committerWerner Koch <wk@gnupg.org>
Thu, 31 May 2018 23:29:34 +0000 (01:29 +0200)
commit662604c5bcb4e03d3c9ecc670d4f320a2418ebb3
tree4495b29c8d7ab2c323f58d8fb772411789d7c565
parentdd19cabe81b7bf4177ea2ca741f6eb6cd1cab25e
core: New context flag "ignore-mdc-error".

* src/context.h (gpgme_context): Add field ignore_mdc_error.
* src/gpgme.c (gpgme_set_ctx_flag, gpgme_get_ctx_flag): Set/get it.
* src/engine-gpg.c (engine_gpg): Add flags.ignore_mdc_error.
(gpg_set_engine_flags): Set it.
(build_argv): Pass option to gpg.
* src/decrypt.c (_gpgme_decrypt_status_handler): Take care of flag.
(gpgme_op_decrypt_result): Clear flag.
(gpgme_op_decrypt): Clear flag.
* src/decrypt-verify.c (gpgme_op_decrypt_verify): Clear flag
(gpgme_op_decrypt_ext): Clear flag.

* tests/run-decrypt.c (show_usage): Add option --ignore-mdc-error.

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