From c5cd41e29a1725d2becd48da2730d9a9f766df3c Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Thu, 27 Dec 2018 18:31:13 +0100 Subject: ffi: Fix function prototype and formatting. --- ffi/include/sequoia/openpgp.h | 6 +++--- ffi/src/openpgp.rs | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'ffi') diff --git a/ffi/include/sequoia/openpgp.h b/ffi/include/sequoia/openpgp.h index 2289e00f..dbdaa872 100644 --- a/ffi/include/sequoia/openpgp.h +++ b/ffi/include/sequoia/openpgp.h @@ -873,9 +873,9 @@ sq_revocation_status_t sq_tpk_revocation_status (sq_tpk_t tpk); /// /// This function consumes the writer. It does *not* consume tpk. /*/ -sq_status_t sq_tpk_revoke (sq_context_t ctx, - sq_tpk_t tpk, sq_reason_for_revocation_t code, - const char *reason, sq_writer_t writer); +sq_signature_t sq_tpk_revoke (sq_context_t ctx, + sq_tpk_t tpk, sq_reason_for_revocation_t code, + const char *reason); /*/ /// Adds a revocation certificate to the tpk. diff --git a/ffi/src/openpgp.rs b/ffi/src/openpgp.rs index 6cc603a7..e0374a80 100644 --- a/ffi/src/openpgp.rs +++ b/ffi/src/openpgp.rs @@ -939,10 +939,10 @@ fn int_to_reason_for_revocation(code: c_int) -> ReasonForRevocation { /// /// This function does *not* consume tpk. #[no_mangle] -pub extern "system" fn sq_tpk_revoke (ctx: Option<&mut Context>, - tpk: *mut TPK, - code: c_int, - reason: Option<*const c_char>) +pub extern "system" fn sq_tpk_revoke(ctx: Option<&mut Context>, + tpk: *mut TPK, + code: c_int, + reason: Option<*const c_char>) -> *mut packet::Signature { let ctx = ctx.expect("Context is NULL"); -- cgit v1.2.3