Function olm_sys::olm_pickle_outbound_group_session[][src]

pub unsafe extern "C" fn olm_pickle_outbound_group_session(
    session: *mut OlmOutboundGroupSession,
    key: *const c_void,
    key_length: usize,
    pickled: *mut c_void,
    pickled_length: usize
) -> usize

Stores a group session as a base64 string. Encrypts the session using the supplied key. Returns the length of the session on success.

Returns olm_error() on failure. If the pickle output buffer is smaller than olm_pickle_outbound_group_session_length() then olm_outbound_group_session_last_error() will be “OUTPUT_BUFFER_TOO_SMALL”