equal
deleted
inserted
replaced
14 * Description: EAP and WLAN authentication protocols. |
14 * Description: EAP and WLAN authentication protocols. |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 /* |
18 /* |
19 * %version: 18 % |
19 * %version: % |
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 |
86 EAP_C_FUNC_EXPORT eap_base_type_c * const new_eap_type( |
86 EAP_C_FUNC_EXPORT eap_base_type_c * const new_eap_type( |
87 abs_eap_am_tools_c * const tools, |
87 abs_eap_am_tools_c * const tools, |
88 abs_eap_base_type_c * const partner, |
88 abs_eap_base_type_c * const partner, |
89 const eap_type_value_e eap_type, |
89 const eap_type_value_e eap_type, |
90 const bool is_client_when_true, |
90 const bool is_client_when_true, |
91 const eap_am_network_id_c * const receive_network_id, |
91 const eap_am_network_id_c * const receive_network_id |
92 abs_eap_configuration_if_c * const configuration_if) |
92 #if defined(USE_EAP_SIMPLE_CONFIG) |
|
93 , abs_eap_configuration_if_c * const configuration_if |
|
94 #endif // #if defined(USE_EAP_SIMPLE_CONFIG) |
|
95 ) |
93 { |
96 { |
94 EAP_TRACE_BEGIN(tools, TRACE_FLAGS_DEFAULT); |
97 EAP_TRACE_BEGIN(tools, TRACE_FLAGS_DEFAULT); |
95 eap_base_type_c *type = 0; |
98 eap_base_type_c *type = 0; |
96 |
99 |
97 if (tools == 0) |
100 if (tools == 0) |
529 { |
532 { |
530 type = new eap_type_dummy_sim_c(tools, partner, is_client_when_true); |
533 type = new eap_type_dummy_sim_c(tools, partner, is_client_when_true); |
531 } |
534 } |
532 else |
535 else |
533 #endif |
536 #endif |
534 #if defined(USE_EAP_EXPANDED_TYPES) |
|
535 #if defined(USE_EAP_SIMPLE_CONFIG) |
537 #if defined(USE_EAP_SIMPLE_CONFIG) |
536 if (eap_type == eap_expanded_type_simple_config.get_type()) |
538 if (eap_type == eap_expanded_type_simple_config.get_type()) |
537 { |
539 { |
538 eap_am_type_simple_config_c * am_type_simple_config |
540 eap_am_type_simple_config_c * am_type_simple_config |
539 = ::new_eap_am_type_simple_config( |
541 = ::new_eap_am_type_simple_config( |
583 eap_type, |
585 eap_type, |
584 receive_network_id); |
586 receive_network_id); |
585 } |
587 } |
586 else |
588 else |
587 #endif //#if defined(USE_EAP_SIMPLE_CONFIG) |
589 #endif //#if defined(USE_EAP_SIMPLE_CONFIG) |
588 #endif //#if defined(USE_EAP_EXPANDED_TYPES) |
|
589 #if defined(USE_FAST_EAP_TYPE) |
590 #if defined(USE_FAST_EAP_TYPE) |
590 if (eap_type == eap_type_fast) |
591 if (eap_type == eap_type_fast) |
591 { |
592 { |
592 eap_am_type_tls_peap_c * am_type_tls_peap |
593 eap_am_type_tls_peap_c * am_type_tls_peap |
593 = ::new_eap_am_type_tls_peap( |
594 = ::new_eap_am_type_tls_peap( |
681 #endif //#if defined(USE_FAST_EAP_TYPE) |
682 #endif //#if defined(USE_FAST_EAP_TYPE) |
682 { |
683 { |
683 EAP_TRACE_ERROR( |
684 EAP_TRACE_ERROR( |
684 tools, |
685 tools, |
685 TRACE_FLAGS_DEFAULT, |
686 TRACE_FLAGS_DEFAULT, |
686 (EAPL("ERROR: new_eap_type(): EAP-type=0x%08x not supported in this module.\n"), |
687 (EAPL("ERROR: new_eap_type(): EAP-type=0xfe%06x%08x=%s not supported in this module.\n"), |
687 convert_eap_type_to_u32_t(eap_type))); |
688 eap_type.get_vendor_id(), |
|
689 eap_type.get_vendor_type(), |
|
690 eap_header_string_c::get_eap_type_string(eap_type))); |
688 } |
691 } |
689 EAP_TRACE_END(tools, TRACE_FLAGS_DEFAULT); |
692 EAP_TRACE_END(tools, TRACE_FLAGS_DEFAULT); |
690 return type; |
693 return type; |
691 } |
694 } |
692 |
695 |