summaryrefslogtreecommitdiffstats
path: root/openpgp-ffi/src/parse/stream.rs
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2020-01-16 17:33:57 +0100
committerJustus Winter <justus@sequoia-pgp.org>2020-01-16 18:01:45 +0100
commit9a30451890b61aa8121fde7570a7e1d1ebaa3778 (patch)
tree831f7683a05ebb119e5a3f39cb61b31942cd5fdf /openpgp-ffi/src/parse/stream.rs
parentf1dabd075d78cf45c4e0b2e61334267c22d7145b (diff)
openpgp: Remove variant VerificationResult::BadChecksum.
- This is better expressed as an error.
Diffstat (limited to 'openpgp-ffi/src/parse/stream.rs')
-rw-r--r--openpgp-ffi/src/parse/stream.rs12
1 files changed, 2 insertions, 10 deletions
diff --git a/openpgp-ffi/src/parse/stream.rs b/openpgp-ffi/src/parse/stream.rs
index 2237c41f..262ff596 100644
--- a/openpgp-ffi/src/parse/stream.rs
+++ b/openpgp-ffi/src/parse/stream.rs
@@ -171,9 +171,8 @@ fn pgp_verification_result_variant(result: *const VerificationResult)
match result.ref_raw() {
GoodChecksum { .. } => 1,
MissingKey { .. } => 2,
- BadChecksum { .. } => 3,
- NotAlive { .. } => 4,
- Error { .. } => 5,
+ NotAlive { .. } => 3,
+ Error { .. } => 4,
}
}
@@ -272,13 +271,6 @@ fn pgp_verification_result_missing_key<'a>(
}
}
-/// Decomposes a ``VerificationResult::BadChecksum`.
-///
-/// Returns `true` iff the given value is a
-/// `VerificationResult::BadChecksum`, and returns the variants
-/// members in `sig_r` and the like iff `sig_r != NULL`.
-make_decomposition_fn!(pgp_verification_result_bad_checksum, BadChecksum);
-
/// Decomposes a `VerificationResult::Error`.
///
/// Returns `true` iff the given value is a