diff options
author | Arne Schwabe <arne@rfc2549.org> | 2014-02-11 23:36:48 +0100 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2014-02-11 23:36:48 +0100 |
commit | c373af42b1a75b0f23c2f0edbf196dfbb1ef0a0e (patch) | |
tree | 1a6957889611f16974de15418ef0257e9f1ba90d /src/de/blinkt/openvpn/core/X509Utils.java | |
parent | 3044e321058be2a7b860a7c10c8efa49afabfcb2 (diff) |
Rework and fix config import
Diffstat (limited to 'src/de/blinkt/openvpn/core/X509Utils.java')
-rw-r--r-- | src/de/blinkt/openvpn/core/X509Utils.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/de/blinkt/openvpn/core/X509Utils.java b/src/de/blinkt/openvpn/core/X509Utils.java index 5781cbf5..da1e4ed5 100644 --- a/src/de/blinkt/openvpn/core/X509Utils.java +++ b/src/de/blinkt/openvpn/core/X509Utils.java @@ -25,7 +25,7 @@ public class X509Utils { InputStream inStream; - if(certfilename.startsWith(VpnProfile.INLINE_TAG)) { + if(VpnProfile.isEmbedded(certfilename)) { // The java certifcate reader is ... kind of stupid // It does NOT ignore chars before the --BEGIN ... int subIndex = certfilename.indexOf("-----BEGIN CERTIFICATE-----"); @@ -45,8 +45,8 @@ public class X509Utils { Reader inStream; - if(keyfilename.startsWith(VpnProfile.INLINE_TAG)) - inStream = new StringReader(keyfilename.replace(VpnProfile.INLINE_TAG,"")); + if(VpnProfile.isEmbedded(keyfilename)) + inStream = new StringReader(VpnProfile.getEmbeddedContent(keyfilename)); else inStream = new FileReader(new File(keyfilename)); |