Annotation of embedaddon/strongswan/src/libimcv/pwg/pwg_attr_vendor_smi_code.h, revision 1.1.1.1
1.1 misho 1: /*
2: * Copyright (C) 2015 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 pwg_attr_vendor_smi_codet pwg_attr_vendor_smi_code
18: * @{ @ingroup ietf_attr
19: */
20:
21: #ifndef PWG_ATTR_VENDOR_SMI_CODE_H_
22: #define PWG_ATTR_VENDOR_SMI_CODE_H_
23:
24: typedef struct pwg_attr_vendor_smi_code_t pwg_attr_vendor_smi_code_t;
25:
26: #include "pwg_attr.h"
27: #include "pa_tnc/pa_tnc_attr.h"
28:
29:
30: /**
31: * Class implementing the PWG HCD PA-TNC Vendor SMI Code attribute.
32: *
33: */
34: struct pwg_attr_vendor_smi_code_t {
35:
36: /**
37: * Public PA-TNC attribute interface
38: */
39: pa_tnc_attr_t pa_tnc_attribute;
40:
41: /**
42: * Gets the Vendor SMI Code
43: *
44: * @return Vendor SMI Code
45: */
46: pen_t (*get_vendor_smi_code)(pwg_attr_vendor_smi_code_t *this);
47:
48: };
49:
50: /**
51: * Creates an pwg_attr_vendor_smi_code_t object
52: *
53: */
54: pa_tnc_attr_t* pwg_attr_vendor_smi_code_create(pen_t vendor_smi_code);
55:
56: /**
57: * Creates an pwg_attr_vendor_smi_code_t object from received data
58: *
59: * @param length Total length of attribute value
60: * @param value Unparsed attribute value (might be a segment)
61: */
62: pa_tnc_attr_t* pwg_attr_vendor_smi_code_create_from_data(size_t length,
63: chunk_t value);
64:
65: #endif /** PWG_ATTR_VENDOR_SMI_CODE_H_ @}*/
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>