summaryrefslogtreecommitdiff
path: root/src/de/blinkt/openvpn/VpnProfile.java
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2012-06-30 11:38:31 +0200
committerArne Schwabe <arne@rfc2549.org>2012-06-30 11:38:31 +0200
commit991d5e1d3f0bf8a1daad3ed41bff9489ffb17fe2 (patch)
tree64add595d65a5e0aca4e51b8383a8e4e5bba488d /src/de/blinkt/openvpn/VpnProfile.java
parent78172a10165a969b8c002b6bdcf9dc47fa6cd5f3 (diff)
Relase version 0.5.9v0.5.9
Diffstat (limited to 'src/de/blinkt/openvpn/VpnProfile.java')
-rw-r--r--src/de/blinkt/openvpn/VpnProfile.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/de/blinkt/openvpn/VpnProfile.java b/src/de/blinkt/openvpn/VpnProfile.java
index 8b758b3b..54eaae88 100644
--- a/src/de/blinkt/openvpn/VpnProfile.java
+++ b/src/de/blinkt/openvpn/VpnProfile.java
@@ -24,6 +24,7 @@ import org.spongycastle.util.io.pem.PemWriter;
import android.content.Context;
import android.content.Intent;
import android.content.pm.ApplicationInfo;
+import android.os.Build;
import android.security.KeyChain;
import android.security.KeyChainException;
@@ -551,8 +552,12 @@ public class VpnProfile implements Serializable{
//! Return an error if somethign is wrong
int checkProfile() {
- if((mAuthenticationType==TYPE_KEYSTORE || mAuthenticationType==TYPE_USERPASS_KEYSTORE) && mAlias==null)
- return R.string.no_keystore_cert_selected;
+ if(mAuthenticationType==TYPE_KEYSTORE || mAuthenticationType==TYPE_USERPASS_KEYSTORE) {
+ if(mAlias==null)
+ return R.string.no_keystore_cert_selected;
+ if(Build.VERSION.SDK_INT == 16)
+ return R.string.keychain_jellybeans;
+ }
if(!mUsePull) {
if(mIPv4Address == null || cidrToIPAndNetmask(mIPv4Address) == null)