mirror of
https://github.com/schwabe/ics-openvpn.git
synced 2024-09-20 12:02:28 +02:00
Fix verify-x509-name parsing
This commit is contained in:
parent
29a654d631
commit
ad494bd239
@ -554,10 +554,12 @@ public class ConfigParser {
|
||||
if (verifyx509name.size() > 2) {
|
||||
if (verifyx509name.get(2).equals("name"))
|
||||
np.mX509AuthType = VpnProfile.X509_VERIFY_TLSREMOTE_RDN;
|
||||
else if (verifyx509name.get(2).equals("subject"))
|
||||
np.mX509AuthType = VpnProfile.X509_VERIFY_TLSREMOTE_DN;
|
||||
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: " + verifyx509name.get(2));
|
||||
throw new ConfigParseError("Unknown parameter to verify-x509-name: " + verifyx509name.get(2));
|
||||
} else {
|
||||
np.mX509AuthType = VpnProfile.X509_VERIFY_TLSREMOTE_DN;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user