aboutsummaryrefslogtreecommitdiff
path: root/include/olm/inbound_group_session.h
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2017-01-10 14:11:42 +0000
committerRichard van der Hoff <richard@matrix.org>2017-01-10 14:11:42 +0000
commitc04b770cd3c96aa3a55ff3b6d817ba5b6f6f6922 (patch)
treecbe47449e86de91a226c0959ab3f5aa65038f641 /include/olm/inbound_group_session.h
parentfc72c732fdaaea93ea92d53c680dacd7cc8ff2a5 (diff)
Add some tests for inbound session import/export
Diffstat (limited to 'include/olm/inbound_group_session.h')
-rw-r--r--include/olm/inbound_group_session.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/olm/inbound_group_session.h b/include/olm/inbound_group_session.h
index 739a89b..ef01038 100644
--- a/include/olm/inbound_group_session.h
+++ b/include/olm/inbound_group_session.h
@@ -190,6 +190,19 @@ uint32_t olm_inbound_group_session_first_known_index(
const OlmInboundGroupSession *session
);
+
+/**
+ * Check if the session has been verified as a valid session.
+ *
+ * (A session is verified either because the original session share was signed,
+ * or because we have subsequently successfully decrypted a message.)
+ *
+ * This is mainly intended for the unit tests, currently.
+ */
+int olm_inbound_group_session_is_verified(
+ const OlmInboundGroupSession *session
+);
+
/**
* Get the number of bytes returned by olm_export_inbound_group_session()
*/