summaryrefslogtreecommitdiffstats
path: root/tool
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2019-11-26 17:54:04 +0100
committerJustus Winter <justus@sequoia-pgp.org>2019-11-27 14:09:26 +0100
commit6fa1c0c42d21c7876c594f9c658742f6639f86b9 (patch)
treee38d797dbbf38c7ce5a1c8ca45a04a7ecbe316b6 /tool
parenta52f66d26bdef3ce9c8948aa058dff39048e16c3 (diff)
openpgp: Fix Signature::get_issuer to return set of issuers.
- A signature can contain multiple hints as to who created the signature. Return all those hints to the caller. - Adapt all callers accordingly. - Fixes #264.
Diffstat (limited to 'tool')
-rw-r--r--tool/src/commands/mod.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/tool/src/commands/mod.rs b/tool/src/commands/mod.rs
index 6da5f56b..a7b76038 100644
--- a/tool/src/commands/mod.rs
+++ b/tool/src/commands/mod.rs
@@ -238,8 +238,9 @@ impl<'a> VHelper<'a> {
use self::VerificationResult::*;
for result in results {
if let MissingKey { sig } = result {
- let issuer = sig.get_issuer()
- .expect("missing key checksum has an issuer");
+ let issuer = sig.get_issuers().iter().nth(0)
+ .expect("missing key checksum has an issuer")
+ .to_string();
let what = match sig.level() {
0 => "checksum".into(),
n => format!("level {} notarizing checksum", n),