summaryrefslogtreecommitdiffstats
path: root/openpgp-ffi/src/keyid.rs
diff options
context:
space:
mode:
Diffstat (limited to 'openpgp-ffi/src/keyid.rs')
-rw-r--r--openpgp-ffi/src/keyid.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/openpgp-ffi/src/keyid.rs b/openpgp-ffi/src/keyid.rs
index ec4b978b..1b5eeb99 100644
--- a/openpgp-ffi/src/keyid.rs
+++ b/openpgp-ffi/src/keyid.rs
@@ -52,7 +52,7 @@ pub struct KeyID(openpgp::KeyID);
/// pgp_keyid_free (mr_b);
/// free (mr_b_as_string);
/// ```
-#[::sequoia_ffi_macros::extern_fn] #[no_mangle] pub extern "system"
+#[::sequoia_ffi_macros::extern_fn] #[no_mangle] pub extern "C"
fn pgp_keyid_from_bytes(id: *const uint8_t) -> *mut KeyID {
assert!(!id.is_null());
let id = unsafe { slice::from_raw_parts(id, 8) };
@@ -77,14 +77,14 @@ fn pgp_keyid_from_bytes(id: *const uint8_t) -> *mut KeyID {
/// free (mr_b_as_string);
/// pgp_keyid_free (mr_b);
/// ```
-#[::sequoia_ffi_macros::extern_fn] #[no_mangle] pub extern "system"
+#[::sequoia_ffi_macros::extern_fn] #[no_mangle] pub extern "C"
fn pgp_keyid_from_hex(id: *const c_char) -> Maybe<KeyID> {
let id = ffi_param_cstr!(id).to_string_lossy();
openpgp::KeyID::from_hex(&id).ok().move_into_raw()
}
/// Converts the KeyID to a hexadecimal number.
-#[::sequoia_ffi_macros::extern_fn] #[no_mangle] pub extern "system"
+#[::sequoia_ffi_macros::extern_fn] #[no_mangle] pub extern "C"
fn pgp_keyid_to_hex(id: *const KeyID) -> *mut c_char {
ffi_return_string!(id.ref_raw().to_hex())
}