diff options
author | Parménides GV <parmegv@sdf.org> | 2016-02-07 10:43:26 +0100 |
---|---|---|
committer | Parménides GV <parmegv@sdf.org> | 2016-02-07 10:43:26 +0100 |
commit | 433754368ff4d7339f09024960b5ed92d3452b7e (patch) | |
tree | 79aa4772f46785d0c1a61285777c530a46499ee4 /app/src/main/java/de/blinkt/openvpn/core/NativeUtils.java | |
parent | 64e71b3972c3d633f199058a94b5a2be0c7bb14e (diff) | |
parent | 8e67e4d2167f2508d7f069af4d69f0f2931844a7 (diff) |
Merge branch 'feature/update-ics-openvpn' into develop
Diffstat (limited to 'app/src/main/java/de/blinkt/openvpn/core/NativeUtils.java')
-rw-r--r-- | app/src/main/java/de/blinkt/openvpn/core/NativeUtils.java | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/app/src/main/java/de/blinkt/openvpn/core/NativeUtils.java b/app/src/main/java/de/blinkt/openvpn/core/NativeUtils.java index f67b7730..ea003d41 100644 --- a/app/src/main/java/de/blinkt/openvpn/core/NativeUtils.java +++ b/app/src/main/java/de/blinkt/openvpn/core/NativeUtils.java @@ -1,19 +1,26 @@ /* - * Copyright (c) 2012-2014 Arne Schwabe + * Copyright (c) 2012-2016 Arne Schwabe * Distributed under the GNU GPL v2 with additional terms. For full terms see the file doc/LICENSE.txt */ package de.blinkt.openvpn.core; +import android.os.Build; + import java.security.InvalidKeyException; public class NativeUtils { - public static native byte[] rsasign(byte[] input,int pkey) throws InvalidKeyException; - public static native String[] getIfconfig() throws IllegalArgumentException; - static native void jniclose(int fdint); - - static { - System.loadLibrary("stlport_shared"); - System.loadLibrary("opvpnutil"); - } + public static native byte[] rsasign(byte[] input, int pkey) throws InvalidKeyException; + + public static native String[] getIfconfig() throws IllegalArgumentException; + + static native void jniclose(int fdint); + + public static native String getNativeAPI(); + + static { + System.loadLibrary("opvpnutil"); + if (Build.VERSION.SDK_INT == Build.VERSION_CODES.JELLY_BEAN) + System.loadLibrary("jbcrypto"); + } } |