diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2020-05-07 13:28:12 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2020-05-07 13:38:58 +0200 |
commit | bfb124b2e7bc3145d7aae4a26cf7cd75bbac8cc3 (patch) | |
tree | 5b7f0b9a68ac9503e72810d69a5dc9fe4f29e27d /sqv/src | |
parent | be79f087fd2a0e3634ca753d9bdc554d32be5ee4 (diff) |
openpgp: Use a builder to construct DetachedVerifier.
- See #498.
Diffstat (limited to 'sqv/src')
-rw-r--r-- | sqv/src/sqv.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sqv/src/sqv.rs b/sqv/src/sqv.rs index 32d39e8a..8e9509e7 100644 --- a/sqv/src/sqv.rs +++ b/sqv/src/sqv.rs @@ -18,7 +18,7 @@ use crate::openpgp::{ parse::Parse, }; use crate::openpgp::parse::stream::{ - DetachedVerifier, + DetachedVerifierBuilder, MessageLayer, MessageStructure, VerificationHelper, @@ -281,7 +281,8 @@ fn main() -> Result<()> { let h = VHelper::new(good_threshold, not_before, not_after, keyrings); - let mut v = DetachedVerifier::from_file(p, sig_file, h, None)?; + let mut v = + DetachedVerifierBuilder::from_file(sig_file)?.with_policy(p, None, h)?; v.verify_file(file)?; let h = v.into_helper(); |