diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-07-15 15:01:07 +0200 |
|---|---|---|
| committer | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-07-15 15:01:07 +0200 |
| commit | 4f473a5d10bc1c9c659ffebf632f7d49c61c9a53 (patch) | |
| tree | 63c58b37ca9970ac2c54fb008aa50f2bea92e0a0 /wrappers/python/src | |
| parent | 28ef64c0721e00780a6276cee33af259c7752c39 (diff) | |
State + Python: Remove Set/Get Identifier
Let clients serialize data to a file themselves
Diffstat (limited to 'wrappers/python/src')
| -rw-r--r-- | wrappers/python/src/__init__.py | 2 | ||||
| -rw-r--r-- | wrappers/python/src/main.py | 14 |
2 files changed, 0 insertions, 16 deletions
diff --git a/wrappers/python/src/__init__.py b/wrappers/python/src/__init__.py index 802ceec..ed6fcc7 100644 --- a/wrappers/python/src/__init__.py +++ b/wrappers/python/src/__init__.py @@ -84,8 +84,6 @@ lib.SetSecureLocation.argtypes, lib.SetSecureLocation.restype = [ lib.SetConnected.argtypes, lib.SetConnected.restype = [c_char_p], c_void_p lib.SetConnecting.argtypes, lib.SetConnecting.restype = [c_char_p], c_void_p lib.SetDisconnected.argtypes, lib.SetDisconnected.restype = [c_char_p], c_void_p -lib.GetIdentifier.argtypes, lib.GetIdentifier.restype = [c_char_p], DataError -lib.SetIdentifier.argtypes, lib.SetIdentifier.restype = [c_char_p, c_char_p], c_void_p lib.SetSearchServer.argtypes, lib.SetSearchServer.restype = [c_char_p], c_void_p lib.FreeString.argtypes, lib.FreeString.restype = [c_void_p], None diff --git a/wrappers/python/src/main.py b/wrappers/python/src/main.py index 008973d..87d2b53 100644 --- a/wrappers/python/src/main.py +++ b/wrappers/python/src/main.py @@ -156,20 +156,6 @@ class EduVPN(object): if disconnect_err: raise Exception(disconnect_err) - def get_identifier(self) -> str: - identifier, identifier_err = self.go_function(lib.GetIdentifier) - - if identifier_err: - raise Exception(identifier_err) - - return identifier - - def set_identifier(self, identifier: str) -> None: - identifier_err = self.go_function(lib.SetIdentifier, identifier) - - if identifier_err: - raise Exception(identifier_err) - def set_search_server(self) -> None: search_err = self.go_function(lib.SetSearchServer) |
