Skip to content

Commit 394023c

Browse files
author
Florian
committed
updates + added aarch64 support
1 parent 472a33d commit 394023c

File tree

8 files changed

+6
-1
lines changed

8 files changed

+6
-1
lines changed

tls_client/cffi.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,12 @@
99
elif platform in ('win32', 'cygwin'):
1010
file_ext = '-64.dll' if 8 == ctypes.sizeof(ctypes.c_voidp) else '-32.dll'
1111
else:
12-
file_ext = '-x86.so' if "x86" in machine() else '-amd64.so'
12+
if machine() == "aarch64":
13+
file_ext = '-arm64.so'
14+
elif "x86" in machine():
15+
file_ext = '-x86.so'
16+
else:
17+
file_ext = '-amd64.so'
1318

1419
root_dir = os.path.abspath(os.path.dirname(__file__))
1520
library = ctypes.cdll.LoadLibrary(f'{root_dir}/dependencies/tls-client{file_ext}')
34.2 KB
Binary file not shown.
39.3 KB
Binary file not shown.
18.9 KB
Binary file not shown.
49 KB
Binary file not shown.
9.08 MB
Binary file not shown.
4.66 KB
Binary file not shown.
18.9 KB
Binary file not shown.

0 commit comments

Comments
 (0)