From c3318fb386096170282e831eb3b616a5a7e9dda8 Mon Sep 17 00:00:00 2001 From: Jeroen Wijenbergh Date: Wed, 3 Sep 2025 10:13:46 +0200 Subject: Revert "All: Remove ProxyGuard integration" This partially reverts commit 6b939462fb1064abd42e8cb8316700ec844172ea. It keeps the proxyguard functions but leaves GetConfig alone. E.g. no WireGuard config replacing and querying is happening for ProxyGuard. Needed for the Linux client as I have not found a good way to have a daemon with NetworkManager integration --- wrappers/python/eduvpn_common/loader.py | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'wrappers/python/eduvpn_common/loader.py') diff --git a/wrappers/python/eduvpn_common/loader.py b/wrappers/python/eduvpn_common/loader.py index 888b53f..d902453 100644 --- a/wrappers/python/eduvpn_common/loader.py +++ b/wrappers/python/eduvpn_common/loader.py @@ -6,6 +6,7 @@ from eduvpn_common.types import ( BoolError, DataError, HandlerError, + ProxySetup, ReadRxBytes, RefreshList, TokenGetter, @@ -131,3 +132,33 @@ def initialize_functions(lib: CDLL) -> None: ], BoolError, ) + lib.NewProxyguard.argtypes, lib.NewProxyguard.restype = ( + [ + c_int, + c_int, + c_int, + c_char_p, + ProxySetup, + ], + HandlerError, + ) + lib.ProxyguardRestart.argtypes, lib.ProxyguardRestart.restype = ( + [ + c_int, + ], + c_char_p, + ) + lib.ProxyguardTunnel.argtypes, lib.ProxyguardTunnel.restype = ( + [ + c_int, + c_int, + c_int, + ], + c_char_p, + ) + lib.ProxyguardPeerIPs.argtypes, lib.ProxyguardPeerIPs.restype = ( + [ + c_int, + ], + DataError, + ) -- cgit v1.2.3