child-rekey: Don't change state to INSTALLED if it was already REKEYING
[strongswan.git] / src / libtncif / tncif_policy.h
1 /*
2 * Copyright (C) 2013 Andreas Steffen
3 * HSR Hochschule fuer Technik Rapperswil
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License as published by the
7 * Free Software Foundation; either version 2 of the License, or (at your
8 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
9 *
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13 * for more details.
14 */
15
16 /**
17 * @defgroup libtncif libtncif
18 *
19 * @addtogroup libtncif
20 * TNC interface definitions
21 *
22 * @defgroup tnc_policy tnc_policy
23 * @{ @ingroup libtncif
24 */
25
26 #ifndef TNCIF_POLICY_H_
27 #define TNCIF_POLICY_H_
28
29 #include "tncifimv.h"
30
31 /**
32 * Create an empty TNC Identity object
33 *
34 * @param eval Existing evaluation to be updated
35 * @param eval_add Partial evaluation to be added
36 * @return Updated evaluation
37 */
38 TNC_IMV_Evaluation_Result tncif_policy_update_evaluation(
39 TNC_IMV_Evaluation_Result eval,
40 TNC_IMV_Evaluation_Result eval_add);
41
42 /**
43 * Create an empty TNC Identity object
44 *
45 * @param rec Existing recommendationto be updated
46 * @param rec_add Partial recommendation to be added
47 * @return Updated recommendation
48 */
49 TNC_IMV_Action_Recommendation tncif_policy_update_recommendation(
50 TNC_IMV_Action_Recommendation rec,
51 TNC_IMV_Action_Recommendation rec_add);
52
53 #endif /** TNCIF_POLICY_H_ @}*/