From 016ffa320a620935f124f829a92de8a1b1e566cb Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Fri, 23 Jun 2017 15:05:50 +0200 Subject: Hack o rame to let jbcrypto hack work also with OpenSSL 1.1 --- main/jni/Android.mk | 2 +- main/jni/jbcrypto.cpp | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'main/jni') diff --git a/main/jni/Android.mk b/main/jni/Android.mk index 75c05bdc..ec88cb8e 100644 --- a/main/jni/Android.mk +++ b/main/jni/Android.mk @@ -60,7 +60,7 @@ include $(BUILD_SHARED_LIBRARY) include $(CLEAR_VARS) LOCAL_LDLIBS := -llog -lz LOCAL_CFLAGS = -LOCAL_C_INCLUDES := openssl/include openssl/crypto openssl +LOCAL_C_INCLUDES := openssl/include openssl/crypto openssl openssl/crypto/include LOCAL_SRC_FILES:= jbcrypto.cpp LOCAL_MODULE = jbcrypto LOCAL_SHARED_LIBRARIES := libcrypto diff --git a/main/jni/jbcrypto.cpp b/main/jni/jbcrypto.cpp index 2fd1262a..810a3bc7 100644 --- a/main/jni/jbcrypto.cpp +++ b/main/jni/jbcrypto.cpp @@ -8,6 +8,8 @@ #include + +#include #include #include #include @@ -15,6 +17,7 @@ #include #include +#include extern "C" { jbyteArray Java_de_blinkt_openvpn_core_NativeUtils_rsasign(JNIEnv* env, jclass, jbyteArray from, jint pkeyRef); -- cgit v1.2.3