From 027ce4ba37be1d052bca2f6109fe810ef57f4038 Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Thu, 1 Jun 2017 15:14:19 +0200 Subject: [PATCH] gpg: Improve compliance with CO_DE_VS. * g10/gpg.c (set_compliance_option): The specification, section 4.1.1, forbids the use of encryption without integrity protection. GnuPG-bug-id: 3191 Signed-off-by: Justus Winter --- g10/gpg.c | 1 + 1 file changed, 1 insertion(+) diff --git a/g10/gpg.c b/g10/gpg.c index 80e51974a..cddaf7716 100644 --- a/g10/gpg.c +++ b/g10/gpg.c @@ -2166,6 +2166,7 @@ set_compliance_option (enum cmd_and_opt_values option) case oDE_VS: set_compliance_option (oOpenPGP); opt.compliance = CO_DE_VS; + opt.force_mdc = 1; /* Fixme: Change other options. */ break;