Function olm_sys::olm_create_account
source · [−]pub unsafe extern "C" fn olm_create_account(
account: *mut OlmAccount,
random: *mut c_void,
random_length: usize
) -> usize
Expand description
Creates a new account. Returns olm_error() on failure. If there weren’t enough random bytes then olm_account_last_error() will be “NOT_ENOUGH_RANDOM”