diff options
author | Neal H. Walfield <neal@pep.foundation> | 2020-02-09 17:32:17 +0100 |
---|---|---|
committer | Neal H. Walfield <neal@pep.foundation> | 2020-02-09 17:32:17 +0100 |
commit | 7c443124abce89ba64c77a9a218228a4f5cc2856 (patch) | |
tree | d02fa54727ea4dfe16c9e57b2334768d5da36941 /ffi | |
parent | 1855e7bde6becc05b70bd661abf5a56512e33c37 (diff) |
openpgp: Add new error, PolicyViolation.
Diffstat (limited to 'ffi')
-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 5c58f0b0..331bad04 100644 --- a/ffi/src/error.rs +++ b/ffi/src/error.rs @@ -78,6 +78,8 @@ impl<'a> FromSequoiaError<'a> for Status { Status::NoBindingSignature, &openpgp::Error::InvalidKey(_) => Status::InvalidKey, + &openpgp::Error::PolicyViolation(_, _) => + Status::PolicyViolation, openpgp::Error::__Nonexhaustive => unreachable!(), } } |