separated tncif_names from standard TCG TNC header files

This commit is contained in:
Andreas Steffen
2011-06-06 20:36:58 +02:00
parent d8f7f2f004
commit 0eb23d7be2
11 changed files with 32 additions and 38 deletions
@@ -19,6 +19,7 @@
#include <tnc/imv/imv_manager.h> #include <tnc/imv/imv_manager.h>
#include <tncifimv.h> #include <tncifimv.h>
#include <tncif_names.h>
#include <debug.h> #include <debug.h>
#include <daemon.h> #include <daemon.h>
@@ -16,6 +16,7 @@
#include <daemon.h> #include <daemon.h>
#include <tncifimv.h> #include <tncifimv.h>
#include <tncif_names.h>
#include <tnc/imv/imv.h> #include <tnc/imv/imv.h>
#include <tnc/imv/imv_recommendations.h> #include <tnc/imv/imv_recommendations.h>
@@ -22,6 +22,8 @@
#include "messages/tnccs_reason_strings_msg.h" #include "messages/tnccs_reason_strings_msg.h"
#include "messages/tnccs_recommendation_msg.h" #include "messages/tnccs_recommendation_msg.h"
#include <tncif_names.h>
#include <daemon.h> #include <daemon.h>
#include <debug.h> #include <debug.h>
#include <threading/mutex.h> #include <threading/mutex.h>
@@ -26,6 +26,8 @@
#include "messages/pb_language_preference_msg.h" #include "messages/pb_language_preference_msg.h"
#include "state_machine/pb_tnc_state_machine.h" #include "state_machine/pb_tnc_state_machine.h"
#include <tncif_names.h>
#include <debug.h> #include <debug.h>
#include <daemon.h> #include <daemon.h>
#include <threading/mutex.h> #include <threading/mutex.h>
+2
View File
@@ -15,6 +15,8 @@
#include "imcv.h" #include "imcv.h"
#include "imc_agent.h" #include "imc_agent.h"
#include <tncif_names.h>
#include <debug.h> #include <debug.h>
#include <utils/linked_list.h> #include <utils/linked_list.h>
#include <threading/rwlock.h> #include <threading/rwlock.h>
+2
View File
@@ -15,6 +15,8 @@
#include "imcv.h" #include "imcv.h"
#include "imv_agent.h" #include "imv_agent.h"
#include <tncif_names.h>
#include <debug.h> #include <debug.h>
#include <utils/linked_list.h> #include <utils/linked_list.h>
#include <threading/rwlock.h> #include <threading/rwlock.h>
+1 -2
View File
@@ -2,5 +2,4 @@ INCLUDES = -I$(top_srcdir)/src/libstrongswan
noinst_LTLIBRARIES = libtncif.la noinst_LTLIBRARIES = libtncif.la
libtncif_la_SOURCES = tncif.h tncif.c tncifimc.h tncifimv.h tncifimv.c libtncif_la_SOURCES = tncif.h tncifimc.h tncifimv.h tncif_names.h tncif_names.c
-12
View File
@@ -48,19 +48,9 @@
* Feb 12, 2007 * Feb 12, 2007
*/ */
/**
* @defgroup tnc tnc
* @ingroup libcharon
*
* @defgroup tncif tncif
* @{ @ingroup tnc
*/
#ifndef TNCIF_H_ #ifndef TNCIF_H_
#define TNCIF_H_ #define TNCIF_H_
#include <library.h>
/* Basic Types */ /* Basic Types */
typedef unsigned long TNC_UInt32; typedef unsigned long TNC_UInt32;
typedef unsigned char *TNC_BufferReference; typedef unsigned char *TNC_BufferReference;
@@ -100,8 +90,6 @@ typedef TNC_UInt32 TNC_Result;
#define TNC_CONNECTION_STATE_ACCESS_NONE 4 #define TNC_CONNECTION_STATE_ACCESS_NONE 4
#define TNC_CONNECTION_STATE_DELETE 5 #define TNC_CONNECTION_STATE_DELETE 5
extern enum_name_t *TNC_Connection_State_names;
/* Vendor ID Values */ /* Vendor ID Values */
#define TNC_VENDORID_TCG 0 #define TNC_VENDORID_TCG 0
#define TNC_VENDORID_ANY ((TNC_VendorID) 0xffffff) #define TNC_VENDORID_ANY ((TNC_VendorID) 0xffffff)
@@ -13,7 +13,19 @@
* for more details. * for more details.
*/ */
#include "tncif.h"
#include "tncifimv.h" #include "tncifimv.h"
#include "tncif_names.h"
ENUM(TNC_Connection_State_names,
TNC_CONNECTION_STATE_CREATE, TNC_CONNECTION_STATE_DELETE,
"Create",
"Handshake",
"Allowed",
"Isolated",
"None",
"Delete",
);
ENUM(TNC_IMV_Action_Recommendation_names, ENUM(TNC_IMV_Action_Recommendation_names,
TNC_IMV_ACTION_RECOMMENDATION_ALLOW, TNC_IMV_ACTION_RECOMMENDATION_ALLOW,
@@ -33,4 +45,3 @@ ENUM(TNC_IMV_Evaluation_Result_names,
"error", "error",
"don't know" "don't know"
); );
@@ -1,6 +1,5 @@
/* /*
* Copyright (C) 2011 Andreas Steffen * Copyright (C) 2011 Andreas Steffen, HSR Hochschule fuer Technik Rapperswil
* HSR Hochschule fuer Technik Rapperswil
* *
* This program is free software; you can redistribute it and/or modify it * This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the * under the terms of the GNU General Public License as published by the
@@ -13,15 +12,13 @@
* for more details. * for more details.
*/ */
#include "tncif.h" #ifndef TNCIF_NAMES_H_
#define TNCIF_NAMES_H_
ENUM(TNC_Connection_State_names, #include <library.h>
TNC_CONNECTION_STATE_CREATE, TNC_CONNECTION_STATE_DELETE,
"Create",
"Handshake",
"Allowed",
"Isolated",
"None",
"Delete",
);
extern enum_name_t *TNC_Connection_State_names;
extern enum_name_t *TNC_IMV_Action_Recommendation_names;
extern enum_name_t *TNC_IMV_Evaluation_Result_names;
#endif /** TNCIF_NAME_H_ @}*/
-11
View File
@@ -42,18 +42,11 @@
* respective owners. * respective owners.
*/ */
/**
* @defgroup tncifimv tncifimv
* @{ @ingroup tnc
*/
#ifndef TNCIFIMV_H_ #ifndef TNCIFIMV_H_
#define TNCIFIMV_H_ #define TNCIFIMV_H_
#include "tncif.h" #include "tncif.h"
#include <library.h>
typedef TNC_UInt32 TNC_IMVID; typedef TNC_UInt32 TNC_IMVID;
typedef TNC_UInt32 TNC_IMV_Action_Recommendation; typedef TNC_UInt32 TNC_IMV_Action_Recommendation;
typedef TNC_UInt32 TNC_IMV_Evaluation_Result; typedef TNC_UInt32 TNC_IMV_Evaluation_Result;
@@ -147,8 +140,6 @@ typedef TNC_Result (*TNC_IMV_ProvideBindFunctionPointer)(
#define TNC_IMV_ACTION_RECOMMENDATION_ISOLATE 2 #define TNC_IMV_ACTION_RECOMMENDATION_ISOLATE 2
#define TNC_IMV_ACTION_RECOMMENDATION_NO_RECOMMENDATION 3 #define TNC_IMV_ACTION_RECOMMENDATION_NO_RECOMMENDATION 3
extern enum_name_t *TNC_IMV_Action_Recommendation_names;
/* IMV Evaluation Result Values */ /* IMV Evaluation Result Values */
#define TNC_IMV_EVALUATION_RESULT_COMPLIANT 0 #define TNC_IMV_EVALUATION_RESULT_COMPLIANT 0
@@ -157,8 +148,6 @@ extern enum_name_t *TNC_IMV_Action_Recommendation_names;
#define TNC_IMV_EVALUATION_RESULT_ERROR 3 #define TNC_IMV_EVALUATION_RESULT_ERROR 3
#define TNC_IMV_EVALUATION_RESULT_DONT_KNOW 4 #define TNC_IMV_EVALUATION_RESULT_DONT_KNOW 4
extern enum_name_t *TNC_IMV_Evaluation_Result_names;
/* Message Attribute ID Values */ /* Message Attribute ID Values */
#define TNC_ATTRIBUTEID_PREFERRED_LANGUAGE ((TNC_AttributeID) 0x00000001) #define TNC_ATTRIBUTEID_PREFERRED_LANGUAGE ((TNC_AttributeID) 0x00000001)