summaryrefslogtreecommitdiffstats
path: root/tool/src
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2019-04-03 17:09:18 +0200
committerJustus Winter <justus@sequoia-pgp.org>2019-04-03 17:54:32 +0200
commitda206f3817b98dcf1270f620dac3a0995601d552 (patch)
tree2efcd0c67cef40b60463e60fbe3440add2ae451b /tool/src
parentc775f30e1f0ec9e775466f2ece0f8efae29ad290 (diff)
openpgp: Reverse the order of signature groups.
- Previously, we reported the signature groups in the order encountered in the message. Reverse this order in preparation to reporting the message structure, which is the path from the start of the message to the literal data packet.
Diffstat (limited to 'tool/src')
-rw-r--r--tool/src/commands/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/src/commands/mod.rs b/tool/src/commands/mod.rs
index feb3e41e..aa60b5d2 100644
--- a/tool/src/commands/mod.rs
+++ b/tool/src/commands/mod.rs
@@ -243,7 +243,7 @@ impl<'a> VerificationHelper for VHelper<'a> {
fn check(&mut self, sigs: Vec<Vec<VerificationResult>>) -> Result<()> {
use self::VerificationResult::*;
- for (i, results) in sigs.into_iter().enumerate() {
+ for (i, results) in sigs.into_iter().rev().enumerate() {
for result in results {
let issuer = match result {
GoodChecksum(ref sig, ..) => sig.get_issuer(),