starter: Remove START_CHARON compile flag

Since the removal of pluto this is quite superfluous. The flag itself
might be useful to avoid starting charon if the executable does not
exist for some reason (e.g. if DAEMON_NAME is incorrect).
This commit is contained in:
Tobias Brunner 2015-05-05 17:50:27 +02:00
parent 9b4f6cfa23
commit 5923abc6bf
3 changed files with 2 additions and 13 deletions

View File

@ -19,7 +19,7 @@ LOCAL_C_INCLUDES += \
$(strongswan_PATH)/src/starter \
$(strongswan_PATH)/src/stroke
LOCAL_CFLAGS := $(strongswan_CFLAGS) -DSTART_CHARON \
LOCAL_CFLAGS := $(strongswan_CFLAGS) \
-DIPSEC_SCRIPT='"ipsec"' \
-DPLUGINS='"$(strongswan_STARTER_PLUGINS)"'

View File

@ -40,10 +40,6 @@ EXTRA_DIST = keywords.txt ipsec.conf Android.mk
MAINTAINERCLEANFILES = keywords.c
BUILT_SOURCES = keywords.c parser/parser.h
if USE_CHARON
AM_CPPFLAGS += -DSTART_CHARON
endif
if USE_LOAD_WARNING
AM_CPPFLAGS += -DLOAD_WARNING
endif

View File

@ -149,12 +149,8 @@ static void load_setup(starter_config_t *cfg, conf_parser_t *parser)
dict->destroy(dict);
/* verify the executables are actually available */
#ifdef START_CHARON
cfg->setup.charonstart = cfg->setup.charonstart &&
daemon_exists(daemon_name, cmd);
#else
cfg->setup.charonstart = FALSE;
#endif
}
/*
@ -722,12 +718,9 @@ starter_config_t* confread_load(const char *file)
INIT(cfg,
.setup = {
.uniqueids = TRUE,
.charonstart = TRUE,
}
);
#ifdef START_CHARON
cfg->setup.charonstart = TRUE;
#endif
/* load config setup section */
load_setup(cfg, parser);