From 1865b016d0cca74cd3703db5a3b4217917988dec Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Tue, 5 Jul 2022 13:17:24 +0200 Subject: Refactor: Handling of different servers and identifiers - Uses OrgID for Secure Internet and gets the data from discovery - Uses URL for Institute/Custom and gets the data from discovery - Implements SKIP WAYF as we now have the needed data - Implements an initial change location with a default location (NL right now) --- wrappers/python/src/__init__.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'wrappers/python/src/__init__.py') diff --git a/wrappers/python/src/__init__.py b/wrappers/python/src/__init__.py index 1ec0bec..f2ae66e 100644 --- a/wrappers/python/src/__init__.py +++ b/wrappers/python/src/__init__.py @@ -47,10 +47,19 @@ VPNStateChange = CFUNCTYPE(None, c_char_p, c_char_p, c_char_p, c_char_p) # Exposed functions # We have to use c_void_p instead of c_char_p to free it properly # See https://stackoverflow.com/questions/13445568/python-ctypes-how-to-free-memory-getting-invalid-pointer-error -lib.GetConnectConfig.argtypes, lib.GetConnectConfig.restype = [ +lib.GetConfigSecureInternet.argtypes, lib.GetConfigSecureInternet.restype = [ c_char_p, c_char_p, c_int, +], MultipleDataError +lib.GetConfigInstituteAccess.argtypes, lib.GetConfigInstituteAccess.restype = [ + c_char_p, + c_char_p, + c_int, +], MultipleDataError +lib.GetConfigCustomServer.argtypes, lib.GetConfigCustomServer.restype = [ + c_char_p, + c_char_p, c_int, ], MultipleDataError lib.Deregister.argtypes, lib.Deregister.restype = [c_char_p], c_void_p -- cgit v1.2.3