diff options
author | Arne Schwabe <arne@rfc2549.org> | 2013-03-07 23:40:30 +0100 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2013-03-07 23:40:30 +0100 |
commit | b38cae44de5aed8d436c19301c4fb4a390128569 (patch) | |
tree | 5cf342ab4f1b2baf33957ff25312b2f7e836c754 /src/de/blinkt/openvpn/ConfigParser.java | |
parent | 00cdc87d34a817de8a7473f3e41871621705d417 (diff) |
verify-x509-name not x509-verify-name
Diffstat (limited to 'src/de/blinkt/openvpn/ConfigParser.java')
-rw-r--r-- | src/de/blinkt/openvpn/ConfigParser.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/de/blinkt/openvpn/ConfigParser.java b/src/de/blinkt/openvpn/ConfigParser.java index 28608c9a..f16198ee 100644 --- a/src/de/blinkt/openvpn/ConfigParser.java +++ b/src/de/blinkt/openvpn/ConfigParser.java @@ -454,17 +454,17 @@ public class ConfigParser { np.mX509AuthType = VpnProfile.X509_VERIFY_TLSREMOTE_COMPAT_NOREMAPPING; } - Vector<String> x509verifyname = getOption("x509-verify-name",1,2); - if(x509verifyname!=null){ - np.mRemoteCN = x509verifyname.get(1); + Vector<String> verifyx509name = getOption("verify-x509-name",1,2); + if(verifyx509name!=null){ + np.mRemoteCN = verifyx509name.get(1); np.mCheckRemoteCN=true; - if(x509verifyname.size()>2) { - if (x509verifyname.get(2).equals("name")) + if(verifyx509name.size()>2) { + if (verifyx509name.get(2).equals("name")) np.mX509AuthType=VpnProfile.X509_VERIFY_TLSREMOTE_RDN; - else if (x509verifyname.get(2).equals("name-prefix")) + else if (verifyx509name.get(2).equals("name-prefix")) np.mX509AuthType=VpnProfile.X509_VERIFY_TLSREMOTE_RDN_PREFIX; else - throw new ConfigParseError("Unknown parameter to x509-verify-name: " + x509verifyname.get(2) ); + throw new ConfigParseError("Unknown parameter to x509-verify-name: " + verifyx509name.get(2) ); } else { np.mX509AuthType = VpnProfile.X509_VERIFY_TLSREMOTE_DN; } |