diff options
author | Parménides GV <parmegv@sdf.org> | 2013-03-14 19:53:31 +0100 |
---|---|---|
committer | Parménides GV <parmegv@sdf.org> | 2013-03-14 19:53:31 +0100 |
commit | 203c8caca5a305b90fd0e69c965e503afe979354 (patch) | |
tree | 843956654a949dc64b7e4f758847820b432f0454 /src/se/leap/leapclient/ConfigurationWizard.java | |
parent | 929fa9a3b7621e0a956ed8d7beffb87ed7f16249 (diff) |
After downloading provider.json successfully, ConfigurationWizard now
can download eip-service.json and ca.crt without having the latter as a
predefined trusted certificate. It does not ask anything about trusting
the new certificate as far as selecting a custom provider means that the
user trusts that url.
Next step: make provider.json also downloadable from https address using
ca.cert not trusted.
Diffstat (limited to 'src/se/leap/leapclient/ConfigurationWizard.java')
-rw-r--r-- | src/se/leap/leapclient/ConfigurationWizard.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/se/leap/leapclient/ConfigurationWizard.java b/src/se/leap/leapclient/ConfigurationWizard.java index dcefb271..69e13f19 100644 --- a/src/se/leap/leapclient/ConfigurationWizard.java +++ b/src/se/leap/leapclient/ConfigurationWizard.java @@ -1,6 +1,7 @@ package se.leap.leapclient;
import java.io.IOException;
+import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.Iterator;
import java.util.Scanner;
@@ -63,6 +64,11 @@ public class ConfigurationWizard extends Activity loadPreseededProviders();
+ if(ConfigHelper.getKeystore() == null) {
+ InputStream keystore_input_stream = getResources().openRawResource(R.raw.leapkeystore);
+ ConfigHelper.getNewKeystore(keystore_input_stream);
+ }
+
// Only create our fragments if we're not restoring a saved instance
if ( savedInstanceState == null ){
// TODO Some welcome screen?
|