diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2019-12-13 20:03:49 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2019-12-13 20:05:05 +0100 |
commit | c11e74020f374888caf9be63ec300bcbd1ff24b0 (patch) | |
tree | 9cf207c64620cbf9e7b52576a29682c225a000aa | |
parent | 007d9293f049afe7eb13d8c3c198560fa5e78abb (diff) |
sqv: Check that subkeys are live at the sig's creation time.
- Fixes #44.
-rw-r--r-- | sqv/src/sqv.rs | 7 |
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) |