added TNC_Connection_State_names
authorAndreas Steffen <andreas.steffen@strongswan.org>
Sun, 29 May 2011 08:40:17 +0000 (10:40 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Sun, 29 May 2011 08:40:17 +0000 (10:40 +0200)
src/libcharon/tnc/tncif.c [new file with mode: 0644]
src/libcharon/tnc/tncif.h

diff --git a/src/libcharon/tnc/tncif.c b/src/libcharon/tnc/tncif.c
new file mode 100644 (file)
index 0000000..b195685
--- /dev/null
@@ -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",
+);
+
index 99441a9..42a0232 100644 (file)
@@ -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)