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:
Floris Bruynooghe
2020-02-06 21:32:17 +01:00
committed by Floris Bruynooghe
parent a903805cd9
commit fc0292bf8a
8 changed files with 19 additions and 19 deletions

View File

@@ -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")