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