diff options
author | Neal H. Walfield <neal@pep.foundation> | 2020-01-08 10:10:58 +0100 |
---|---|---|
committer | Neal H. Walfield <neal@pep.foundation> | 2020-01-08 10:23:23 +0100 |
commit | 5b0b546ce73cc3a2bfed085726c43635d5519924 (patch) | |
tree | 4747952e3ee06339f95ec571681e62d21168d3d0 /ffi/src/error.rs | |
parent | f10ceaa4ac04dcafe0bce42eb4fed3832225b594 (diff) |
openpgp: Include a reference time in KeyAmalgamation.
- Including the reference time in the KeyAmalgamation structure
rather than having the user supply it to the individual
methods (like `KeyAmalgamation::alive`) helps ensure that the key
is used consistent. For instance, this makes it harder to
mistakenly query key's liveness at time t, but then use the
current time to determine the key's capabilities.
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 1bcf051c..5b1c6ea0 100644 --- a/ffi/src/error.rs +++ b/ffi/src/error.rs @@ -74,6 +74,8 @@ impl<'a> FromSequoiaError<'a> for Status { Status::Expired, &openpgp::Error::NotYetLive(_) => Status::NotYetLive, + &openpgp::Error::NoBindingSignature(_) => + Status::NoBindingSignature, openpgp::Error::__Nonexhaustive => unreachable!(), } } |