diff options
author | Neal H. Walfield <neal@pep.foundation> | 2020-03-01 15:45:58 +0100 |
---|---|---|
committer | Neal H. Walfield <neal@pep.foundation> | 2020-03-01 15:45:58 +0100 |
commit | 5b6eb1611bccd8c81a05ba9d7f0782a4d18ce2e9 (patch) | |
tree | e98037ad310abbd7d7df9c2698d68cb1da3e5298 | |
parent | a0848510549173e181d44ee827ed2a859c95fbbf (diff) |
openpgp: Avoid unnecessary liveness check.
- A binding signature is only returned if it is alive at time `t`.
Don't check again.
-rw-r--r-- | openpgp/src/cert/amalgamation.rs | 4 |
1 files changed, 0 insertions, 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()?; |