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>
Tue, 15 May 2018 10:20:04 +0000 (12:20 +0200)
commit96350c5d5afcbc7f66c535e38b9fcc7355622855
tree70cc674e2b0238c9636eaac18cf9fff71cf0b24d
parent61b1508281cda47b65c2bbd99cdef67fd6855c7c
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>
doc/gpg.texi
g10/cipher-cfb.c
g10/gpg.c
g10/mainproc.c
g10/options.h