summaryrefslogtreecommitdiffstats
path: root/tool/src/commands/decrypt.rs
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2019-05-09 15:19:24 +0200
committerJustus Winter <justus@sequoia-pgp.org>2019-05-09 15:19:24 +0200
commit75d4e6dda12e8b7ae8573227e61e718ede3f2cfc (patch)
treec6b9e3f177d8c65d134acfd889c236203b2ac13f /tool/src/commands/decrypt.rs
parent8e0f817f312f469871a5fbed6bb961f6117ba742 (diff)
openpgp: Communicate message structure from the decryptor.
- Fixes #100.
Diffstat (limited to 'tool/src/commands/decrypt.rs')
-rw-r--r--tool/src/commands/decrypt.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/tool/src/commands/decrypt.rs b/tool/src/commands/decrypt.rs
index 4d000cc3..c762c454 100644
--- a/tool/src/commands/decrypt.rs
+++ b/tool/src/commands/decrypt.rs
@@ -13,7 +13,7 @@ use openpgp::{Fingerprint, TPK, KeyID, Result};
use openpgp::packet::{Key, key::SecretKey, Signature, PKESK, SKESK};
use openpgp::parse::PacketParser;
use openpgp::parse::stream::{
- VerificationHelper, VerificationResult, DecryptionHelper, Decryptor,
+ VerificationHelper, DecryptionHelper, Decryptor, MessageStructure,
};
extern crate sequoia_store as store;
@@ -93,8 +93,8 @@ impl<'a> VerificationHelper for Helper<'a> {
fn get_public_keys(&mut self, ids: &[KeyID]) -> Result<Vec<TPK>> {
self.vhelper.get_public_keys(ids)
}
- fn check(&mut self, sigs: Vec<Vec<VerificationResult>>) -> Result<()> {
- self.vhelper.check(sigs)
+ fn check(&mut self, structure: &MessageStructure) -> Result<()> {
+ self.vhelper.check(structure)
}
}