summaryrefslogtreecommitdiff
path: root/src/leap/eip
diff options
context:
space:
mode:
authorkali <kali@leap.se>2012-10-19 06:12:14 +0900
committerkali <kali@leap.se>2012-10-19 06:12:14 +0900
commitbc775969e2db31b892526b65a5037470a86b3882 (patch)
tree6794b70ce5443fa654d5ca86a8c2857f9016d676 /src/leap/eip
parent36957e9c926f4cc56cab383d99a8f82afc4b0302 (diff)
logic for cert validation widgets in wizard
Diffstat (limited to 'src/leap/eip')
-rw-r--r--src/leap/eip/checks.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/leap/eip/checks.py b/src/leap/eip/checks.py
index c704aef3..560f7f53 100644
--- a/src/leap/eip/checks.py
+++ b/src/leap/eip/checks.py
@@ -142,9 +142,6 @@ class ProviderCertChecker(object):
logger.debug('True')
return True
- def get_certificate_fingerprint(self, domain):
- pass
-
def check_new_cert_needed(self, skip_download=False, verify=True):
logger.debug('is new cert needed?')
if not self.is_cert_valid(do_raise=False):
@@ -347,7 +344,8 @@ class EIPConfigChecker(object):
return True
def fetch_definition(self, skip_download=False,
- config=None, uri=None):
+ config=None, uri=None,
+ domain=None):
"""
fetches a definition file from server
"""
@@ -364,7 +362,8 @@ class EIPConfigChecker(object):
if config is None:
config = self.defaultprovider.config
if uri is None:
- domain = config.get('provider', None)
+ if not domain:
+ domain = config.get('provider', None)
uri = self._get_provider_definition_uri(domain=domain)
# FIXME! Pass ca path verify!!!