aboutsummaryrefslogtreecommitdiff
path: root/python/olm
diff options
context:
space:
mode:
authorMatthew Hodgson <matthew@matrix.org>2016-10-02 02:50:52 +0100
committerMatthew Hodgson <matthew@matrix.org>2016-10-02 02:50:52 +0100
commit38acc352a3f3aac40c132e5321da540da38c832e (patch)
treedf35101a1260577962aee63a7c4e396307f36bfd /python/olm
parent68ec41f8ca731b8e9335dbfd691b8339f030ee4d (diff)
fix missing ctypes function signatures
These missing signatures were causing OSX to truncate 64-bit pointers to 32-bit pointers when calling the missing methods, causing segfaults
Diffstat (limited to 'python/olm')
-rw-r--r--python/olm/account.py1
-rw-r--r--python/olm/session.py1
2 files changed, 2 insertions, 0 deletions
diff --git a/python/olm/account.py b/python/olm/account.py
index 7673329..3fa1049 100644
--- a/python/olm/account.py
+++ b/python/olm/account.py
@@ -41,6 +41,7 @@ account_function(lib.olm_account_one_time_keys_length)
account_function(lib.olm_account_one_time_keys, c_void_p, c_size_t)
account_function(lib.olm_account_mark_keys_as_published)
account_function(lib.olm_account_max_number_of_one_time_keys)
+account_function(lib.olm_pickle_account_length)
account_function(
lib.olm_account_generate_one_time_keys_random_length,
c_size_t
diff --git a/python/olm/session.py b/python/olm/session.py
index 308f220..19d43d3 100644
--- a/python/olm/session.py
+++ b/python/olm/session.py
@@ -58,6 +58,7 @@ session_function(
c_void_p, c_size_t, # Identity Key
c_void_p, c_size_t, # Pre Key Message
)
+session_function(lib.olm_pickle_session_length)
session_function(lib.olm_encrypt_message_type)
session_function(lib.olm_encrypt_random_length)
session_function(lib.olm_encrypt_message_length, c_size_t)