diff options
author | kali <kali@leap.se> | 2012-09-18 11:11:43 +0900 |
---|---|---|
committer | kali <kali@leap.se> | 2012-09-18 19:10:13 +0900 |
commit | 0d35f2a82bf15504ace2135af3e0c66ae1c16874 (patch) | |
tree | 1915d4f9326ec4f44c553ebad37032f57f6e636a /src/leap/eip/specs.py | |
parent | 430b6326d06d81c44d534543c8e9684a5c0fcb15 (diff) |
do_branding command added to setup
Diffstat (limited to 'src/leap/eip/specs.py')
-rw-r--r-- | src/leap/eip/specs.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/leap/eip/specs.py b/src/leap/eip/specs.py index e617574c..05aef590 100644 --- a/src/leap/eip/specs.py +++ b/src/leap/eip/specs.py @@ -1,15 +1,21 @@ from __future__ import (unicode_literals) import os +from leap import __branding from leap.base import config as baseconfig +PROVIDER_CA_CERT = __branding.get( + 'provider_ca_file', + 'testprovider-ca-cert.pem') provider_ca_path = lambda: unicode(os.path.join( baseconfig.get_default_provider_path(), 'keys', 'ca', - 'testprovider-ca-cert.pem' + PROVIDER_CA_CERT )) +PROVIDER_DOMAIN = __branding.get('provider_domain', 'testprovider.example.org') + client_cert_path = lambda: unicode(os.path.join( baseconfig.get_default_provider_path(), @@ -20,7 +26,7 @@ client_cert_path = lambda: unicode(os.path.join( eipconfig_spec = { 'provider': { 'type': unicode, - 'default': u"testprovider.example.org", + 'default': u"%s" % PROVIDER_DOMAIN, 'required': True, }, 'transport': { |