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: EAP and WLAN authentication protocols. |
14 * Description: This class defines Credential attributes for protected setup (previously known as simple config). |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 /* |
18 /* |
19 * %version: 5.1.2 % |
19 * %version: 8 % |
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) |
21 |
29 |
22 #include "eap_tools.h" |
30 #include "eap_tools.h" |
23 #include "simple_config_credential.h" |
31 #include "simple_config_credential.h" |
24 |
32 |
25 /** @file */ |
33 /** @file */ |
64 m_network_index = index; |
72 m_network_index = index; |
65 } |
73 } |
66 |
74 |
67 //---------------------------------------------------------------------------- |
75 //---------------------------------------------------------------------------- |
68 |
76 |
69 EAP_FUNC_EXPORT u8_t simple_config_credential_c::get_network_index() |
77 EAP_FUNC_EXPORT u8_t simple_config_credential_c::get_network_index() const |
70 { |
78 { |
71 return m_network_index; |
79 return m_network_index; |
72 } |
80 } |
73 |
81 |
74 //---------------------------------------------------------------------------- |
82 //---------------------------------------------------------------------------- |
75 |
83 |
76 EAP_FUNC_EXPORT eap_variable_data_c * simple_config_credential_c::get_SSID() |
84 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 |
77 { |
92 { |
78 return &m_SSID; |
93 return &m_SSID; |
79 } |
94 } |
80 |
95 |
81 //---------------------------------------------------------------------------- |
96 //---------------------------------------------------------------------------- |
113 return &m_network_keys; |
128 return &m_network_keys; |
114 } |
129 } |
115 |
130 |
116 //---------------------------------------------------------------------------- |
131 //---------------------------------------------------------------------------- |
117 |
132 |
|
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 |
118 EAP_FUNC_EXPORT eap_variable_data_c * simple_config_credential_c::get_MAC_address() |
140 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 |
119 { |
148 { |
120 return &m_MAC_address; |
149 return &m_MAC_address; |
121 } |
150 } |
122 |
151 |
123 //---------------------------------------------------------------------------- |
152 //---------------------------------------------------------------------------- |