diff options
author | Werner Koch <wk@gnupg.org> | 2018-05-15 12:19:40 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2018-05-15 12:20:04 +0200 |
commit | 96350c5d5afcbc7f66c535e38b9fcc7355622855 (patch) | |
tree | 70cc674e2b0238c9636eaac18cf9fff71cf0b24d /g10/cipher-cfb.c | |
parent | po: Fix Swedish and Turkish translations. (diff) | |
download | gnupg2-96350c5d5afcbc7f66c535e38b9fcc7355622855.tar.xz gnupg2-96350c5d5afcbc7f66c535e38b9fcc7355622855.zip |
gpg: Turn --no-mdc-warn into a NOP.
* g10/gpg.c (oNoMDCWarn): Remove.
(opts): Make --no-mdc-warn a NOP.
(main): Don't set var.
* g10/options.h (struct opt): Remove 'no_mdc_var'.
* g10/cipher-cfb.c (write_header): Assume opt.no_mdc_warn is false.
* g10/mainproc.c (proc_encrypted): Ditto.
--
Users should not be allowed to suppress the warning that they are
shooting into their foot.
Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'g10/cipher-cfb.c')
-rw-r--r-- | g10/cipher-cfb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/cipher-cfb.c b/g10/cipher-cfb.c index 79b21bd8a..48927c558 100644 --- a/g10/cipher-cfb.c +++ b/g10/cipher-cfb.c @@ -64,7 +64,7 @@ write_header (cipher_filter_context_t *cfx, iobuf_t a) if (DBG_HASHING) gcry_md_debug (cfx->mdc_hash, "creatmdc"); } - else if (!opt.no_mdc_warn) + else { log_info ("WARNING: " "encrypting without integrity protection is dangerous\n"); |