diff options
author | Arne Schwabe <arne@rfc2549.org> | 2016-03-03 13:05:02 +0100 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2016-03-03 13:05:02 +0100 |
commit | 814706a0dede2362a62f254fd76a4ffab1ffb3da (patch) | |
tree | 95522bbed4b896e913d5cd4e6f890f322f167dec | |
parent | c50794a90e9eff1a008b37309f093239c96f01e2 (diff) |
Fix ca check in config (closes #453)
-rw-r--r-- | main/src/main/java/de/blinkt/openvpn/VpnProfile.java | 2 |
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; |