summaryrefslogtreecommitdiffstats
path: root/sq
diff options
context:
space:
mode:
authorWiktor Kwapisiewicz <wiktor@metacode.biz>2020-11-10 12:10:00 +0100
committerWiktor Kwapisiewicz <wiktor@metacode.biz>2020-11-10 13:56:33 +0100
commit981b2bc9d78a122a1dd10aa2d0d2260d04e7776d (patch)
treeb954de0a64272406afde8f8b18e88fde39004add /sq
parent1dfa3f2c03895c72e447164703b140262d5b630a (diff)
openpgp: Use Padme as default padding policy.
Diffstat (limited to 'sq')
-rw-r--r--sq/src/commands/mod.rs7
1 files changed, 2 insertions, 5 deletions
diff --git a/sq/src/commands/mod.rs b/sq/src/commands/mod.rs
index 8b542c66..f7f47787 100644
--- a/sq/src/commands/mod.rs
+++ b/sq/src/commands/mod.rs
@@ -23,10 +23,7 @@ use crate::openpgp::parse::stream::*;
use crate::openpgp::serialize::stream::{
Message, Signer, LiteralWriter, Encryptor, Recipient,
Compressor,
- padding::{
- Padder,
- padme,
- },
+ padding::Padder,
};
use crate::openpgp::policy::Policy;
use sequoia_store as store;
@@ -130,7 +127,7 @@ pub fn encrypt<'a>(policy: &'a dyn Policy,
match compression {
"none" => (),
- "pad" => sink = Padder::new(sink, padme).build()?,
+ "pad" => sink = Padder::new(sink).build()?,
"zip" => sink =
Compressor::new(sink).algo(CompressionAlgorithm::Zip).build()?,
"zlib" => sink =