aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2012-08-17 13:55:44 +0200
committerTobias Brunner <tobias@strongswan.org>2012-08-17 13:55:44 +0200
commit91c0e0e3d9ccd1c1146e6cb4a7bc69c59a51e88e (patch)
tree67e5424fe3accf902931e30e4548738472884901
parent7ab348370ce072cf7a0af190f596059de0f20246 (diff)
downloadstrongswan-91c0e0e3d9ccd1c1146e6cb4a7bc69c59a51e88e.tar.bz2
strongswan-91c0e0e3d9ccd1c1146e6cb4a7bc69c59a51e88e.tar.xz
Enable build of eap-tls, eap-ttls and eap-peap on Android
-rw-r--r--src/libcharon/Android.mk20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/libcharon/Android.mk b/src/libcharon/Android.mk
index a4ac87182..08c51ed73 100644
--- a/src/libcharon/Android.mk
+++ b/src/libcharon/Android.mk
@@ -174,6 +174,26 @@ LOCAL_SRC_FILES += $(addprefix ../libsimaka/, \
)
endif
+LOCAL_SRC_FILES += $(call add_plugin, eap-tls)
+
+LOCAL_SRC_FILES += $(call add_plugin, eap-ttls)
+ifneq ($(call plugin_enabled, eap-ttls),)
+# for radius_message.h
+LOCAL_C_INCLUDES += $(LOCAL_PATH)/../libradius/
+endif
+
+LOCAL_SRC_FILES += $(call add_plugin, eap-peap)
+
+# adding libtls if any of the three plugins above is enabled
+ifneq ($(or $(call plugin_enabled, eap-tls), $(call plugin_enabled, eap-ttls), $(call plugin_enabled, eap-peap)),)
+LOCAL_C_INCLUDES += $(LOCAL_PATH)/../libtls/
+LOCAL_SRC_FILES += $(addprefix ../libtls/, \
+ tls_protection.c tls_compression.c tls_fragmentation.c tls_alert.c \
+ tls_crypto.c tls_prf.c tls_socket.c tls_eap.c tls_cache.c tls_peer.c \
+ tls_server.c tls.c \
+ )
+endif
+
LOCAL_SRC_FILES += $(call add_plugin, load-tester)
LOCAL_SRC_FILES += $(call add_plugin, socket-default)