diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2019-02-06 16:55:59 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2019-02-06 16:55:59 +0100 |
commit | b62ea3af257e8d2ccb2555959e047f7ea41eb0d6 (patch) | |
tree | 458678ca6d805d78ed30e548f0d2516dc6eef1e9 /ffi/src | |
parent | bb19d1ad4b58b6392e0c9588809f690c9e403783 (diff) |
openpgp: New error for unsupported packet types.
Diffstat (limited to 'ffi/src')
-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 cffb1ba9..a28b9b6f 100644 --- a/ffi/src/error.rs +++ b/ffi/src/error.rs @@ -32,6 +32,8 @@ impl<'a> FromSequoiaError<'a> for Status { Status::InvalidOperation, &openpgp::Error::MalformedPacket(_) => Status::MalformedPacket, + &openpgp::Error::UnsupportedPacketType(_) => + Status::UnsupportedPacketType, &openpgp::Error::UnsupportedHashAlgorithm(_) => Status::UnsupportedHashAlgorithm, &openpgp::Error::UnsupportedPublicKeyAlgorithm(_) => |