diff options
author | Arne Schwabe <arne@rfc2549.org> | 2012-12-27 19:47:35 +0100 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2012-12-27 19:47:35 +0100 |
commit | bbbefe26e6c160bca867dce3188b3679f0fcf2fc (patch) | |
tree | 8fd78a979459a78c9fad50043366e1d1d890dd68 /src/de/blinkt/openvpn/ConfigConverter.java | |
parent | 501b58833bd95950e871e83ca21b34fd72991228 (diff) |
Make changes needed to provide an external API
Diffstat (limited to 'src/de/blinkt/openvpn/ConfigConverter.java')
-rw-r--r-- | src/de/blinkt/openvpn/ConfigConverter.java | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/src/de/blinkt/openvpn/ConfigConverter.java b/src/de/blinkt/openvpn/ConfigConverter.java index 40aa24e0..5065436c 100644 --- a/src/de/blinkt/openvpn/ConfigConverter.java +++ b/src/de/blinkt/openvpn/ConfigConverter.java @@ -350,17 +350,9 @@ public class ConfigConverter extends ListActivity { mResult.mPKCS12Filename = embedFile(mResult.mPKCS12Filename,true); - if(mResult.mUsername != null && !mResult.mUsername.equals("")){ - String data =embedFile(mResult.mUsername); - mResult.mUsername=null; - if(data!=null) { - data = data.replace(VpnProfile.INLINE_TAG, ""); - String[] parts = data.split("\n"); - if(parts.length >= 2) { - mResult.mUsername=parts[0]; - mResult.mPassword=parts[1]; - } - } + if(mResult.mUsername == null && mResult.mPassword != null ){ + String data =embedFile(mResult.mPassword); + ConfigParser.useEmbbedUserAuth(mResult, data); } } |