diff options
author | Werner Koch <[email protected]> | 2018-05-31 23:29:20 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2018-05-31 23:29:34 +0000 |
commit | 662604c5bcb4e03d3c9ecc670d4f320a2418ebb3 (patch) | |
tree | 4495b29c8d7ab2c323f58d8fb772411789d7c565 /doc/gpgme.texi | |
parent | core: New decryption result flag 'legacy_cipher_nomdc'. (diff) | |
download | gpgme-662604c5bcb4e03d3c9ecc670d4f320a2418ebb3.tar.gz gpgme-662604c5bcb4e03d3c9ecc670d4f320a2418ebb3.zip |
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 <[email protected]>
Diffstat (limited to 'doc/gpgme.texi')
-rw-r--r-- | doc/gpgme.texi | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/doc/gpgme.texi b/doc/gpgme.texi index d8771167..e3445a0e 100644 --- a/doc/gpgme.texi +++ b/doc/gpgme.texi @@ -3078,7 +3078,7 @@ the time when you verified the signature. The string given in @var{value} is passed to the GnuPG engines to request restrictions based on the origin of the request. Valid values are documented in the GnuPG manual and the gpg man page under the -option ``--request-origin''. Requires at least GnuPG 2.2.6 to have an +option @option{--request-origin}. Requires at least GnuPG 2.2.6 to have an effect. @item "no-symkey-cache" @@ -3086,6 +3086,15 @@ For OpenPGP disable the passphrase cache used for symmetrical en- and decryption. This cache is based on the message specific salt value. Requires at least GnuPG 2.2.7 to have an effect. +@item "ignore-mdc-error" +This flag passes the option @option{--ignore-mdc-error} to gpg. This +can be used to force decryption of a message which failed due to a +missing integrity check. This flag must be used with great caution +and only if it is a known non-corrupted old message and the decryption +result of the former try had the decryption result flag +@code{legacy_cipher_nomdc} set. For failsafe reasons this flag is +reset after each operation. + @end table This function returns @code{0} on success. |