diff options
author | schwabe <devnull@localhost> | 2012-04-29 16:05:44 +0200 |
---|---|---|
committer | schwabe <devnull@localhost> | 2012-04-29 16:05:44 +0200 |
commit | ec65a38af4edc986f7f1a90e446cc8713c9ca05e (patch) | |
tree | e3c5d76eb4b2b10cdeefbadedb6e524e369e79f6 /src/de/blinkt/openvpn/VpnProfile.java | |
parent | 97609f39a5ec3a4f332bd7eec79aae91cd7dd56a (diff) |
Version 0.4 had a User/password and static keys options that will not work. Fix that
Diffstat (limited to 'src/de/blinkt/openvpn/VpnProfile.java')
-rw-r--r-- | src/de/blinkt/openvpn/VpnProfile.java | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/src/de/blinkt/openvpn/VpnProfile.java b/src/de/blinkt/openvpn/VpnProfile.java index 2df4ec39..201bc111 100644 --- a/src/de/blinkt/openvpn/VpnProfile.java +++ b/src/de/blinkt/openvpn/VpnProfile.java @@ -70,8 +70,8 @@ public class VpnProfile implements Serializable{ public boolean mCheckRemoteCN=false; public boolean mExpectTLSCert=true; public String mRemoteCN=""; - private String mPassword; - private String mUsername; + public String mPassword=""; + public String mUsername=""; public boolean mRoutenopull=false; @@ -225,6 +225,13 @@ public class VpnProfile implements Serializable{ cfg+="\n"; cfg+="management-query-passwords\n"; break; + case VpnProfile.TYPE_USERPASS: + cfg+="ca " + mCaFilename + "\n"; + cfg+="auth-user-pass\n"; + cfg+="management-query-passwords\n"; + break; + + } @@ -233,7 +240,10 @@ public class VpnProfile implements Serializable{ } if(mUseTLSAuth) { - cfg+="tls-auth "; + if(mAuthenticationType==TYPE_STATICKEYS) + cfg+="static "; + else + cfg+="tls-auth "; cfg+=mTLSAuthFilename; cfg+=" "; cfg+= mTLSAuthDirection; |