aboutsummaryrefslogtreecommitdiff
path: root/python/olm/account.py
diff options
context:
space:
mode:
authorWilfried Klaebe <w+gitstuff@chaos.in-kiel.de>2018-05-24 19:22:39 +0200
committerRichard van der Hoff <richard@matrix.org>2018-05-29 11:41:25 +0100
commit62b576b903f3794658d95a8957a489cf442c9c11 (patch)
treeb12f899180d5085b6f5e5c5e883fff0b1242887e /python/olm/account.py
parent4065c8e11a33ba41133a086ed3de4da94dcb6bae (diff)
Python: add binding for olm_remove_one_time_keys
Signed-off-by: Wilfried Klaebe <w+gitstuff@chaos.in-kiel.de>
Diffstat (limited to 'python/olm/account.py')
-rw-r--r--python/olm/account.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/python/olm/account.py b/python/olm/account.py
index 3c9ea88..b103a51 100644
--- a/python/olm/account.py
+++ b/python/olm/account.py
@@ -53,6 +53,10 @@ account_function(
c_size_t,
c_void_p, c_size_t
)
+account_function(
+ lib.olm_remove_one_time_keys,
+ c_void_p # Session
+)
class Account(object):
@@ -122,5 +126,11 @@ class Account(object):
self.ptr, count, random_buffer, random_length
)
+ def remove_one_time_keys(self, session):
+ lib.olm_remove_one_time_keys(
+ self.ptr,
+ session.ptr
+ )
+
def clear(self):
pass