diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2019-02-12 16:04:12 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2019-02-12 16:56:22 +0100 |
commit | 0e1a25c5180046320a811a89901952bd4333954c (patch) | |
tree | 3ac1ef42c8a54b608616f03d6c940aab66861725 /openpgp-ffi/src/common.rs | |
parent | c387f17444133ae637f782d3ba340ec7454b672d (diff) |
openpgp-ffi: Fix Signature wrapping.
Diffstat (limited to 'openpgp-ffi/src/common.rs')
-rw-r--r-- | openpgp-ffi/src/common.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openpgp-ffi/src/common.rs b/openpgp-ffi/src/common.rs index 0ee14566..ea0a8211 100644 --- a/openpgp-ffi/src/common.rs +++ b/openpgp-ffi/src/common.rs @@ -432,7 +432,7 @@ pub fn pgp_verification_result_code(result: *const VerificationResult) /// Returns the verification result code. #[::sequoia_ffi_macros::extern_fn] #[no_mangle] pub fn pgp_verification_result_signature(result: *const VerificationResult) - -> *const self::openpgp::packet::Signature + -> *mut packet::signature::Signature { let result = ffi_param_ref!(result); let sig = match result { @@ -441,7 +441,7 @@ pub fn pgp_verification_result_signature(result: *const VerificationResult) VerificationResult::BadChecksum(ref sig) => sig, }; - sig as *const self::openpgp::packet::Signature + sig.move_into_raw() } /// Returns the verification result code. |