PB-TNC messages implemented
[strongswan.git] / src / libcharon / plugins / tnccs_20 / messages / pb_assessment_result_message.h
1 /*
2 * Copyright (C) 2010 Sansar Choinyambuu
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 pb_assessment_result_message pb_assessment_result_message
18 * @{ @ingroup tnccs_20
19 */
20
21 #ifndef PB_ASSESSMENT_RESULT_MESSAGE_H_
22 #define PB_ASSESSMENT_RESULT_MESSAGE_H_
23
24 #include "pb_tnc_message.h"
25
26 typedef struct pb_assessment_result_message_t pb_assessment_result_message_t;
27
28 /**
29 * Classs representing the PB-Assessment-Result message type.
30 */
31 struct pb_assessment_result_message_t {
32
33 /**
34 * PB-TNC Message interface
35 */
36 pb_tnc_message_t pb_interface;
37
38 /**
39 * Get PB Assessment result
40 *
41 * @return PB Assessment result
42 */
43 u_int32_t (*get_assessment_result)(pb_assessment_result_message_t *this);
44 };
45
46 /**
47 * Create a PB-Assessment-Result message from parameters
48 *
49 * @param assessment_result Assessment result code
50 */
51 pb_tnc_message_t* pb_assessment_result_message_create(u_int32_t assessment_result);
52
53 /**
54 * Create an unprocessed PB-Assessment-Result message from raw data
55 *
56 * @param data PB-Assessment-Result message data
57 */
58 pb_tnc_message_t* pb_assessment_result_message_create_from_data(chunk_t data);
59
60 #endif /** PB_PA_MESSAGE_H_ @}*/