aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/libcharon/tnc/tncif.c27
-rw-r--r--src/libcharon/tnc/tncif.h5
2 files changed, 32 insertions, 0 deletions
diff --git a/src/libcharon/tnc/tncif.c b/src/libcharon/tnc/tncif.c
new file mode 100644
index 000000000..b195685a3
--- /dev/null
+++ b/src/libcharon/tnc/tncif.c
@@ -0,0 +1,27 @@
+/*
+ * 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",
+);
+
diff --git a/src/libcharon/tnc/tncif.h b/src/libcharon/tnc/tncif.h
index 99441a9a9..42a0232c7 100644
--- a/src/libcharon/tnc/tncif.h
+++ b/src/libcharon/tnc/tncif.h
@@ -59,6 +59,8 @@
#ifndef TNCIF_H_
#define TNCIF_H_
+#include <library.h>
+
/* Basic Types */
typedef unsigned long TNC_UInt32;
typedef unsigned char *TNC_BufferReference;
@@ -89,6 +91,7 @@ typedef TNC_UInt32 TNC_Result;
/* Network Connection ID Values */
#define TNC_CONNECTIONID_ANY 0xFFFFFFFF
+
/* Network Connection State Values */
#define TNC_CONNECTION_STATE_CREATE 0
#define TNC_CONNECTION_STATE_HANDSHAKE 1
@@ -97,6 +100,8 @@ 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)