diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2019-11-27 14:07:58 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2019-11-27 14:09:26 +0100 |
commit | 5eb6ad9f545291f05f5f2455684da68594c8a4dd (patch) | |
tree | 4e7aaae032f0aef7c8606a5ddc3c0ff51095fae3 /openpgp/src/serialize/stream.rs | |
parent | 6fa1c0c42d21c7876c594f9c658742f6639f86b9 (diff) |
openpgp: Fix issuer handling in the streaming verifier.
- To that end, make VerificationHelper::get_public_keys take
KeyHandles for all the issuers.
Diffstat (limited to 'openpgp/src/serialize/stream.rs')
-rw-r--r-- | openpgp/src/serialize/stream.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/openpgp/src/serialize/stream.rs b/openpgp/src/serialize/stream.rs index c533124b..c0c8424d 100644 --- a/openpgp/src/serialize/stream.rs +++ b/openpgp/src/serialize/stream.rs @@ -247,7 +247,7 @@ impl<'a> Signer<'a> { /// // Now check the signature. /// struct Helper<'a>(&'a openpgp::TPK); /// impl<'a> VerificationHelper for Helper<'a> { - /// fn get_public_keys(&mut self, _: &[openpgp::KeyID]) + /// fn get_public_keys(&mut self, _: &[openpgp::KeyHandle]) /// -> openpgp::Result<Vec<openpgp::TPK>> { /// Ok(vec![self.0.clone()]) /// } @@ -351,7 +351,7 @@ impl<'a> Signer<'a> { /// // Now check the signature. /// struct Helper<'a>(&'a openpgp::TPK); /// impl<'a> VerificationHelper for Helper<'a> { - /// fn get_public_keys(&mut self, _: &[openpgp::KeyID]) + /// fn get_public_keys(&mut self, _: &[openpgp::KeyHandle]) /// -> openpgp::Result<Vec<openpgp::TPK>> { /// Ok(vec![self.0.clone()]) /// } @@ -1661,7 +1661,8 @@ mod test { tsk: &'a TPK, }; impl<'a> VerificationHelper for Helper<'a> { - fn get_public_keys(&mut self, _ids: &[KeyID]) -> Result<Vec<TPK>> { + fn get_public_keys(&mut self, _ids: &[crate::KeyHandle]) + -> Result<Vec<TPK>> { Ok(Vec::new()) } fn check(&mut self, _structure: &MessageStructure) -> Result<()> { |