diff options
Diffstat (limited to 'src/axolotl.cpp')
-rw-r--r-- | src/axolotl.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/axolotl.cpp b/src/axolotl.cpp index e835c9b..c195a7c 100644 --- a/src/axolotl.cpp +++ b/src/axolotl.cpp @@ -468,6 +468,20 @@ size_t axolotl_matches_inbound_session( } +size_t axolotl_remove_one_time_keys( + AxolotlAccount * account, + AxolotlSession * session +) { + size_t result = from_c(account)->remove_key( + from_c(session)->bob_one_time_key_id + ); + if (result == std::size_t(-1)) { + from_c(account)->last_error = axolotl::ErrorCode::BAD_MESSAGE_KEY_ID; + } + return result; +} + + size_t axolotl_encrypt_message_type( AxolotlSession * session ) { |