Function olm_sys::olm_sas_get_pubkey [−][src]
pub unsafe extern "C" fn olm_sas_get_pubkey(
sas: *mut OlmSAS,
pubkey: *mut c_void,
pubkey_length: usize
) -> usize
Get the public key for the SAS object.
@param[in] sas the SAS object.
@param[out] pubkey buffer to store the public key.
@param[in] pubkey_length the size of the pubkey
buffer. Must be at least
olm_sas_pubkey_length()
.
@return olm_error()
on failure. If the pubkey
buffer is too small, then
olm_sas_last_error()
will be OUTPUT_BUFFER_TOO_SMALL
.