diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2019-11-28 15:27:33 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2019-11-28 16:26:43 +0100 |
commit | bbbc6da375d6584c7b2bcc74e838fff943f489d4 (patch) | |
tree | 0a965698c96dbc0fc8541c6adc2224935b68bc07 /openpgp-ffi/src/error.rs | |
parent | f53c77752ff04c3713c175a76a06723042e681ae (diff) |
Call TPKs Certificates, update identifiers, documentation.
- Fixes #387.
Diffstat (limited to 'openpgp-ffi/src/error.rs')
-rw-r--r-- | openpgp-ffi/src/error.rs | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/openpgp-ffi/src/error.rs b/openpgp-ffi/src/error.rs index 3b64e250..4c2924c3 100644 --- a/openpgp-ffi/src/error.rs +++ b/openpgp-ffi/src/error.rs @@ -111,8 +111,8 @@ pub enum Status { /// Missing session key. MissingSessionKey = -27, - /// Malformed TPK. - MalformedTPK = -13, + /// Malformed Cert. + MalformedCert = -13, // XXX: Skipping UnsupportedPacketType = -14. @@ -139,8 +139,8 @@ pub enum Status { /// Index out of range. IndexOutOfRange = -23, - /// TPK not supported. - UnsupportedTPK = -24, + /// Cert not supported. + UnsupportedCert = -24, // XXX: Skipping ManipulatedMessage = -25 // XXX: Skipping UnsupportedAEADAlgorithm = -26 @@ -180,13 +180,13 @@ pub extern "C" fn pgp_status_to_string(status: Status) -> *const c_char { InvalidPassword => "Invalid password\x00", InvalidSessionKey => "Invalid session key\x00", MissingSessionKey => "Missing session key\x00", - MalformedTPK => "Malformed TPK\x00", + MalformedCert => "Malformed Cert\x00", MalformedMPI => "Malformed MPI\x00", BadSignature => "Bad signature\x00", ManipulatedMessage => "Message has been manipulated\x00", MalformedMessage => "Malformed message\x00", IndexOutOfRange => "Index out of range\x00", - UnsupportedTPK => "TPK not supported\x00", + UnsupportedCert => "Cert not supported\x00", }.as_bytes().as_ptr() as *const c_char } @@ -232,12 +232,12 @@ impl<'a> From<&'a failure::Error> for Status { Status::ManipulatedMessage, &openpgp::Error::MalformedMessage(_) => Status::MalformedMessage, - &openpgp::Error::MalformedTPK(_) => - Status::MalformedTPK, + &openpgp::Error::MalformedCert(_) => + Status::MalformedCert, &openpgp::Error::IndexOutOfRange => Status::IndexOutOfRange, - &openpgp::Error::UnsupportedTPK(_) => - Status::UnsupportedTPK, + &openpgp::Error::UnsupportedCert(_) => + Status::UnsupportedCert, } } |