summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main/jni/Android.mk2
-rw-r--r--main/jni/jbcrypto.cpp3
2 files changed, 4 insertions, 1 deletions
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 <jni.h>
+
+#include <internal/cryptlib.h>
#include <openssl/ssl.h>
#include <openssl/rsa.h>
#include <openssl/objects.h>
@@ -15,6 +17,7 @@
#include <android/log.h>
#include <openssl/err.h>
+#include <internal/evp_int.h>
extern "C" {
jbyteArray Java_de_blinkt_openvpn_core_NativeUtils_rsasign(JNIEnv* env, jclass, jbyteArray from, jint pkeyRef);