Function olm_sys::olm_sas_set_their_key[][src]

pub unsafe extern "C" fn olm_sas_set_their_key(
    sas: *mut OlmSAS,
    their_key: *mut c_void,
    their_key_length: usize
) -> usize

Sets the public key of other user.

@param[in] sas the SAS object. @param[in] their_key the other user’s public key. The contents of the buffer will be overwritten. @param[in] their_key_length the size of the their_key buffer.

@return olm_error() on failure. If the their_key buffer is too small, then olm_sas_last_error() will be INPUT_BUFFER_TOO_SMALL.