aboutsummaryrefslogtreecommitdiffstats
path: root/g10/cipher.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2018-05-15 10:19:40 +0000
committerWerner Koch <[email protected]>2018-05-31 09:47:07 +0000
commit26c0d3a3fc903c1a0de644ebcc99d3e665a80941 (patch)
tree6d1c24d9088e0a9e9b1ab7df62b99ab6866ab7ef /g10/cipher.c
parentpo: Update Spanish translation. (diff)
downloadgnupg-26c0d3a3fc903c1a0de644ebcc99d3e665a80941.tar.gz
gnupg-26c0d3a3fc903c1a0de644ebcc99d3e665a80941.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 <[email protected]> (cherry picked from commit 96350c5d5afcbc7f66c535e38b9fcc7355622855)
Diffstat (limited to '')
-rw-r--r--g10/cipher.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/cipher.c b/g10/cipher.c
index b950d0c3f..2dc77bff6 100644
--- a/g10/cipher.c
+++ b/g10/cipher.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");