aboutsummaryrefslogtreecommitdiff
path: root/include/olm/inbound_group_session.h
diff options
context:
space:
mode:
authorMark Haines <mjark@negativecurvature.net>2016-09-13 16:39:43 +0100
committerMark Haines <mjark@negativecurvature.net>2016-09-13 17:02:36 +0100
commit6971f54feac2464b53f2b5db8466d75075e0dc9e (patch)
tree88d935f4dc79307cc109657a087979dcc598cc8b /include/olm/inbound_group_session.h
parente0b51971b7bc4cf3bb56b080f5f54296b58b3f0c (diff)
Add a olm_inbound_group_session_id method
Diffstat (limited to 'include/olm/inbound_group_session.h')
-rw-r--r--include/olm/inbound_group_session.h21
1 files changed, 21 insertions, 0 deletions
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