aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2011-06-06 20:36:58 +0200
committerAndreas Steffen <andreas.steffen@strongswan.org>2011-06-06 20:36:58 +0200
commit0eb23d7be28213ecdc0cd1103ff94333cd6c0875 (patch)
tree2a9a65da009863d97f934bda15d504ba8f5b8995
parentd8f7f2f004cb71a46cad4282a81e91daa6ef3ea8 (diff)
downloadstrongswan-0eb23d7be28213ecdc0cd1103ff94333cd6c0875.tar.bz2
strongswan-0eb23d7be28213ecdc0cd1103ff94333cd6c0875.tar.xz
separated tncif_names from standard TCG TNC header files
-rw-r--r--src/libcharon/plugins/tnc_imv/tnc_imv_manager.c1
-rw-r--r--src/libcharon/plugins/tnc_imv/tnc_imv_recommendations.c1
-rw-r--r--src/libcharon/plugins/tnccs_11/tnccs_11.c2
-rw-r--r--src/libcharon/plugins/tnccs_20/tnccs_20.c2
-rw-r--r--src/libimcv/imc/imc_agent.c2
-rw-r--r--src/libimcv/imv/imv_agent.c2
-rw-r--r--src/libtncif/Makefile.am3
-rw-r--r--src/libtncif/tncif.h12
-rw-r--r--src/libtncif/tncif_names.c (renamed from src/libtncif/tncifimv.c)13
-rw-r--r--src/libtncif/tncif_names.h (renamed from src/libtncif/tncif.c)21
-rw-r--r--src/libtncif/tncifimv.h11
11 files changed, 32 insertions, 38 deletions
diff --git a/src/libcharon/plugins/tnc_imv/tnc_imv_manager.c b/src/libcharon/plugins/tnc_imv/tnc_imv_manager.c
index 28d7f735f..971e80a93 100644
--- a/src/libcharon/plugins/tnc_imv/tnc_imv_manager.c
+++ b/src/libcharon/plugins/tnc_imv/tnc_imv_manager.c
@@ -19,6 +19,7 @@
#include <tnc/imv/imv_manager.h>
#include <tncifimv.h>
+#include <tncif_names.h>
#include <debug.h>
#include <daemon.h>
diff --git a/src/libcharon/plugins/tnc_imv/tnc_imv_recommendations.c b/src/libcharon/plugins/tnc_imv/tnc_imv_recommendations.c
index 960377957..3459619cd 100644
--- a/src/libcharon/plugins/tnc_imv/tnc_imv_recommendations.c
+++ b/src/libcharon/plugins/tnc_imv/tnc_imv_recommendations.c
@@ -16,6 +16,7 @@
#include <daemon.h>
#include <tncifimv.h>
+#include <tncif_names.h>
#include <tnc/imv/imv.h>
#include <tnc/imv/imv_recommendations.h>
diff --git a/src/libcharon/plugins/tnccs_11/tnccs_11.c b/src/libcharon/plugins/tnccs_11/tnccs_11.c
index ed2576448..ab2fe9b71 100644
--- a/src/libcharon/plugins/tnccs_11/tnccs_11.c
+++ b/src/libcharon/plugins/tnccs_11/tnccs_11.c
@@ -22,6 +22,8 @@
#include "messages/tnccs_reason_strings_msg.h"
#include "messages/tnccs_recommendation_msg.h"
+#include <tncif_names.h>
+
#include <daemon.h>
#include <debug.h>
#include <threading/mutex.h>
diff --git a/src/libcharon/plugins/tnccs_20/tnccs_20.c b/src/libcharon/plugins/tnccs_20/tnccs_20.c
index cc81b967c..ef4a9f39b 100644
--- a/src/libcharon/plugins/tnccs_20/tnccs_20.c
+++ b/src/libcharon/plugins/tnccs_20/tnccs_20.c
@@ -26,6 +26,8 @@
#include "messages/pb_language_preference_msg.h"
#include "state_machine/pb_tnc_state_machine.h"
+#include <tncif_names.h>
+
#include <debug.h>
#include <daemon.h>
#include <threading/mutex.h>
diff --git a/src/libimcv/imc/imc_agent.c b/src/libimcv/imc/imc_agent.c
index 17c656d00..a19e7ed66 100644
--- a/src/libimcv/imc/imc_agent.c
+++ b/src/libimcv/imc/imc_agent.c
@@ -15,6 +15,8 @@
#include "imcv.h"
#include "imc_agent.h"
+#include <tncif_names.h>
+
#include <debug.h>
#include <utils/linked_list.h>
#include <threading/rwlock.h>
diff --git a/src/libimcv/imv/imv_agent.c b/src/libimcv/imv/imv_agent.c
index 72b0d43cf..2df4fea5c 100644
--- a/src/libimcv/imv/imv_agent.c
+++ b/src/libimcv/imv/imv_agent.c
@@ -15,6 +15,8 @@
#include "imcv.h"
#include "imv_agent.h"
+#include <tncif_names.h>
+
#include <debug.h>
#include <utils/linked_list.h>
#include <threading/rwlock.h>
diff --git a/src/libtncif/Makefile.am b/src/libtncif/Makefile.am
index 689f509fa..706556c2d 100644
--- a/src/libtncif/Makefile.am
+++ b/src/libtncif/Makefile.am
@@ -2,5 +2,4 @@ INCLUDES = -I$(top_srcdir)/src/libstrongswan
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
diff --git a/src/libtncif/tncif.h b/src/libtncif/tncif.h
index 42a0232c7..3a889962e 100644
--- a/src/libtncif/tncif.h
+++ b/src/libtncif/tncif.h
@@ -48,19 +48,9 @@
* Feb 12, 2007
*/
-/**
- * @defgroup tnc tnc
- * @ingroup libcharon
- *
- * @defgroup tncif tncif
- * @{ @ingroup tnc
- */
-
#ifndef TNCIF_H_
#define TNCIF_H_
-#include <library.h>
-
/* Basic Types */
typedef unsigned long TNC_UInt32;
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_DELETE 5
-extern enum_name_t *TNC_Connection_State_names;
-
/* Vendor ID Values */
#define TNC_VENDORID_TCG 0
#define TNC_VENDORID_ANY ((TNC_VendorID) 0xffffff)
diff --git a/src/libtncif/tncifimv.c b/src/libtncif/tncif_names.c
index fbfd56566..c108776ec 100644
--- a/src/libtncif/tncifimv.c
+++ b/src/libtncif/tncif_names.c
@@ -13,7 +13,19 @@
* for more details.
*/
+#include "tncif.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,
TNC_IMV_ACTION_RECOMMENDATION_ALLOW,
@@ -33,4 +45,3 @@ ENUM(TNC_IMV_Evaluation_Result_names,
"error",
"don't know"
);
-
diff --git a/src/libtncif/tncif.c b/src/libtncif/tncif_names.h
index b195685a3..a7c9e7be3 100644
--- a/src/libtncif/tncif.c
+++ b/src/libtncif/tncif_names.h
@@ -1,6 +1,5 @@
/*
- * Copyright (C) 2011 Andreas Steffen
- * HSR Hochschule fuer Technik Rapperswil
+ * Copyright (C) 2011 Andreas Steffen, HSR Hochschule fuer Technik Rapperswil
*
* 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
@@ -13,15 +12,13 @@
* for more details.
*/
-#include "tncif.h"
+#ifndef TNCIF_NAMES_H_
+#define TNCIF_NAMES_H_
-ENUM(TNC_Connection_State_names,
- TNC_CONNECTION_STATE_CREATE, TNC_CONNECTION_STATE_DELETE,
- "Create",
- "Handshake",
- "Allowed",
- "Isolated",
- "None",
- "Delete",
-);
+#include <library.h>
+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_ @}*/
diff --git a/src/libtncif/tncifimv.h b/src/libtncif/tncifimv.h
index 4ec101337..7a2394c06 100644
--- a/src/libtncif/tncifimv.h
+++ b/src/libtncif/tncifimv.h
@@ -42,18 +42,11 @@
* respective owners.
*/
-/**
- * @defgroup tncifimv tncifimv
- * @{ @ingroup tnc
- */
-
#ifndef TNCIFIMV_H_
#define TNCIFIMV_H_
#include "tncif.h"
-#include <library.h>
-
typedef TNC_UInt32 TNC_IMVID;
typedef TNC_UInt32 TNC_IMV_Action_Recommendation;
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_NO_RECOMMENDATION 3
-extern enum_name_t *TNC_IMV_Action_Recommendation_names;
-
/* IMV Evaluation Result Values */
#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_DONT_KNOW 4
-extern enum_name_t *TNC_IMV_Evaluation_Result_names;
-
/* Message Attribute ID Values */
#define TNC_ATTRIBUTEID_PREFERRED_LANGUAGE ((TNC_AttributeID) 0x00000001)