summaryrefslogtreecommitdiff
path: root/src/de/blinkt/openvpn/VpnProfile.java
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2013-08-23 12:35:11 +0200
committerArne Schwabe <arne@rfc2549.org>2013-08-23 12:35:11 +0200
commitf481f5508518f172a39c81829264df8686fe7872 (patch)
treebe54184cb59a856c4e666e52509e9d43f31d2e23 /src/de/blinkt/openvpn/VpnProfile.java
parent1f9cffc79e8d17b1c8b0bb28a7bf667a86f94bb9 (diff)
Fix TLS 1.2 and Android 4.1
Diffstat (limited to 'src/de/blinkt/openvpn/VpnProfile.java')
-rw-r--r--src/de/blinkt/openvpn/VpnProfile.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/de/blinkt/openvpn/VpnProfile.java b/src/de/blinkt/openvpn/VpnProfile.java
index a8c6825f..3a2f2bbf 100644
--- a/src/de/blinkt/openvpn/VpnProfile.java
+++ b/src/de/blinkt/openvpn/VpnProfile.java
@@ -838,6 +838,7 @@ public class VpnProfile implements Serializable {
int pkey = (Integer) getPkeyContext.invoke(opensslkey);
getPkeyContext.setAccessible(false);
+ // 112 with TLS 1.2 (172 back with 4.3), 36 with TLS 1.0
byte[] signed_bytes = NativeUtils.rsasign(data, pkey);
return Base64.encodeToString(signed_bytes, Base64.NO_WRAP);