diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2020-02-06 15:53:46 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2020-02-06 16:19:48 +0100 |
commit | 5b95ceeb0109e5036d9b403fcff689f4e29f107e (patch) | |
tree | ae0b34e088fb9b28f0994d41b3fbe0e27f353d4b /sqv/src | |
parent | 537765aea0e34dda98d8038b339162f75a4ff76d (diff) |
sqv: Print fingerprints and keyids without whitespace.
- This improves usability, e.g. when copy&pasting.
- Fixes #422.
Diffstat (limited to 'sqv/src')
-rw-r--r-- | sqv/src/sqv.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sqv/src/sqv.rs b/sqv/src/sqv.rs index c23f4b38..44dad359 100644 --- a/sqv/src/sqv.rs +++ b/sqv/src/sqv.rs @@ -154,12 +154,12 @@ impl<'a> VerificationHelper for VHelper<'a> { eprintln!( "Signature by {} was created before \ the --not-before date.", - ka.key().fingerprint()); + ka.key().fingerprint().to_hex()); } else if t > not_after { eprintln!( "Signature by {} was created after \ the --not-after date.", - ka.key().fingerprint()); + ka.key().fingerprint().to_hex()); } else { signers.push(ka.cert().fingerprint()); } @@ -169,7 +169,7 @@ impl<'a> VerificationHelper for VHelper<'a> { eprintln!( "Signature by {} was created after \ the --not-after date.", - ka.key().fingerprint()); + ka.key().fingerprint().to_hex()); } else { signers.push(ka.cert().fingerprint()); } @@ -183,7 +183,7 @@ impl<'a> VerificationHelper for VHelper<'a> { if let Some(issuer) = sig.get_issuers().first() { eprintln!("Missing {}, which is needed to \ verify signature.", - issuer); + issuer.to_hex()); } else { eprintln!("Signature has no Issuer or \ Issuer Fingerprint subpacket. \ @@ -212,7 +212,7 @@ impl<'a> VerificationHelper for VHelper<'a> { self.good = signers.len(); for signer in signers { - println!("{}", signer); + println!("{}", signer.to_hex()); } Ok(()) |