summaryrefslogtreecommitdiffstats
path: root/guide
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2019-04-02 16:46:21 +0200
committerJustus Winter <justus@sequoia-pgp.org>2019-04-02 17:04:04 +0200
commit717fbd73b9086beec7c9ed30926c604612f067a3 (patch)
tree8acebbaef9de25ed4ecfbb7944885657fd5ae7e5 /guide
parent4e6d4a045af89567b8ff84c830775649d09900b0 (diff)
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.
Diffstat (limited to 'guide')
-rw-r--r--guide/src/chapter_01.md8
1 files changed, 4 insertions, 4 deletions
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<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")),
@@ -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")),