summaryrefslogtreecommitdiffstats
path: root/sqv
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2020-01-16 17:45:27 +0100
committerJustus Winter <justus@sequoia-pgp.org>2020-01-16 18:01:45 +0100
commit67e79fe28c6827c2bfb68d75d331b9fd3a574843 (patch)
tree1e97aff169b182870fdaaa71cdbe42dfb9beffc0 /sqv
parent9a30451890b61aa8121fde7570a7e1d1ebaa3778 (diff)
openpgp: Return Result<()> from Signature::verify*.
Diffstat (limited to 'sqv')
-rw-r--r--sqv/src/sqv.rs7
1 files changed, 1 insertions, 6 deletions
diff --git a/sqv/src/sqv.rs b/sqv/src/sqv.rs
index 380b52f4..afa27833 100644
--- a/sqv/src/sqv.rs
+++ b/sqv/src/sqv.rs
@@ -262,7 +262,7 @@ fn real_main() -> Result<(), failure::Error> {
let mut digest = vec![0u8; hash.digest_size()];
hash.digest(&mut digest);
match sig.verify_digest(key, &digest[..]) {
- Ok(true) => {
+ Ok(()) => {
if let Some(t) = sig.signature_creation_time() {
if let Some(not_before) = not_before {
if t < not_before {
@@ -336,11 +336,6 @@ fn real_main() -> Result<(), failure::Error> {
println!("{}", cert.primary().fingerprint());
good += 1;
},
- Ok(false) => {
- if trace {
- eprintln!("Signature by {} is bad.", issuer);
- }
- },
Err(err) => {
if trace {
eprintln!("Verifying signature: {}.", err);