14 * Description: EAP and WLAN authentication protocols. |
14 * Description: EAP and WLAN authentication protocols. |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 /* |
18 /* |
19 * %version: 54 % |
19 * %version: 57 % |
20 */ |
20 */ |
21 |
21 |
22 // This is enumeration of EAPOL source code. |
22 // This is enumeration of EAPOL source code. |
23 #if defined(USE_EAP_MINIMUM_RELEASE_TRACES) |
23 #if defined(USE_EAP_MINIMUM_RELEASE_TRACES) |
24 #undef EAP_FILE_NUMBER_ENUM |
24 #undef EAP_FILE_NUMBER_ENUM |
25 #define EAP_FILE_NUMBER_ENUM 605 |
25 #define EAP_FILE_NUMBER_ENUM 739 |
26 #undef EAP_FILE_NUMBER_DATE |
26 #undef EAP_FILE_NUMBER_DATE |
27 #define EAP_FILE_NUMBER_DATE 1127594498 |
27 #define EAP_FILE_NUMBER_DATE 1127594498 |
28 #endif //#if defined(USE_EAP_MINIMUM_RELEASE_TRACES) |
28 #endif //#if defined(USE_EAP_MINIMUM_RELEASE_TRACES) |
29 |
29 |
30 |
30 |
76 , ipEAPSettings(0) |
76 , ipEAPSettings(0) |
77 { |
77 { |
78 EAP_TRACE_DEBUG( |
78 EAP_TRACE_DEBUG( |
79 m_am_tools, |
79 m_am_tools, |
80 TRACE_FLAGS_DEFAULT, |
80 TRACE_FLAGS_DEFAULT, |
81 (EAPL("CEapGeneric::CEapGeneric(): this=0x%08x.\n"), |
81 (EAPL("CEapGeneric::CEapGeneric(): this=0x%08x, aIndexType=%d, aIndex=%d.\n"), |
82 this)); |
82 this, |
|
83 aIndexType, |
|
84 aIndex)); |
83 |
85 |
84 EAP_TRACE_RETURN_STRING(m_am_tools, "returns: CEapGeneric::CEapGeneric()"); |
86 EAP_TRACE_RETURN_STRING(m_am_tools, "returns: CEapGeneric::CEapGeneric()"); |
85 } |
87 } |
86 |
88 |
87 // ---------------------------------------------------------- |
89 // ---------------------------------------------------------- |
157 // ---------------------------------------------------------- |
159 // ---------------------------------------------------------- |
158 |
160 |
159 #ifdef USE_EAP_SIMPLE_CONFIG |
161 #ifdef USE_EAP_SIMPLE_CONFIG |
160 |
162 |
161 eap_base_type_c* CEapGeneric::GetStackInterfaceL(abs_eap_am_tools_c* const aTools, |
163 eap_base_type_c* CEapGeneric::GetStackInterfaceL(abs_eap_am_tools_c* const aTools, |
162 abs_eap_base_type_c* const aPartner, |
164 abs_eap_base_type_c* const /* aPartner */, |
163 const bool is_client_when_true, |
165 const bool /* is_client_when_true */, |
164 const eap_am_network_id_c * const receive_network_id, |
166 const eap_am_network_id_c * const /* receive_network_id */, |
165 abs_eap_configuration_if_c * const /*configuration_if*/) |
167 abs_eap_configuration_if_c * const /*configuration_if*/) |
166 |
168 |
167 #else |
169 #else |
168 |
170 |
169 eap_base_type_c* CEapGeneric::GetStackInterfaceL(abs_eap_am_tools_c* const aTools, |
171 eap_base_type_c* CEapGeneric::GetStackInterfaceL(abs_eap_am_tools_c* const aTools, |
170 abs_eap_base_type_c* const aPartner, |
172 abs_eap_base_type_c* const /* aPartner */, |
171 const bool is_client_when_true, |
173 const bool /* is_client_when_true */, |
172 const eap_am_network_id_c * const receive_network_id) |
174 const eap_am_network_id_c * const /* receive_network_id */) |
173 |
175 |
174 #endif // #ifdef USE_EAP_SIMPLE_CONFIG |
176 #endif // #ifdef USE_EAP_SIMPLE_CONFIG |
175 { |
177 { |
|
178 EAP_UNREFERENCED_PARAMETER(aTools); |
176 // This class does not have stack interface. |
179 // This class does not have stack interface. |
177 EAP_TRACE_DEBUG( |
180 EAP_TRACE_DEBUG( |
178 m_am_tools, |
181 m_am_tools, |
179 TRACE_FLAGS_DEFAULT, |
182 TRACE_FLAGS_DEFAULT, |
180 (EAPL("ERROR: CEapGeneric::GetStackInterfaceL(): this=0x%08x\n"), |
183 (EAPL("ERROR: CEapGeneric::GetStackInterfaceL(): this=0x%08x\n"), |
549 |
552 |
550 eap_status_e status(eap_status_process_general_error); |
553 eap_status_e status(eap_status_process_general_error); |
551 |
554 |
552 TInt error(KErrNone); |
555 TInt error(KErrNone); |
553 |
556 |
|
557 internal_settings->m_IndexType = iIndexType; |
|
558 internal_settings->m_Index = iIndex; |
|
559 |
|
560 internal_settings->m_TunnelingTypePresent = iTunnelingTypePresent; |
|
561 internal_settings->m_TunnelingType = iTunnelingType; |
|
562 |
554 error = CEapConversion::ConvertEAPSettingsToInternalType( |
563 error = CEapConversion::ConvertEAPSettingsToInternalType( |
555 m_am_tools, |
564 m_am_tools, |
556 &aSettings, |
565 &aSettings, |
557 internal_settings); |
566 internal_settings); |
558 if(error == KErrNone) |
567 if(error == KErrNone) |
559 { |
568 { |
560 internal_settings->m_IndexType = iIndexType; |
|
561 internal_settings->m_Index = iIndex; |
|
562 |
|
563 TInt error = CEapConversion::ConvertExpandedEAPTypeToInternalType( |
569 TInt error = CEapConversion::ConvertExpandedEAPTypeToInternalType( |
564 &iEapType, |
570 &iEapType, |
565 &(internal_settings->m_EAPType)); |
571 &(internal_settings->m_EAPType)); |
566 if (error != KErrNone) |
572 if (error != KErrNone) |
567 { |
573 { |
568 delete internal_settings; |
574 delete internal_settings; |
569 |
575 |
570 (void)EAP_STATUS_RETURN(m_am_tools, m_am_tools->convert_am_error_to_eapol_error(error)); |
576 (void)EAP_STATUS_RETURN(m_am_tools, m_am_tools->convert_am_error_to_eapol_error(error)); |
571 User::Leave(error); |
577 User::Leave(error); |
572 } |
578 } |
573 |
|
574 internal_settings->m_TunnelingTypePresent = iTunnelingTypePresent; |
|
575 internal_settings->m_TunnelingType = iTunnelingType; |
|
576 |
579 |
577 iCompletionStatus = eap_status_process_general_error; |
580 iCompletionStatus = eap_status_process_general_error; |
578 |
581 |
579 status = m_server->set_configuration(internal_settings); |
582 status = m_server->set_configuration(internal_settings); |
580 } |
583 } |