eapol/eapol_framework/eapol_common/type/simple_config/simple_config/src/simple_config_credential.cpp
equal
deleted
inserted
replaced
9 * Initial Contributors: |
9 * Initial Contributors: |
10 * Nokia Corporation - initial contribution. |
10 * Nokia Corporation - initial contribution. |
11 * |
11 * |
12 * Contributors: |
12 * Contributors: |
13 * |
13 * |
14 * Description: This class defines Credential attributes for protected setup (previously known as simple config). |
14 * Description: EAP and WLAN authentication protocols. |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 /* |
18 /* |
19 * %version: 8 % |
19 * %version: 5.1.2 % |
20 */ |
20 */ |
21 |
|
22 // This is enumeration of EAPOL source code. |
|
23 #if defined(USE_EAP_MINIMUM_RELEASE_TRACES) |
|
24 #undef EAP_FILE_NUMBER_ENUM |
|
25 #define EAP_FILE_NUMBER_ENUM 763 |
|
26 #undef EAP_FILE_NUMBER_DATE |
|
27 #define EAP_FILE_NUMBER_DATE 1127594498 |
|
28 #endif //#if defined(USE_EAP_MINIMUM_RELEASE_TRACES) |
|
29 |
21 |
30 #include "eap_tools.h" |
22 #include "eap_tools.h" |
31 #include "simple_config_credential.h" |
23 #include "simple_config_credential.h" |
32 |
24 |
33 /** @file */ |
25 /** @file */ |
72 m_network_index = index; |
64 m_network_index = index; |
73 } |
65 } |
74 |
66 |
75 //---------------------------------------------------------------------------- |
67 //---------------------------------------------------------------------------- |
76 |
68 |
77 EAP_FUNC_EXPORT u8_t simple_config_credential_c::get_network_index() const |
69 EAP_FUNC_EXPORT u8_t simple_config_credential_c::get_network_index() |
78 { |
70 { |
79 return m_network_index; |
71 return m_network_index; |
80 } |
72 } |
81 |
73 |
82 //---------------------------------------------------------------------------- |
74 //---------------------------------------------------------------------------- |
83 |
75 |
84 EAP_FUNC_EXPORT eap_variable_data_c * simple_config_credential_c::get_SSID() |
76 EAP_FUNC_EXPORT eap_variable_data_c * simple_config_credential_c::get_SSID() |
85 { |
|
86 return &m_SSID; |
|
87 } |
|
88 |
|
89 //---------------------------------------------------------------------------- |
|
90 |
|
91 EAP_FUNC_EXPORT const eap_variable_data_c * simple_config_credential_c::get_SSID_const() const |
|
92 { |
77 { |
93 return &m_SSID; |
78 return &m_SSID; |
94 } |
79 } |
95 |
80 |
96 //---------------------------------------------------------------------------- |
81 //---------------------------------------------------------------------------- |
128 return &m_network_keys; |
113 return &m_network_keys; |
129 } |
114 } |
130 |
115 |
131 //---------------------------------------------------------------------------- |
116 //---------------------------------------------------------------------------- |
132 |
117 |
133 EAP_FUNC_EXPORT const eap_array_c<network_key_and_index_c> * simple_config_credential_c::get_network_keys_const() const |
|
134 { |
|
135 return &m_network_keys; |
|
136 } |
|
137 |
|
138 //---------------------------------------------------------------------------- |
|
139 |
|
140 EAP_FUNC_EXPORT eap_variable_data_c * simple_config_credential_c::get_MAC_address() |
118 EAP_FUNC_EXPORT eap_variable_data_c * simple_config_credential_c::get_MAC_address() |
141 { |
|
142 return &m_MAC_address; |
|
143 } |
|
144 |
|
145 //---------------------------------------------------------------------------- |
|
146 |
|
147 EAP_FUNC_EXPORT const eap_variable_data_c * simple_config_credential_c::get_MAC_address_const() const |
|
148 { |
119 { |
149 return &m_MAC_address; |
120 return &m_MAC_address; |
150 } |
121 } |
151 |
122 |
152 //---------------------------------------------------------------------------- |
123 //---------------------------------------------------------------------------- |