summaryrefslogtreecommitdiff
path: root/src/leap/gui/firstrun/providersetup.py
diff options
context:
space:
mode:
authorkali <kali@leap.se>2012-11-12 22:09:05 +0900
committerkali <kali@leap.se>2012-11-12 22:09:05 +0900
commit6dac344ee1826f9413a40c7783517bc640f826ca (patch)
tree38249280319b376d405e9b46297c71f5d5b47578 /src/leap/gui/firstrun/providersetup.py
parent654f3158707e6b89d1dfc15745a1b9f525ee81b9 (diff)
uncomment download_ca_cert call
Diffstat (limited to 'src/leap/gui/firstrun/providersetup.py')
-rw-r--r--src/leap/gui/firstrun/providersetup.py19
1 files changed, 9 insertions, 10 deletions
diff --git a/src/leap/gui/firstrun/providersetup.py b/src/leap/gui/firstrun/providersetup.py
index 2609629a..a1710a3a 100644
--- a/src/leap/gui/firstrun/providersetup.py
+++ b/src/leap/gui/firstrun/providersetup.py
@@ -7,7 +7,7 @@ from PyQt4 import QtGui
from leap.gui.progress import ValidationPage
-from leap.gui.constants import APP_LOGO
+from leap.gui.constants import APP_LOGO, pause_for_user
class ProviderSetupValidationPage(ValidationPage):
@@ -25,7 +25,6 @@ class ProviderSetupValidationPage(ValidationPage):
"""
executes actual checks in a separate thread
"""
- import time
domain = self.field('provider_domain')
wizard = self.wizard()
pconfig = wizard.providerconfig
@@ -33,7 +32,9 @@ class ProviderSetupValidationPage(ValidationPage):
pCertChecker = wizard.providercertchecker
certchecker = pCertChecker(domain=domain)
+ update_signal.emit('head_sentinel', 0)
update_signal.emit('Fetching CA certificate', 30)
+ pause_for_user()
if pconfig:
ca_cert_uri = pconfig.get('ca_cert_uri').geturl()
@@ -47,11 +48,10 @@ class ProviderSetupValidationPage(ValidationPage):
# (Check with the trusted fingerprints dict
# or something smart)
- #certchecker.download_ca_cert(
- #uri=ca_cert_uri,
- #verify=False)
-
- time.sleep(2)
+ certchecker.download_ca_cert(
+ uri=ca_cert_uri,
+ verify=False)
+ pause_for_user()
update_signal.emit('Checking CA fingerprint', 66)
#ca_cert_fingerprint = pconfig.get('ca_cert_fingerprint', None)
@@ -61,7 +61,6 @@ class ProviderSetupValidationPage(ValidationPage):
#validate_fpr = certchecker.check_ca_cert_fingerprint(
#fingerprint=sha256_fpr)
- time.sleep(0.5)
#if not validate_fpr:
# XXX update validationMsg
# should catch exception
@@ -85,11 +84,11 @@ class ProviderSetupValidationPage(ValidationPage):
# XXX update validationMsg
# should catch exception
#return False
- time.sleep(0.5)
+ pause_for_user()
#ca_cert_path = checker.ca_cert_path
update_signal.emit('end_sentinel', 100)
- time.sleep(1)
+ pause_for_user()
def _do_validation(self):
"""