From 717fbd73b9086beec7c9ed30926c604612f067a3 Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Tue, 2 Apr 2019 16:46:21 +0200 Subject: openpgp: Improve the VerificationHelper protocol. - Change VerificationResult::GoodChecksum to include references to the TPK that contained the signing key, the key itself, a binding signature (if any), and any revocation information. - Fixes #140. --- guide/src/chapter_01.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'guide') diff --git a/guide/src/chapter_01.md b/guide/src/chapter_01.md index 8e48a791..580a27d6 100644 --- a/guide/src/chapter_01.md +++ b/guide/src/chapter_01.md @@ -119,7 +119,7 @@ fn main() { # // whether the signature checks out mathematically, we apply # // our policy. # match sig_result { -# VerificationResult::GoodChecksum(_) => +# VerificationResult::GoodChecksum(..) => # Ok(()), // Good signature # VerificationResult::MissingKey(_) => # Err(failure::err_msg("Missing key to verify signature")), @@ -249,7 +249,7 @@ fn generate() -> openpgp::Result { # // whether the signature checks out mathematically, we apply # // our policy. # match sig_result { -# VerificationResult::GoodChecksum(_) => +# VerificationResult::GoodChecksum(..) => # Ok(()), // Good signature # VerificationResult::MissingKey(_) => # Err(failure::err_msg("Missing key to verify signature")), @@ -379,7 +379,7 @@ fn sign(sink: &mut Write, plaintext: &str, tsk: &openpgp::TPK) # // whether the signature checks out mathematically, we apply # // our policy. # match sig_result { -# VerificationResult::GoodChecksum(_) => +# VerificationResult::GoodChecksum(..) => # Ok(()), // Good signature # VerificationResult::MissingKey(_) => # Err(failure::err_msg("Missing key to verify signature")), @@ -520,7 +520,7 @@ impl<'a> VerificationHelper for Helper<'a> { // whether the signature checks out mathematically, we apply // our policy. match sig_result { - VerificationResult::GoodChecksum(_) => + VerificationResult::GoodChecksum(..) => Ok(()), // Good signature VerificationResult::MissingKey(_) => Err(failure::err_msg("Missing key to verify signature")), -- cgit v1.2.3