From: Tobias Brunner Date: Fri, 17 Aug 2012 11:55:44 +0000 (+0200) Subject: Enable build of eap-tls, eap-ttls and eap-peap on Android X-Git-Tag: 5.0.1~182 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=91c0e0e3d9ccd1c1146e6cb4a7bc69c59a51e88e;p=thirdparty%2Fstrongswan.git Enable build of eap-tls, eap-ttls and eap-peap on Android --- diff --git a/src/libcharon/Android.mk b/src/libcharon/Android.mk index a4ac871822..08c51ed738 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)