summaryrefslogtreecommitdiffstats
path: root/sqv
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2019-12-13 20:03:49 +0100
committerJustus Winter <justus@sequoia-pgp.org>2019-12-13 20:05:05 +0100
commitc11e74020f374888caf9be63ec300bcbd1ff24b0 (patch)
tree9cf207c64620cbf9e7b52576a29682c225a000aa /sqv
parent007d9293f049afe7eb13d8c3c198560fa5e78abb (diff)
sqv: Check that subkeys are live at the sig's creation time.
- Fixes #44.
Diffstat (limited to 'sqv')
-rw-r--r--sqv/src/sqv.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/sqv/src/sqv.rs b/sqv/src/sqv.rs
index c1d83195..373bbd38 100644
--- a/sqv/src/sqv.rs
+++ b/sqv/src/sqv.rs
@@ -294,6 +294,13 @@ fn real_main() -> Result<(), failure::Error> {
was created.");
break;
}
+
+ if binding.binding_signature(t).is_none() {
+ eprintln!(
+ "Key was not live when the \
+ signature was created.");
+ break;
+ }
}
if cert.revoked(t)