summaryrefslogtreecommitdiff
path: root/src/de/blinkt/openvpn/core/NativeUtils.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/de/blinkt/openvpn/core/NativeUtils.java')
-rw-r--r--src/de/blinkt/openvpn/core/NativeUtils.java12
1 files changed, 12 insertions, 0 deletions
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");
+ }
+}