aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/tnc/imv
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2010-11-16 20:14:48 +0100
committerAndreas Steffen <andreas.steffen@strongswan.org>2010-11-16 20:14:48 +0100
commit92477a0625c5fba739d416cddd81edd9ae3caefe (patch)
tree592c8605d6f6c858d61a2d358f29ae9e3ee96f59 /src/libcharon/tnc/imv
parent4d178affbb2e042b72b361242d833687ea332c9a (diff)
downloadstrongswan-92477a0625c5fba739d416cddd81edd9ae3caefe.tar.bz2
strongswan-92477a0625c5fba739d416cddd81edd9ae3caefe.tar.xz
implement GetAttribute() callback function
Diffstat (limited to 'src/libcharon/tnc/imv')
-rw-r--r--src/libcharon/tnc/imv/imv_recommendations.h29
1 files changed, 26 insertions, 3 deletions
diff --git a/src/libcharon/tnc/imv/imv_recommendations.h b/src/libcharon/tnc/imv/imv_recommendations.h
index 82c5ae843..f96f53e6b 100644
--- a/src/libcharon/tnc/imv/imv_recommendations.h
+++ b/src/libcharon/tnc/imv/imv_recommendations.h
@@ -45,20 +45,43 @@ struct recommendations_t {
/**
* Deliver an IMV action recommendation and IMV evaluation result to the TNCS
*
- * @param imv_id ID of the IMV providing the recommendation
- * @param recommendation action recommendation
- * @param evaluation evaluation result
+ * @param imv_id ID of the IMV providing the recommendation
+ * @param rec action recommendation
+ * @param eval evaluation result
+ * @return return code
*/
TNC_Result (*provide_recommendation)(recommendations_t *this,
TNC_IMVID imv_id,
TNC_IMV_Action_Recommendation rec,
TNC_IMV_Evaluation_Result eval);
+ /**
+ * If all IMVs provided a recommendation, derive a consolidated action
+ * recommendation and evaluation result based on a configured policy
+ *
+ * @param rec action recommendation
+ * @param eval evaluation result
+ * @return TRUE if all IMVs provided a recommendation
+ */
bool (*have_recommendation)(recommendations_t *this,
TNC_IMV_Action_Recommendation *rec,
TNC_IMV_Evaluation_Result *eval);
/**
+ * Get the preferred language for remediation messages
+ *
+ * @return preferred language
+ */
+ chunk_t (*get_preferred_language)(recommendations_t *this);
+
+ /**
+ * Set the preferred language for remediation messages
+ *
+ * @param pref_lang preferred language
+ */
+ void (*set_preferred_language)(recommendations_t *this, chunk_t pref_lang);
+
+ /**
* Destroys an imv_t object.
*/
void (*destroy)(recommendations_t *this);