aboutsummaryrefslogtreecommitdiffstats
path: root/g10/encode.c
diff options
context:
space:
mode:
Diffstat (limited to 'g10/encode.c')
-rw-r--r--g10/encode.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/g10/encode.c b/g10/encode.c
index 9fc00183f..7794bdb7c 100644
--- a/g10/encode.c
+++ b/g10/encode.c
@@ -122,6 +122,10 @@ use_mdc (PK_LIST pk_list,int algo)
CIPHER_ALGO_TWOFISH
};
int i;
+
+ /* RFC-1991 and 2440 don't have MDC */
+ if(RFC1991 || RFC2440)
+ return 0;
/* --force-mdc overrides --disable-mdc */
if (opt.force_mdc)