configure IMC/IMV pairs as libimcv plugins
authorAndreas Steffen <andreas.steffen@strongswan.org>
Thu, 2 Jun 2011 08:24:31 +0000 (10:24 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Thu, 2 Jun 2011 08:24:31 +0000 (10:24 +0200)
src/libimcv/plugins/imc_test/imc_test.c
src/libimcv/plugins/imv_test/imv_test.c

index 8971427..3f7ee35 100644 (file)
@@ -91,7 +91,8 @@ static TNC_Result send_message(TNC_ConnectionID connection_id)
        char *command;
        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->set_noskip_flag(attr, TRUE);
        msg = pa_tnc_msg_create();
index 9324ebe..3717886 100644 (file)
@@ -76,7 +76,8 @@ TNC_Result TNC_IMV_NotifyConnectionChange(TNC_IMVID imv_id,
        switch (new_state)
        {
                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);
                        return imv_test->create_state(imv_test, state);
                case TNC_CONNECTION_STATE_DELETE: