actually use the compression settings ;), and give them better default values

This commit is contained in:
Thialfihar
2010-05-19 14:38:06 +00:00
parent b6ac47e46c
commit f7eae9c7e2
2 changed files with 3 additions and 3 deletions

View File

@@ -1329,7 +1329,7 @@ public class Apg {
if (compression == Id.choice.compression.none) {
bcpgOut = new BCPGOutputStream(encryptOut);
} else {
compressGen = new PGPCompressedDataGenerator(CompressionAlgorithmTags.ZLIB);
compressGen = new PGPCompressedDataGenerator(compression);
bcpgOut = new BCPGOutputStream(compressGen.open(encryptOut));
}
if (signatureKeyId != 0) {