From 6971f54feac2464b53f2b5db8466d75075e0dc9e Mon Sep 17 00:00:00 2001 From: Mark Haines Date: Tue, 13 Sep 2016 16:39:43 +0100 Subject: Add a olm_inbound_group_session_id method --- include/olm/inbound_group_session.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'include/olm') diff --git a/include/olm/inbound_group_session.h b/include/olm/inbound_group_session.h index 49992b2..0c5eb26 100644 --- a/include/olm/inbound_group_session.h +++ b/include/olm/inbound_group_session.h @@ -146,6 +146,27 @@ size_t olm_group_decrypt( ); +/** + * Get the number of bytes returned by olm_inbound_group_session_id() + */ +size_t olm_inbound_group_session_id_length( + const OlmInboundGroupSession *session +); + +/** + * Get a base64-encoded identifier for this session. + * + * Returns the length of the session id on success or olm_error() on + * failure. On failure last_error will be set with an error code. The + * last_error will be OUTPUT_BUFFER_TOO_SMALL if the id buffer was too + * small. + */ +size_t olm_inbound_group_session_id( + OlmInboundGroupSession *session, + uint8_t * id, size_t id_length +); + + #ifdef __cplusplus } // extern "C" #endif -- cgit v1.2.3