aboutsummaryrefslogtreecommitdiff
path: root/include/axolotl
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2015-06-22 11:02:42 +0100
committerMark Haines <mark.haines@matrix.org>2015-06-22 11:02:42 +0100
commit408530adf9ec0fd7aa8a201103262eebfc9cfc3e (patch)
tree7eeeab21e409727b2d7b2b6b05332046081e8a01 /include/axolotl
parentfb980849c4ffc99bca7a2dd5a347e9f0b4b99469 (diff)
Add API for removing used one time keys
Diffstat (limited to 'include/axolotl')
-rw-r--r--include/axolotl/account.hh4
-rw-r--r--include/axolotl/axolotl.hh5
2 files changed, 9 insertions, 0 deletions
diff --git a/include/axolotl/account.hh b/include/axolotl/account.hh
index 0e65a7e..54d96c3 100644
--- a/include/axolotl/account.hh
+++ b/include/axolotl/account.hh
@@ -41,6 +41,10 @@ struct Account {
LocalKey const * lookup_key(
std::uint32_t id
);
+
+ std::size_t remove_key(
+ std::uint32_t id
+ );
};
diff --git a/include/axolotl/axolotl.hh b/include/axolotl/axolotl.hh
index 09276a9..e333dbc 100644
--- a/include/axolotl/axolotl.hh
+++ b/include/axolotl/axolotl.hh
@@ -121,6 +121,11 @@ size_t axolotl_matches_inbound_session(
void * one_time_key_message, size_t message_length
);
+size_t axolotl_remove_one_time_keys(
+ AxolotlAccount * account,
+ AxolotlSession * session
+);
+
size_t axolotl_encrypt_message_type(
AxolotlSession * session
);