summaryrefslogtreecommitdiffstats
path: root/ffi
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2018-12-27 18:31:13 +0100
committerJustus Winter <justus@sequoia-pgp.org>2018-12-27 18:31:13 +0100
commitc5cd41e29a1725d2becd48da2730d9a9f766df3c (patch)
tree171dea6357f1c18d799fdfe9dca675cd4241a56c /ffi
parentb3f07afa9307734e19683e9fde47d3b5a12fea5e (diff)
ffi: Fix function prototype and formatting.
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");