#include <tnc/imv/imv_manager.h>
#include <tncifimv.h>
+#include <tncif_names.h>
#include <debug.h>
#include <daemon.h>
#include <daemon.h>
#include <tncifimv.h>
+#include <tncif_names.h>
#include <tnc/imv/imv.h>
#include <tnc/imv/imv_recommendations.h>
#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>
#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>
#include "imcv.h"
#include "imc_agent.h"
+#include <tncif_names.h>
+
#include <debug.h>
#include <utils/linked_list.h>
#include <threading/rwlock.h>
#include "imcv.h"
#include "imv_agent.h"
+#include <tncif_names.h>
+
#include <debug.h>
#include <utils/linked_list.h>
#include <threading/rwlock.h>
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
+++ /dev/null
-/*
- * 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
- * Free Software Foundation; either version 2 of the License, or (at your
- * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
- *
- * This program is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
- * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
- * for more details.
- */
-
-#include "tncif.h"
-
-ENUM(TNC_Connection_State_names,
- TNC_CONNECTION_STATE_CREATE, TNC_CONNECTION_STATE_DELETE,
- "Create",
- "Handshake",
- "Allowed",
- "Isolated",
- "None",
- "Delete",
-);
-
* 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;
#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)
--- /dev/null
+/*
+ * Copyright (C) 2010 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
+ * Free Software Foundation; either version 2 of the License, or (at your
+ * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+ * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+ * 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,
+ TNC_IMV_ACTION_RECOMMENDATION_NO_RECOMMENDATION,
+ "allow",
+ "no access",
+ "isolate",
+ "no recommendation"
+);
+
+ENUM(TNC_IMV_Evaluation_Result_names,
+ TNC_IMV_EVALUATION_RESULT_COMPLIANT,
+ TNC_IMV_EVALUATION_RESULT_DONT_KNOW,
+ "compliant",
+ "non-compliant minor",
+ "non-compliant major",
+ "error",
+ "don't know"
+);
--- /dev/null
+/*
+ * 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
+ * Free Software Foundation; either version 2 of the License, or (at your
+ * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+ * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+ * for more details.
+ */
+
+#ifndef TNCIF_NAMES_H_
+#define TNCIF_NAMES_H_
+
+#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_ @}*/
+++ /dev/null
-/*
- * Copyright (C) 2010 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
- * Free Software Foundation; either version 2 of the License, or (at your
- * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
- *
- * This program is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
- * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
- * for more details.
- */
-
-#include "tncifimv.h"
-
-ENUM(TNC_IMV_Action_Recommendation_names,
- TNC_IMV_ACTION_RECOMMENDATION_ALLOW,
- TNC_IMV_ACTION_RECOMMENDATION_NO_RECOMMENDATION,
- "allow",
- "no access",
- "isolate",
- "no recommendation"
-);
-
-ENUM(TNC_IMV_Evaluation_Result_names,
- TNC_IMV_EVALUATION_RESULT_COMPLIANT,
- TNC_IMV_EVALUATION_RESULT_DONT_KNOW,
- "compliant",
- "non-compliant minor",
- "non-compliant major",
- "error",
- "don't know"
-);
-
* 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;
#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
#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)