Function olm_sys::olm_init_inbound_group_session[][src]

pub unsafe extern "C" fn olm_init_inbound_group_session(
    session: *mut OlmInboundGroupSession,
    session_key: *const u8,
    session_key_length: usize
) -> usize

Start a new inbound group session, from a key exported from olm_outbound_group_session_key

Returns olm_error() on failure. On failure last_error will be set with an error code. The last_error will be:

  • OLM_INVALID_BASE64 if the session_key is not valid base64
  • OLM_BAD_SESSION_KEY if the session_key is invalid