configure IMC/IMV pairs as libimcv plugins
This commit is contained in:
@@ -91,7 +91,8 @@ static TNC_Result send_message(TNC_ConnectionID connection_id)
|
|||||||
char *command;
|
char *command;
|
||||||
TNC_Result result;
|
TNC_Result result;
|
||||||
|
|
||||||
command = lib->settings->get_str(lib->settings, "imc-test.command", "none");
|
command = lib->settings->get_str(lib->settings,
|
||||||
|
"libimcv.plugins.imc-test.command", "none");
|
||||||
attr = ita_attr_command_create(command);
|
attr = ita_attr_command_create(command);
|
||||||
attr->set_noskip_flag(attr, TRUE);
|
attr->set_noskip_flag(attr, TRUE);
|
||||||
msg = pa_tnc_msg_create();
|
msg = pa_tnc_msg_create();
|
||||||
|
|||||||
@@ -76,7 +76,8 @@ TNC_Result TNC_IMV_NotifyConnectionChange(TNC_IMVID imv_id,
|
|||||||
switch (new_state)
|
switch (new_state)
|
||||||
{
|
{
|
||||||
case TNC_CONNECTION_STATE_CREATE:
|
case TNC_CONNECTION_STATE_CREATE:
|
||||||
rounds = lib->settings->get_int(lib->settings, "imv-test.rounds", 0);
|
rounds = lib->settings->get_int(lib->settings,
|
||||||
|
"libimcv.plugins.imv-test.rounds", 0);
|
||||||
state = imv_test_state_create(connection_id, rounds);
|
state = imv_test_state_create(connection_id, rounds);
|
||||||
return imv_test->create_state(imv_test, state);
|
return imv_test->create_state(imv_test, state);
|
||||||
case TNC_CONNECTION_STATE_DELETE:
|
case TNC_CONNECTION_STATE_DELETE:
|
||||||
|
|||||||
Reference in New Issue
Block a user