plugin-loader: Support a reload() callback for static features
This commit is contained in:
@@ -296,7 +296,7 @@ int main(int argc, char *argv[])
|
||||
PLUGIN_PROVIDE(CUSTOM, "kernel-ipsec"),
|
||||
};
|
||||
lib->plugins->add_static_features(lib->plugins, "tkm-backend", features,
|
||||
countof(features), TRUE);
|
||||
countof(features), TRUE, NULL, NULL);
|
||||
|
||||
if (!register_dh_mapping())
|
||||
{
|
||||
|
||||
@@ -159,7 +159,8 @@ int register_dh_mapping()
|
||||
}
|
||||
enumerator->destroy(enumerator);
|
||||
|
||||
lib->plugins->add_static_features(lib->plugins, "tkm-dh", f, countof(f), TRUE);
|
||||
lib->plugins->add_static_features(lib->plugins, "tkm-dh", f, countof(f),
|
||||
TRUE, NULL, NULL);
|
||||
|
||||
if (count > 0)
|
||||
{
|
||||
|
||||
@@ -64,7 +64,7 @@ static bool test_runner_init(bool init)
|
||||
PLUGIN_PROVIDE(CUSTOM, "kernel-ipsec"),
|
||||
};
|
||||
lib->plugins->add_static_features(lib->plugins, "tkm-tests", features,
|
||||
countof(features), TRUE);
|
||||
countof(features), TRUE, NULL, NULL);
|
||||
|
||||
lib->settings->set_int(lib->settings, "%s.dh_mapping.%d", 1,
|
||||
lib->ns, MODP_3072_BIT);
|
||||
|
||||
Reference in New Issue
Block a user