aboutsummaryrefslogtreecommitdiffstats
path: root/g10/encode.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--g10/encode.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/g10/encode.c b/g10/encode.c
index 66ce57c35..8a64c7633 100644
--- a/g10/encode.c
+++ b/g10/encode.c
@@ -107,6 +107,10 @@ encode_sesskey( DEK *dek, DEK **ret_dek, byte *enckey )
static int
use_mdc(PK_LIST pk_list,int algo)
{
+ /* RFC-1991 and 2440 don't have MDC */
+ if(RFC1991 || RFC2440)
+ return 0;
+
/* --force-mdc overrides --disable-mdc */
if(opt.force_mdc)
return 1;