summaryrefslogtreecommitdiff
path: root/src/se/leap/bitmaskclient/ProviderAPI.java
diff options
context:
space:
mode:
authorParménides GV <parmegv@sdf.org>2013-10-18 08:56:00 +0200
committerParménides GV <parmegv@sdf.org>2013-11-19 17:58:24 +0100
commita28b1b8514f116e7053b553b80c10c22676b45d8 (patch)
treeae92de49767dffbbf5efca3d5fd6cc78a45e43b9 /src/se/leap/bitmaskclient/ProviderAPI.java
parenta5d29e68e49576ebb71c3c887fba39a367730b58 (diff)
CA cert saved correctly in SharedPreferences.
I/O error at login phase fixed.
Diffstat (limited to 'src/se/leap/bitmaskclient/ProviderAPI.java')
-rw-r--r--src/se/leap/bitmaskclient/ProviderAPI.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/se/leap/bitmaskclient/ProviderAPI.java b/src/se/leap/bitmaskclient/ProviderAPI.java
index 27081df2..b23bdc7f 100644
--- a/src/se/leap/bitmaskclient/ProviderAPI.java
+++ b/src/se/leap/bitmaskclient/ProviderAPI.java
@@ -439,7 +439,7 @@ public class ProviderAPI extends IntentService {
private boolean downloadCACert(String provider_main_url, boolean danger_on) {
String cert_string = downloadWithCommercialCA(provider_main_url + "/ca.crt", danger_on);
if(validCertificate(cert_string))
- ConfigHelper.saveSharedPref(Provider.CA_CERT, "-----BEGIN CERTIFICATE-----\n"+cert_string+"-----END CERTIFICATE-----");
+ ConfigHelper.saveSharedPref(Provider.CA_CERT, cert_string);
else
return false;