gpg: Turn --no-mdc-warn into a NOP.
authorWerner Koch <wk@gnupg.org>
Tue, 15 May 2018 10:19:40 +0000 (12:19 +0200)
committerWerner Koch <wk@gnupg.org>
Thu, 31 May 2018 09:47:07 +0000 (11:47 +0200)
commit26c0d3a3fc903c1a0de644ebcc99d3e665a80941
tree6d1c24d9088e0a9e9b1ab7df62b99ab6866ab7ef
parent64597e1bd9ff54b8cd38e311628ad6f2fb1d0488
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>
(cherry picked from commit 96350c5d5afcbc7f66c535e38b9fcc7355622855)
doc/gpg.texi
g10/cipher.c
g10/gpg.c
g10/mainproc.c
g10/options.h