aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/charon/plugins/load_tester/load_tester_plugin.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/charon/plugins/load_tester/load_tester_plugin.c b/src/charon/plugins/load_tester/load_tester_plugin.c
index 257c7451b..1f6cbf289 100644
--- a/src/charon/plugins/load_tester/load_tester_plugin.c
+++ b/src/charon/plugins/load_tester/load_tester_plugin.c
@@ -176,9 +176,17 @@ static void destroy(private_load_tester_plugin_t *this)
*/
plugin_t *plugin_create()
{
- private_load_tester_plugin_t *this = malloc_thing(private_load_tester_plugin_t);
+ private_load_tester_plugin_t *this;
int i;
+ if (!lib->settings->get_bool(lib->settings,
+ "charon.plugins.load_tester.enable", FALSE))
+ {
+ DBG1(DBG_CFG, "disabling load-tester plugin, not configured");
+ return NULL;
+ }
+
+ this = malloc_thing(private_load_tester_plugin_t);
this->public.plugin.destroy = (void(*)(plugin_t*))destroy;
lib->crypto->add_dh(lib->crypto, MODP_NULL,