android: Use static version of libcrypto

System.loadLibrary() searches in system directories first (at least in
recent releases), that is, our own build wouldn't actually get used.
This commit is contained in:
Tobias Brunner
2014-04-25 14:26:31 +02:00
parent acc042fa7b
commit 8064764070
2 changed files with 1 additions and 2 deletions
@@ -660,7 +660,6 @@ public class CharonVpnService extends VpnService implements Runnable
*/
static
{
System.loadLibrary("crypto");
System.loadLibrary("strongswan");
if (MainActivity.USE_BYOD)
+1 -1
View File
@@ -70,7 +70,7 @@ LOCAL_SRC_FILES += $(call add_plugin, nonce)
LOCAL_SRC_FILES += $(call add_plugin, openssl)
ifneq ($(call plugin_enabled, openssl),)
LOCAL_C_INCLUDES += $(openssl_PATH)
LOCAL_SHARED_LIBRARIES += libcrypto
LOCAL_STATIC_LIBRARIES += libcrypto_static
endif
LOCAL_SRC_FILES += $(call add_plugin, pem)