aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2011-05-29 10:40:17 +0200
committerAndreas Steffen <andreas.steffen@strongswan.org>2011-05-29 10:40:17 +0200
commiteea597a5ee561ab331d3bdbfabed194ee2f4fb51 (patch)
tree994db6baa1d46c374f9949406d140aee28ac2ab7 /src
parentdeed58393d57b564dea1c01acb31a48dd84e3ef2 (diff)
downloadstrongswan-eea597a5ee561ab331d3bdbfabed194ee2f4fb51.tar.bz2
strongswan-eea597a5ee561ab331d3bdbfabed194ee2f4fb51.tar.xz
added TNC_Connection_State_names
Diffstat (limited to 'src')
-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)