summaryrefslogtreecommitdiffstats
path: root/ffi/src
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2019-02-06 16:55:59 +0100
committerJustus Winter <justus@sequoia-pgp.org>2019-02-06 16:55:59 +0100
commitb62ea3af257e8d2ccb2555959e047f7ea41eb0d6 (patch)
tree458678ca6d805d78ed30e548f0d2516dc6eef1e9 /ffi/src
parentbb19d1ad4b58b6392e0c9588809f690c9e403783 (diff)
openpgp: New error for unsupported packet types.
Diffstat (limited to 'ffi/src')
-rw-r--r--ffi/src/error.rs2
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(_) =>