aboutsummaryrefslogtreecommitdiff
path: root/python/olm_build.py
diff options
context:
space:
mode:
authorDamir Jelić <poljar@termina.org.uk>2019-04-02 12:54:00 +0200
committerDamir Jelić <poljar@termina.org.uk>2019-04-02 12:56:53 +0200
commit446628753b6283f6dcbf27589b2c18f93c71768b (patch)
tree18d2a6f6f230d2e1100d37c6e6f0ccada980d335 /python/olm_build.py
parentd5c0eb9d20a17ec596784f53f3c9ffab0e9ad772 (diff)
python: Add Short Authentication String bindings.
This patch adds bindings to the SAS part of the Olm library contained in the sas.h header file. Signed-off-by: Damir Jelić <poljar@termina.org.uk>
Diffstat (limited to 'python/olm_build.py')
-rw-r--r--python/olm_build.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/python/olm_build.py b/python/olm_build.py
index ee836d8..1c610a1 100644
--- a/python/olm_build.py
+++ b/python/olm_build.py
@@ -39,6 +39,7 @@ ffibuilder.set_source(
#include <olm/olm.h>
#include <olm/inbound_group_session.h>
#include <olm/outbound_group_session.h>
+ #include <olm/sas.h>
""",
libraries=["olm"],
extra_compile_args=compile_args,
@@ -47,5 +48,8 @@ ffibuilder.set_source(
with open(os.path.join(PATH, "include/olm/olm.h")) as f:
ffibuilder.cdef(f.read(), override=True)
+with open(os.path.join(PATH, "include/olm/sas.h")) as f:
+ ffibuilder.cdef(f.read(), override=True)
+
if __name__ == "__main__":
ffibuilder.compile(verbose=True)