summaryrefslogtreecommitdiffstats
path: root/openpgp/src/cert.rs
diff options
context:
space:
mode:
Diffstat (limited to 'openpgp/src/cert.rs')
-rw-r--r--openpgp/src/cert.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/src/cert.rs b/openpgp/src/cert.rs
index 648be37a..5a840ab5 100644
--- a/openpgp/src/cert.rs
+++ b/openpgp/src/cert.rs
@@ -5324,7 +5324,7 @@ Pu1xwz57O4zo1VYf6TqHJzVC3OMvMUM2hhdecMUe5x6GorNaj6g=
// signatures. The standard policy reject SHA-1. So, use a
// custom policy.
let p = &P::new();
- let sha1 = p.hash_cutoffs(HashAlgorithm::SHA1).0.unwrap();
+ let sha1 = p.hash_cutoff(HashAlgorithm::SHA1).unwrap();
let p = &P::at(sha1 - std::time::Duration::from_secs(1));
let cert = Cert::from_bytes(