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 /sop/src | |
parent | be79f087fd2a0e3634ca753d9bdc554d32be5ee4 (diff) |
openpgp: Use a builder to construct DetachedVerifier.
- See #498.
Diffstat (limited to 'sop/src')
-rw-r--r-- | sop/src/main.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sop/src/main.rs b/sop/src/main.rs index 54a27633..b9a4fe13 100644 --- a/sop/src/main.rs +++ b/sop/src/main.rs @@ -172,7 +172,8 @@ fn real_main() -> Result<()> { not_after.map(|d| d.into()), certs); let mut v = - DetachedVerifier::from_reader(p, signatures, helper, None)?; + DetachedVerifierBuilder::from_reader(signatures)? + .with_policy(p, None, helper)?; v.verify_reader(io::stdin())?; }, |