explicitly activate use of TNC headers
This commit is contained in:
@@ -21,12 +21,14 @@
|
||||
#ifndef IMC_MANAGER_H_
|
||||
#define IMC_MANAGER_H_
|
||||
|
||||
typedef struct imc_manager_t imc_manager_t;
|
||||
|
||||
#ifdef USE_TNC
|
||||
|
||||
#include "imc.h"
|
||||
|
||||
#include <library.h>
|
||||
|
||||
typedef struct imc_manager_t imc_manager_t;
|
||||
|
||||
/**
|
||||
* The IMC manager controls all IMC instances.
|
||||
*/
|
||||
@@ -121,4 +123,6 @@ struct imc_manager_t {
|
||||
void (*destroy)(imc_manager_t *this);
|
||||
};
|
||||
|
||||
#endif /* USE_TNC */
|
||||
|
||||
#endif /** IMC_MANAGER_H_ @}*/
|
||||
|
||||
@@ -21,13 +21,15 @@
|
||||
#ifndef IMV_MANAGER_H_
|
||||
#define IMV_MANAGER_H_
|
||||
|
||||
typedef struct imv_manager_t imv_manager_t;
|
||||
|
||||
#ifdef USE_TNC
|
||||
|
||||
#include "imv.h"
|
||||
#include "imv_recommendations.h"
|
||||
|
||||
#include <library.h>
|
||||
|
||||
typedef struct imv_manager_t imv_manager_t;
|
||||
|
||||
/**
|
||||
* The IMV manager controls all IMV instances.
|
||||
*/
|
||||
@@ -142,4 +144,6 @@ struct imv_manager_t {
|
||||
void (*destroy)(imv_manager_t *this);
|
||||
};
|
||||
|
||||
#endif /* USE_TNC */
|
||||
|
||||
#endif /** IMV_MANAGER_H_ @}*/
|
||||
|
||||
@@ -13,6 +13,8 @@
|
||||
* for more details.
|
||||
*/
|
||||
|
||||
#define USE_TNC
|
||||
|
||||
#include "tnccs_manager.h"
|
||||
|
||||
#include <tnc/imv/imv_recommendations.h>
|
||||
@@ -172,7 +174,7 @@ METHOD(tnccs_manager_t, create_instance, tnccs_t*,
|
||||
}
|
||||
|
||||
METHOD(tnccs_manager_t, create_connection, TNC_ConnectionID,
|
||||
private_tnccs_manager_t *this, tnccs_t *tnccs,
|
||||
private_tnccs_manager_t *this, tnccs_t *tnccs,
|
||||
tnccs_send_message_t send_message, bool* request_handshake_retry,
|
||||
recommendations_t **recs)
|
||||
{
|
||||
@@ -187,7 +189,7 @@ METHOD(tnccs_manager_t, create_connection, TNC_ConnectionID,
|
||||
/* we assume a TNC Server needing recommendations from IMVs */
|
||||
if (!charon->imvs)
|
||||
{
|
||||
DBG1(DBG_TNC, "no IMV manager available!");
|
||||
DBG1(DBG_TNC, "no IMV manager available!");
|
||||
free(entry);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -21,12 +21,14 @@
|
||||
#ifndef TNCCS_MANAGER_H_
|
||||
#define TNCCS_MANAGER_H_
|
||||
|
||||
typedef struct tnccs_manager_t tnccs_manager_t;
|
||||
|
||||
#ifdef USE_TNC
|
||||
|
||||
#include "tnccs.h"
|
||||
|
||||
#include <tnc/imv/imv_recommendations.h>
|
||||
|
||||
typedef struct tnccs_manager_t tnccs_manager_t;
|
||||
|
||||
/**
|
||||
* The TNCCS manager manages all TNCCS implementations and creates instances.
|
||||
*
|
||||
@@ -76,7 +78,7 @@ struct tnccs_manager_t {
|
||||
TNC_ConnectionID (*create_connection)(tnccs_manager_t *this, tnccs_t *tnccs,
|
||||
tnccs_send_message_t send_message,
|
||||
bool *request_handshake_retry,
|
||||
recommendations_t **recs);
|
||||
recommendations_t **recs);
|
||||
|
||||
/**
|
||||
* Remove a TNCCS connection using its connection ID.
|
||||
@@ -183,4 +185,6 @@ struct tnccs_manager_t {
|
||||
*/
|
||||
tnccs_manager_t *tnccs_manager_create();
|
||||
|
||||
#endif /* USE_TNC */
|
||||
|
||||
#endif /** TNCCS_MANAGER_H_ @}*/
|
||||
|
||||
Reference in New Issue
Block a user