summaryrefslogtreecommitdiffstats
path: root/g10/g10.c
diff options
context:
space:
mode:
authorDavid Shaw <dshaw@jabberwocky.com>2002-08-13 21:00:23 +0200
committerDavid Shaw <dshaw@jabberwocky.com>2002-08-13 21:00:23 +0200
commit1111da19a858ba517898dcd34680ea40ee3b3ab9 (patch)
treed4b1153ef1332a05089d91e1ef3b3904ac150f08 /g10/g10.c
parent* cipher.h: Add AES aliases for RIJNDAEL algo numbers. (diff)
downloadgnupg2-1111da19a858ba517898dcd34680ea40ee3b3ab9.tar.xz
gnupg2-1111da19a858ba517898dcd34680ea40ee3b3ab9.zip
* encode.c (encode_simple): Fix problem with using compression algo 2 and
symmetric compressed files. * encode.c (encode_simple, encode_crypt): If we are not using a MDC, compress even if a file is already compressed. This is to help against the chosen ciphertext attack. * pkclist.c (select_algo_from_prefs): Fix requested algorithm bug so the request succeeds even if the requested algorithm is not the first found. * cipher.c (write_header), encode.c (use_mdc, encode_simple, encode_crypt, encrypt_filter), g10.c (main): Be more eager to use a MDC. We use a MDC if the keys directly support it, if the keys list AES (any) or TWOFISH anywhere in the prefs, or if the cipher chosen does not have a 64 bit blocksize.
Diffstat (limited to 'g10/g10.c')
-rw-r--r--g10/g10.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/g10/g10.c b/g10/g10.c
index 545c5b8a2..70c609c21 100644
--- a/g10/g10.c
+++ b/g10/g10.c
@@ -1400,12 +1400,15 @@ main( int argc, char **argv )
opt.rfc1991 = 1;
opt.rfc2440 = 0;
opt.force_v4_certs = 0;
- opt.sk_comments = 0;
+ opt.disable_mdc = 1;
opt.escape_from = 1;
break;
case oOpenPGP:
+ /* TODO: When 2440bis becomes a RFC, these may need
+ changing. */
opt.rfc1991 = 0;
opt.rfc2440 = 1;
+ opt.disable_mdc = 1;
opt.allow_non_selfsigned_uid = 1;
opt.allow_freeform_uid = 1;
opt.pgp2_workarounds = 0;