diff options
author | Arne Schwabe <arne@rfc2549.org> | 2012-07-15 16:16:57 +0200 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2012-07-15 16:16:57 +0200 |
commit | 3ab9e38d4473a7a34b820d80cc442ba6c3e30564 (patch) | |
tree | a2390c60dd00cda81c86f18fd4f29103124dc17e /jni/jniglue.c | |
parent | 77583ce01023073fec1cbce468c05b6e44097aa0 (diff) |
Add support for Certificates from Keystore under Jelly Beans (Thanks Kenny Root for the right pointers)
Move jniglue/minivpn files to more sensitive places
--HG--
rename : openvpn/src/openvpn/jniglue.c => jni/jniglue.c
rename : openvpn/src/openvpn/jniglue.h => jni/jniglue.h
rename : openvpn/src/openvpn/testmain.c => jni/minivpn.c
Diffstat (limited to 'jni/jniglue.c')
-rw-r--r-- | jni/jniglue.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/jni/jniglue.c b/jni/jniglue.c new file mode 100644 index 00000000..82b54d16 --- /dev/null +++ b/jni/jniglue.c @@ -0,0 +1,22 @@ +#include <jni.h> +#include <android/log.h> +#include <stdlib.h> +#include <setjmp.h> + +#include "jniglue.h" + +jint JNI_OnLoad(JavaVM *vm, void *reserved) { + __android_log_write(ANDROID_LOG_DEBUG,"openvpn", "Loading openvpn native library $id$ compiled on " __DATE__ " " __TIME__ ); + return JNI_VERSION_1_2; +} + + +void android_openvpn_log(int level,const char* prefix,const char* prefix_sep,const char* m1) +{ + __android_log_print(ANDROID_LOG_DEBUG,"openvpn","%s%s%s",prefix,prefix_sep,m1); +} + +void Java_de_blinkt_openvpn_OpenVpnManagementThread_jniclose(JNIEnv *env,jclass jo, jint fd) { + int ret = close(fd); +} + |