Enable socket-raw on Android if pluto is enabled.

This commit is contained in:
Tobias Brunner 2011-10-13 19:25:06 +02:00
parent 03ef4e3461
commit 0ad58f013a
2 changed files with 10 additions and 0 deletions

View File

@ -1,15 +1,23 @@
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
# whether pluto (IKEv1 daemon) is built. charon (IKEv2) is always enabled
strongswan_BUILD_PLUTO := true
# this is the list of plugins that are built into libstrongswan and charon
# also these plugins are loaded by default (if not changed in strongswan.conf)
strongswan_CHARON_PLUGINS := openssl fips-prf random pubkey pkcs1 \
pem xcbc hmac kernel-netlink socket-default android \
stroke eap-identity eap-mschapv2 eap-md5
ifneq ($(strongswan_BUILD_PLUTO),)
# if both daemons are enabled we use raw sockets in charon
strongswan_CHARON_PLUGINS := $(subst socket-default,socket-raw, \
$(strongswan_CHARON_PLUGINS))
# plugins loaded by pluto
strongswan_PLUTO_PLUGINS := openssl fips-prf random pubkey pkcs1 \
pem xcbc hmac kernel-netlink xauth
endif
# list of all plugins - used to enable them with the function below
strongswan_PLUGINS := $(sort $(strongswan_CHARON_PLUGINS) \

View File

@ -147,6 +147,8 @@ LOCAL_SRC_FILES += $(call add_plugin, socket-default)
LOCAL_SRC_FILES += $(call add_plugin, socket-dynamic)
LOCAL_SRC_FILES += $(call add_plugin, socket-raw)
LOCAL_SRC_FILES += $(call add_plugin, stroke)
ifneq ($(call plugin_enabled, stroke),)
LOCAL_C_INCLUDES += $(LOCAL_PATH)/../stroke/