summaryrefslogtreecommitdiffstats
path: root/ffi
diff options
context:
space:
mode:
Diffstat (limited to 'ffi')
-rw-r--r--ffi/include/sequoia/openpgp.h6
-rw-r--r--ffi/src/openpgp.rs8
2 files changed, 7 insertions, 7 deletions
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");