From 5b6eb1611bccd8c81a05ba9d7f0782a4d18ce2e9 Mon Sep 17 00:00:00 2001 From: "Neal H. Walfield" Date: Sun, 1 Mar 2020 15:45:58 +0100 Subject: openpgp: Avoid unnecessary liveness check. - A binding signature is only returned if it is alive at time `t`. Don't check again. --- openpgp/src/cert/amalgamation.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/openpgp/src/cert/amalgamation.rs b/openpgp/src/cert/amalgamation.rs index 59728192..da9ff7d9 100644 --- a/openpgp/src/cert/amalgamation.rs +++ b/openpgp/src/cert/amalgamation.rs @@ -524,10 +524,6 @@ impl<'a, C> ValidComponentAmalgamation<'a, C> // No binding signature at time `t` => not alive. let sig = c.binding_signature(policy, t)?; - if !sig.signature_alive(t, std::time::Duration::new(0, 0)).is_ok() { - return None; - } - let revoked = c._revoked(policy, t, false, Some(sig)); let primary = sig.primary_userid().unwrap_or(false); let signature_creation_time = sig.signature_creation_time()?; -- cgit v1.2.3