diff options
author | Neal H. Walfield <neal@pep.foundation> | 2020-01-13 22:36:54 +0100 |
---|---|---|
committer | Neal H. Walfield <neal@pep.foundation> | 2020-01-14 10:34:53 +0100 |
commit | 8e89a8f63a5aa6a0f51ed595a34ee20cc2f8bcfa (patch) | |
tree | 4bef0d73890bc45f846a08b3c31f36b00b7e2ba6 /ffi/src/error.rs | |
parent | 33ab7dd6d9b7f92afab67d8e00902a71a677c341 (diff) |
openpgp: Rework stream verification logic.
- Select keys only when verifying the signatures: the relevant keys
depend on the timestamp in the signature, and different signatures
may have different time stamps.
- If the signature doens't have a Signature Creation Time stamp,
return that the signature is invalid.
Diffstat (limited to 'ffi/src/error.rs')
-rw-r--r-- | ffi/src/error.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ffi/src/error.rs b/ffi/src/error.rs index 5b1c6ea0..5c58f0b0 100644 --- a/ffi/src/error.rs +++ b/ffi/src/error.rs @@ -76,6 +76,8 @@ impl<'a> FromSequoiaError<'a> for Status { Status::NotYetLive, &openpgp::Error::NoBindingSignature(_) => Status::NoBindingSignature, + &openpgp::Error::InvalidKey(_) => + Status::InvalidKey, openpgp::Error::__Nonexhaustive => unreachable!(), } } |