From 30419567709c73a97eee5a8ce667d3b0584237fa Mon Sep 17 00:00:00 2001 From: Andreas Steffen Date: Wed, 10 Nov 2010 21:22:27 +0100 Subject: [PATCH] created enum names for action recommendations and evaluation results --- src/libcharon/Makefile.am | 1 + src/libcharon/tnc/tncifimv_names.c | 35 ++++++++++++++++++++++++++++++ src/libcharon/tnc/tncifimv_names.h | 29 +++++++++++++++++++++++++ 3 files changed, 65 insertions(+) create mode 100644 src/libcharon/tnc/tncifimv_names.c create mode 100644 src/libcharon/tnc/tncifimv_names.h diff --git a/src/libcharon/Makefile.am b/src/libcharon/Makefile.am index 602128a12..9cf29f094 100644 --- a/src/libcharon/Makefile.am +++ b/src/libcharon/Makefile.am @@ -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 index 000000000..d64a3bed3 --- /dev/null +++ b/src/libcharon/tnc/tncifimv_names.c @@ -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 . + * + * 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 index 000000000..a01d4c767 --- /dev/null +++ b/src/libcharon/tnc/tncifimv_names.h @@ -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 . + * + * 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 + +extern enum_name_t *action_recommendation_names; +extern enum_name_t *evaluation_result_names; + +#endif /** TNCIFIMV_NAMES_H_ @}*/