09101a4c325d0e0d4d3353de75aca84bc47498e9
2 * Copyright (C) 2010 Andreas Steffen
3 * HSR Hochschule fuer Technik Rapperswil
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License as published by the
7 * Free Software Foundation; either version 2 of the License, or (at your
8 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16 #include "tnc_imv_plugin.h"
18 #include <libtnctncs.h>
22 METHOD(plugin_t
, destroy
, void,
23 tnc_imv_plugin_t
*this)
25 libtnc_tncs_Terminate();
32 plugin_t
*tnc_imv_plugin_create()
36 tnc_imv_plugin_t
*this;
44 tnc_config
= lib
->settings
->get_str(lib
->settings
,
45 "charon.plugins.tnc-imv.tnc_config", "/etc/tnc_config");
46 imv_count
= libtnc_imv_load_config(tnc_config
);
50 DBG1(DBG_IKE
, "TNC IMV initialization failed");
55 DBG1(DBG_IKE
, "loaded %d TNC IMV%s", imv_count
, (imv_count
> 1)?
"s":"");