Defined PWG HCD IF-M attributes
[strongswan.git] / src / libimcv / ietf / ietf_attr_default_pwd_enabled.h
1 /*
2 * Copyright (C) 2012 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 ietf_attr_default_pwd_enabled ietf_attr_default_pwd_enabled
18 * @{ @ingroup ietf_attr
19 */
20
21 #ifndef IETF_ATTR_PWD_ENABLED_H_
22 #define IETF_ATTR_PWD_ENABLED_H_
23
24 typedef struct ietf_attr_default_pwd_enabled_t ietf_attr_default_pwd_enabled_t;
25
26 #include "ietf_attr.h"
27 #include "pa_tnc/pa_tnc_attr.h"
28
29 /**
30 * Class implementing the IETF PA-TNC Factory Default Password Enabled attribute.
31 *
32 */
33 struct ietf_attr_default_pwd_enabled_t {
34
35 /**
36 * Public PA-TNC attribute interface
37 */
38 pa_tnc_attr_t pa_tnc_attribute;
39
40 /**
41 * Gets the Factory Default Password Enabled status
42 *
43 * @return Factory Default Password Enabled status
44 */
45 bool (*get_status)(ietf_attr_default_pwd_enabled_t *this);
46
47 };
48
49 /**
50 * Creates an ietf_attr_default_pwd_enabled_t object
51 *
52 * @param status Factory Default Password Enabled status
53 */
54 pa_tnc_attr_t* ietf_attr_default_pwd_enabled_create(bool status);
55
56 /**
57 * Creates an ietf_attr_default_pwd_enabled_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* ietf_attr_default_pwd_enabled_create_from_data(size_t length,
63 chunk_t value);
64
65 #endif /** IETF_ATTR_PWD_ENABLED_H_ @}*/