created enum names for action recommendations and evaluation results
authorAndreas Steffen <andreas.steffen@strongswan.org>
Wed, 10 Nov 2010 20:22:27 +0000 (21:22 +0100)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Wed, 10 Nov 2010 20:23:37 +0000 (21:23 +0100)
src/libcharon/Makefile.am
src/libcharon/tnc/tncifimv_names.c [new file with mode: 0644]
src/libcharon/tnc/tncifimv_names.h [new file with mode: 0644]

index 602128a..9cf29f0 100644 (file)
@@ -88,6 +88,7 @@ sa/tasks/ike_auth_lifetime.c sa/tasks/ike_auth_lifetime.h \
 sa/tasks/ike_vendor.c sa/tasks/ike_vendor.h \
 sa/tasks/task.c sa/tasks/task.h \
 tnc/tncif.h tnc/tncifimc.h tnc/tncifimv.h \
+tnc/tncifimv_names.h tnc/tncifimv_names.c\
 tnc/imc/imc.h tnc/imc/imc_manager.h \
 tnc/imv/imv.h tnc/imv/imv_manager.h \
 tnc/tnccs/tnccs.c tnc/tnccs/tnccs.h \
diff --git a/src/libcharon/tnc/tncifimv_names.c b/src/libcharon/tnc/tncifimv_names.c
new file mode 100644 (file)
index 0000000..d64a3be
--- /dev/null
@@ -0,0 +1,35 @@
+/*
+ * 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"
+#include "tncifimv_names.h"
+
+ENUM(action_recommendation_names, TNC_IMV_ACTION_RECOMMENDATION_ALLOW,
+                                                                 TNC_IMV_ACTION_RECOMMENDATION_NO_RECOMMENDATION,
+       "allow",
+       "no access",
+       "isolate",
+       "no recommendation"
+);
+
+ENUM(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"
+);
+
diff --git a/src/libcharon/tnc/tncifimv_names.h b/src/libcharon/tnc/tncifimv_names.h
new file mode 100644 (file)
index 0000000..a01d4c7
--- /dev/null
@@ -0,0 +1,29 @@
+/*
+ * 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.
+ */
+
+/**
+ * @defgroup tncifimv_names tncifimv_names
+ * @{ @ingroup libcharon
+ */
+
+#ifndef TNCIFIMV_NAMES_H_
+#define TNCIFIMV_NAMES_H_
+
+#include <library.h>
+
+extern enum_name_t *action_recommendation_names;
+extern enum_name_t *evaluation_result_names;
+
+#endif /** TNCIFIMV_NAMES_H_ @}*/