mirror of
https://github.com/chatmail/core.git
synced 2026-05-05 06:16:30 +03:00
Rename save_self_keypair
For the ffi rename to dc_preconfigure_keypair. For the internal API to store_self_keypair.
This commit is contained in:
committed by
Floris Bruynooghe
parent
a903805cd9
commit
fc0292bf8a
@@ -691,7 +691,7 @@ pub unsafe extern "C" fn dc_maybe_network(context: *mut dc_context_t) {
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub unsafe extern "C" fn _dc_save_self_keypair(
|
||||
pub unsafe extern "C" fn dc_preconfigure_keypair(
|
||||
context: *mut dc_context_t,
|
||||
addr: *const libc::c_char,
|
||||
public_data: *const libc::c_char,
|
||||
@@ -712,7 +712,7 @@ pub unsafe extern "C" fn _dc_save_self_keypair(
|
||||
public,
|
||||
secret,
|
||||
};
|
||||
key::save_self_keypair(ctx, &keypair, key::KeyPairUse::Default)?;
|
||||
key::store_self_keypair(ctx, &keypair, key::KeyPairUse::Default)?;
|
||||
Ok(1)
|
||||
})
|
||||
.log_warn(ffi_context, "Failed to save keypair")
|
||||
|
||||
Reference in New Issue
Block a user