aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/plugins/tnc_imc
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2010-10-09 00:35:45 +0200
committerAndreas Steffen <andreas.steffen@strongswan.org>2010-10-09 00:35:45 +0200
commite9ba435fe38edbf9f08c678fbcc1f8ae0515df17 (patch)
tree6ffce7c48fcc564b043cdaa18256c43c003e0a97 /src/libcharon/plugins/tnc_imc
parentbfba1fdc927f497c317320b7f7ba41356e267f15 (diff)
downloadstrongswan-e9ba435fe38edbf9f08c678fbcc1f8ae0515df17.tar.bz2
strongswan-e9ba435fe38edbf9f08c678fbcc1f8ae0515df17.tar.xz
revert to standard TNCC/TNCS Initialization function
Diffstat (limited to 'src/libcharon/plugins/tnc_imc')
-rw-r--r--src/libcharon/plugins/tnc_imc/tnc_imc_plugin.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/libcharon/plugins/tnc_imc/tnc_imc_plugin.c b/src/libcharon/plugins/tnc_imc/tnc_imc_plugin.c
index 43ba84410..cc1d246f0 100644
--- a/src/libcharon/plugins/tnc_imc/tnc_imc_plugin.c
+++ b/src/libcharon/plugins/tnc_imc/tnc_imc_plugin.c
@@ -32,7 +32,6 @@ METHOD(plugin_t, destroy, void,
plugin_t *tnc_imc_plugin_create()
{
char *tnc_config, *pref_lang;
- int imc_count;
tnc_imc_plugin_t *this;
INIT(this,
@@ -46,19 +45,12 @@ plugin_t *tnc_imc_plugin_create()
tnc_config = lib->settings->get_str(lib->settings,
"charon.plugins.tnc-imc.tnc_config", "/etc/tnc_config");
- imc_count = libtnc_imc_load_config(tnc_config);
- if (imc_count < 0)
+ if (libtnc_tncc_Initialize(tnc_config) != TNC_RESULT_SUCCESS)
{
free(this);
DBG1(DBG_IKE, "TNC IMC initialization failed");
return NULL;
}
- else
- {
- DBG1(DBG_IKE, "loaded %d TNC IMC%s", imc_count,
- (imc_count == 1) ? "":"s");
- libtnc_tncc_PreferredLanguage(pref_lang);
- }
return &this->plugin;
}