From 5b0b546ce73cc3a2bfed085726c43635d5519924 Mon Sep 17 00:00:00 2001 From: "Neal H. Walfield" Date: Wed, 8 Jan 2020 10:10:58 +0100 Subject: openpgp: Include a reference time in KeyAmalgamation. - Including the reference time in the KeyAmalgamation structure rather than having the user supply it to the individual methods (like `KeyAmalgamation::alive`) helps ensure that the key is used consistent. For instance, this makes it harder to mistakenly query key's liveness at time t, but then use the current time to determine the key's capabilities. --- sqv/src/sqv.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sqv') diff --git a/sqv/src/sqv.rs b/sqv/src/sqv.rs index e1859132..fec3e1ff 100644 --- a/sqv/src/sqv.rs +++ b/sqv/src/sqv.rs @@ -235,7 +235,7 @@ fn real_main() -> Result<(), failure::Error> { // Find the right key. for ka in cert.keys().policy(None) { // Use the current binding signature. - let binding = match ka.binding_signature(None) { + let binding = match ka.binding_signature() { Some(b) => b, None => continue, }; -- cgit v1.2.3