aboutsummaryrefslogtreecommitdiff
path: root/python/olm_build.py
diff options
context:
space:
mode:
authorDamir Jelić <poljar@termina.org.uk>2018-11-28 14:54:09 +0100
committerHubert Chathi <hubert@uhoreg.ca>2019-04-08 15:04:32 -0400
commitf160d693b627a1159ed5837a4e9630100ab3f67e (patch)
tree140bd42754fa01744957d8f3da05fcd3f66a02ac /python/olm_build.py
parent0883a922ff39981e27cff7e677a6f79a5f324fab (diff)
python: Add PK bindings.
This patch adds bindings to the PK part of the Olm library contained in the pk.h header file. Encryption, decryption as well as pickling/unpickling of the decryption object is supported. 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..d3eda79 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/pk.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/pk.h")) as f:
+ ffibuilder.cdef(f.read(), override=True)
+
if __name__ == "__main__":
ffibuilder.compile(verbose=True)