aboutsummaryrefslogtreecommitdiff
path: root/src
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 /src
parentfc72c732fdaaea93ea92d53c680dacd7cc8ff2a5 (diff)
Add some tests for inbound session import/export
Diffstat (limited to 'src')
-rw-r--r--src/inbound_group_session.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/inbound_group_session.c b/src/inbound_group_session.c
index 845c960..a78404d 100644
--- a/src/inbound_group_session.c
+++ b/src/inbound_group_session.c
@@ -47,7 +47,7 @@ struct OlmInboundGroupSession {
/**
* Have we ever seen any evidence that this is a valid session?
* (either because the original session share was signed, or because we
- * have subsequently successfully decrypted a message?)
+ * have subsequently successfully decrypted a message)
*
* (We don't do anything with this currently, but we may want to bear it in
* mind when we consider handling key-shares for sessions we already know
@@ -470,6 +470,12 @@ uint32_t olm_inbound_group_session_first_known_index(
return session->initial_ratchet.counter;
}
+int olm_inbound_group_session_is_verified(
+ const OlmInboundGroupSession *session
+) {
+ return session->signing_key_verified;
+}
+
size_t olm_export_inbound_group_session_length(
const OlmInboundGroupSession *session
) {