From 6ba818e5c9e1d7d50478cf161fe819597499477d Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Mon, 18 Mar 2013 17:20:30 +0100 Subject: Move native functions into own class. This way the Gui will not always load the native libraries when showing profiles and allows some GUI modifications without compiling ndk code --- src/de/blinkt/openvpn/core/NativeUtils.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/de/blinkt/openvpn/core/NativeUtils.java (limited to 'src/de/blinkt/openvpn/core/NativeUtils.java') diff --git a/src/de/blinkt/openvpn/core/NativeUtils.java b/src/de/blinkt/openvpn/core/NativeUtils.java new file mode 100644 index 00000000..42d0b583 --- /dev/null +++ b/src/de/blinkt/openvpn/core/NativeUtils.java @@ -0,0 +1,12 @@ +package de.blinkt.openvpn.core; + +import java.security.InvalidKeyException; + +public class NativeUtils { + public static native byte[] rsasign(byte[] input,int pkey) throws InvalidKeyException; + static native void jniclose(int fdint); + + static { + System.loadLibrary("opvpnutil"); + } +} -- cgit v1.2.3