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 | 1c8e1f9adb41d69829886538e9b2b25a9aeb7bbb (patch) | |
tree | 90a37b04858799a40f16600f81edae0840f4a576 /src/de/blinkt/openvpn/ConfigConverter.java | |
parent | 5420d42b057ad6e0d606088fa9e0836824db8b14 (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); } } |