From 408530adf9ec0fd7aa8a201103262eebfc9cfc3e Mon Sep 17 00:00:00 2001 From: Mark Haines Date: Mon, 22 Jun 2015 11:02:42 +0100 Subject: Add API for removing used one time keys --- include/axolotl/account.hh | 4 ++++ include/axolotl/axolotl.hh | 5 +++++ 2 files changed, 9 insertions(+) (limited to 'include/axolotl') 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 ); -- cgit v1.2.3