summaryrefslogtreecommitdiff
path: root/src/se/leap/bitmaskclient
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-09 19:27:57 +0100
commit4a28c438ac147854381a0be01889de9858218efe (patch)
tree665779227994eb9ed6d7819bd01480d25d4c32c6 /src/se/leap/bitmaskclient
parentb61c632cb90b87cc7b069f42f2b08928ee15a5d5 (diff)
CA cert saved correctly in SharedPreferences.
I/O error at login phase fixed.
Diffstat (limited to 'src/se/leap/bitmaskclient')
-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;