summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2016-03-03 13:05:02 +0100
committerArne Schwabe <arne@rfc2549.org>2016-03-03 13:05:02 +0100
commit814706a0dede2362a62f254fd76a4ffab1ffb3da (patch)
tree95522bbed4b896e913d5cd4e6f890f322f167dec /main
parentc50794a90e9eff1a008b37309f093239c96f01e2 (diff)
Fix ca check in config (closes #453)
Diffstat (limited to 'main')
-rw-r--r--main/src/main/java/de/blinkt/openvpn/VpnProfile.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/main/java/de/blinkt/openvpn/VpnProfile.java b/main/src/main/java/de/blinkt/openvpn/VpnProfile.java
index 9d4e8588..3f87bf8b 100644
--- a/main/src/main/java/de/blinkt/openvpn/VpnProfile.java
+++ b/main/src/main/java/de/blinkt/openvpn/VpnProfile.java
@@ -853,7 +853,7 @@ public class VpnProfile implements Serializable, Cloneable {
&& (TextUtils.isEmpty(mClientCertFilename) || TextUtils.isEmpty(mClientKeyFilename)))
return R.string.missing_certificates;
- if (!(mAuthenticationType == TYPE_KEYSTORE || mAuthenticationType == TYPE_USERPASS_KEYSTORE)
+ if ((mAuthenticationType == TYPE_CERTIFICATES || mAuthenticationType == TYPE_USERPASS_CERTIFICATES)
&& TextUtils.isEmpty(mCaFilename))
return R.string.missing_ca_certificate;