diff options
author | Kali Kaneko (leap communications) <kali@leap.se> | 2017-02-01 00:00:20 +0100 |
---|---|---|
committer | Kali Kaneko (leap communications) <kali@leap.se> | 2017-02-23 00:37:29 +0100 |
commit | 6d1d18faec5caa60c26b8245f0ab17c63d0b80d8 (patch) | |
tree | 08dbfd0e257bea0434543df6505bcc9e12acbf97 /src/leap/bitmask/vpn/_config.py | |
parent | 8fb76310e14a5893397894c6155ac7aa4f28e483 (diff) |
[refactor] split vpn control into some modules
Diffstat (limited to 'src/leap/bitmask/vpn/_config.py')
-rw-r--r-- | src/leap/bitmask/vpn/_config.py | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/leap/bitmask/vpn/_config.py b/src/leap/bitmask/vpn/_config.py new file mode 100644 index 00000000..7dfabf7d --- /dev/null +++ b/src/leap/bitmask/vpn/_config.py @@ -0,0 +1,34 @@ + +class _TempEIPConfig(object): + """Current EIP code on bitmask depends on EIPConfig object, this temporary + implementation helps on the transition.""" + + def __init__(self, flags, path, ports): + self._flags = flags + self._path = path + self._ports = ports + + def get_gateway_ports(self, idx): + return self._ports + + def get_openvpn_configuration(self): + return self._flags + + def get_client_cert_path(self, providerconfig): + return self._path + + +class _TempProviderConfig(object): + """Current EIP code on bitmask depends on ProviderConfig object, this + temporary implementation helps on the transition.""" + + def __init__(self, domain, path): + self._domain = domain + self._path = path + + def get_domain(self): + return self._domain + + def get_ca_cert_path(self): + return self._path + |