summaryrefslogtreecommitdiffstats
path: root/g10/mainproc.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2018-05-15 12:19:40 +0200
committerWerner Koch <wk@gnupg.org>2018-05-15 12:20:04 +0200
commit96350c5d5afcbc7f66c535e38b9fcc7355622855 (patch)
tree70cc674e2b0238c9636eaac18cf9fff71cf0b24d /g10/mainproc.c
parentpo: Fix Swedish and Turkish translations. (diff)
downloadgnupg2-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/mainproc.c')
-rw-r--r--g10/mainproc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/mainproc.c b/g10/mainproc.c
index 69de865e7..ea3721a4f 100644
--- a/g10/mainproc.c
+++ b/g10/mainproc.c
@@ -767,7 +767,7 @@ proc_encrypted (CTX c, PACKET *pkt)
write_status (STATUS_GOODMDC);
else if (pkt->pkt.encrypted->mdc_method && !result)
write_status (STATUS_GOODMDC);
- else if (!opt.no_mdc_warn)
+ else
log_info (_("WARNING: message was not integrity protected\n"));
}
else if (gpg_err_code (result) == GPG_ERR_BAD_SIGNATURE