diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2020-01-16 17:33:57 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2020-01-16 18:01:45 +0100 |
commit | 9a30451890b61aa8121fde7570a7e1d1ebaa3778 (patch) | |
tree | 831f7683a05ebb119e5a3f39cb61b31942cd5fdf /guide | |
parent | f1dabd075d78cf45c4e0b2e61334267c22d7145b (diff) |
openpgp: Remove variant VerificationResult::BadChecksum.
- This is better expressed as an error.
Diffstat (limited to 'guide')
-rw-r--r-- | guide/src/chapter_01.md | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/guide/src/chapter_01.md b/guide/src/chapter_01.md index 9770e089..16020b6b 100644 --- a/guide/src/chapter_01.md +++ b/guide/src/chapter_01.md @@ -128,8 +128,6 @@ fn main() { # Some(VerificationResult::Error { error, .. }) => # return Err(failure::err_msg( # format!("Bad signature: {:?}", error))), -# Some(VerificationResult::BadChecksum { .. }) => -# return Err(failure::err_msg("Bad signature")), # None => # return Err(failure::err_msg("No signature")), # } @@ -276,8 +274,6 @@ fn generate() -> openpgp::Result<openpgp::Cert> { # Some(VerificationResult::Error { error, .. }) => # return Err(failure::err_msg( # format!("Bad signature: {:?}", error))), -# Some(VerificationResult::BadChecksum { .. }) => -# return Err(failure::err_msg("Bad signature")), # None => # return Err(failure::err_msg("No signature")), # } @@ -424,8 +420,6 @@ fn sign(sink: &mut Write, plaintext: &str, tsk: &openpgp::Cert) # Some(VerificationResult::Error { error, .. }) => # return Err(failure::err_msg( # format!("Bad signature: {:?}", error))), -# Some(VerificationResult::BadChecksum { .. }) => -# return Err(failure::err_msg("Bad signature")), # None => # return Err(failure::err_msg("No signature")), # } @@ -583,8 +577,6 @@ impl<'a> VerificationHelper for Helper<'a> { Some(VerificationResult::Error { error, .. }) => return Err(failure::err_msg( format!("Bad signature: {:?}", error))), - Some(VerificationResult::BadChecksum { .. }) => - return Err(failure::err_msg("Bad signature")), None => return Err(failure::err_msg("No signature")), } |