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-12-10 18:12:07 +0100
commit6c46af29a115f930e5efa2411c2dbdc08a0702fe (patch)
tree665779227994eb9ed6d7819bd01480d25d4c32c6 /src/se/leap/bitmaskclient/ProviderAPI.java
parent50c88ad133c6bac39cb68332f1f56cd27f568205 (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;