eapol/eapol_framework/eapol_common/core/eapol_key_state_server.cpp
branchCompilerCompatibility
changeset 14 3f122ca50ab9
parent 2 1c7bc153c08e
equal deleted inserted replaced
13:5431fd16d0e9 14:3f122ca50ab9
    46 
    46 
    47 
    47 
    48 //--------------------------------------------------
    48 //--------------------------------------------------
    49 
    49 
    50 //
    50 //
    51 eap_status_e eapol_key_state_c::create_4_way_handshake_message_1(
    51 EAP_FUNC_EXPORT eap_status_e eapol_key_state_c::create_4_way_handshake_message_1(
    52 	eap_buf_chain_wr_c * const sent_packet,
    52 	eap_buf_chain_wr_c * const sent_packet,
    53 	const u32_t eapol_header_offset,
    53 	const u32_t eapol_header_offset,
    54 	u32_t * const data_length,
    54 	u32_t * const data_length,
    55 	u32_t * const buffer_length,
    55 	u32_t * const buffer_length,
    56 	const eapol_protocol_version_e used_eapol_version,
    56 	const eapol_protocol_version_e used_eapol_version,
   301 }
   301 }
   302 
   302 
   303 //--------------------------------------------------
   303 //--------------------------------------------------
   304 
   304 
   305 //
   305 //
   306 eap_status_e eapol_key_state_c::create_4_way_handshake_message_3(
   306 EAP_FUNC_EXPORT eap_status_e eapol_key_state_c::create_4_way_handshake_message_3(
   307 	eap_buf_chain_wr_c * const sent_packet,
   307 	eap_buf_chain_wr_c * const sent_packet,
   308 	const u32_t eapol_header_offset,
   308 	const u32_t eapol_header_offset,
   309 	u32_t * const data_length,
   309 	u32_t * const data_length,
   310 	u32_t * const buffer_length,
   310 	u32_t * const buffer_length,
   311 	const eapol_protocol_version_e used_eapol_version,
   311 	const eapol_protocol_version_e used_eapol_version,
   895 }
   895 }
   896 
   896 
   897 //--------------------------------------------------
   897 //--------------------------------------------------
   898 
   898 
   899 //
   899 //
   900 eap_status_e eapol_key_state_c::send_RC4_eapol_key_messages()
   900 EAP_FUNC_EXPORT eap_status_e eapol_key_state_c::send_RC4_eapol_key_messages()
   901 {
   901 {
   902 	EAP_TRACE_BEGIN(m_am_tools, TRACE_FLAGS_DEFAULT);
   902 	EAP_TRACE_BEGIN(m_am_tools, TRACE_FLAGS_DEFAULT);
   903 
   903 
   904 	eap_status_e status(eap_status_process_general_error);
   904 	eap_status_e status(eap_status_process_general_error);
   905 
   905 
   946 }
   946 }
   947 
   947 
   948 //--------------------------------------------------
   948 //--------------------------------------------------
   949 
   949 
   950 //
   950 //
   951 eap_status_e eapol_key_state_c::start_4_way_handshake(
   951 EAP_FUNC_EXPORT eap_status_e eapol_key_state_c::start_4_way_handshake(
   952 	const eap_am_network_id_c * const receive_network_id)
   952 	const eap_am_network_id_c * const receive_network_id)
   953 {
   953 {
   954 	EAP_TRACE_BEGIN(m_am_tools, TRACE_FLAGS_DEFAULT);
   954 	EAP_TRACE_BEGIN(m_am_tools, TRACE_FLAGS_DEFAULT);
   955 	EAP_UNREFERENCED_PARAMETER(receive_network_id);
   955 	EAP_UNREFERENCED_PARAMETER(receive_network_id);
   956 
   956 
  1131 }
  1131 }
  1132 
  1132 
  1133 //--------------------------------------------------
  1133 //--------------------------------------------------
  1134 
  1134 
  1135 //
  1135 //
  1136 eap_status_e eapol_key_state_c::process_4_way_handshake_message_2_payloads(
  1136 EAP_FUNC_EXPORT eap_status_e eapol_key_state_c::process_4_way_handshake_message_2_payloads(
  1137 	const eap_am_network_id_c * const receive_network_id,
  1137 	const eap_am_network_id_c * const receive_network_id,
  1138 	eapol_RSNA_key_header_c * const eapol_key_message,
  1138 	eapol_RSNA_key_header_c * const eapol_key_message,
  1139 	const u32_t packet_length)
  1139 	const u32_t packet_length)
  1140 {
  1140 {
  1141 	EAP_TRACE_BEGIN(m_am_tools, TRACE_FLAGS_DEFAULT);
  1141 	EAP_TRACE_BEGIN(m_am_tools, TRACE_FLAGS_DEFAULT);
  1306 
  1306 
  1307 
  1307 
  1308 //--------------------------------------------------
  1308 //--------------------------------------------------
  1309 
  1309 
  1310 //
  1310 //
  1311 eap_status_e eapol_key_state_c::process_4_way_handshake_message_0(
  1311 EAP_FUNC_EXPORT eap_status_e eapol_key_state_c::process_4_way_handshake_message_0(
  1312 	const eap_am_network_id_c * const receive_network_id,
  1312 	const eap_am_network_id_c * const receive_network_id,
  1313 	eapol_RSNA_key_header_c * const eapol_key_message,
  1313 	eapol_RSNA_key_header_c * const eapol_key_message,
  1314 	const u32_t /* packet_length */)
  1314 	const u32_t /* packet_length */)
  1315 {
  1315 {
  1316 	EAP_TRACE_BEGIN(m_am_tools, TRACE_FLAGS_DEFAULT);
  1316 	EAP_TRACE_BEGIN(m_am_tools, TRACE_FLAGS_DEFAULT);
  1418 }
  1418 }
  1419 
  1419 
  1420 //--------------------------------------------------
  1420 //--------------------------------------------------
  1421 
  1421 
  1422 //
  1422 //
  1423 eap_status_e eapol_key_state_c::process_4_way_handshake_message_2(
  1423 EAP_FUNC_EXPORT eap_status_e eapol_key_state_c::process_4_way_handshake_message_2(
  1424 	const eap_am_network_id_c * const receive_network_id,
  1424 	const eap_am_network_id_c * const receive_network_id,
  1425 	eapol_RSNA_key_header_c * const eapol_key_message,
  1425 	eapol_RSNA_key_header_c * const eapol_key_message,
  1426 	const u32_t packet_length)
  1426 	const u32_t packet_length)
  1427 {
  1427 {
  1428 	EAP_TRACE_BEGIN(m_am_tools, TRACE_FLAGS_DEFAULT);
  1428 	EAP_TRACE_BEGIN(m_am_tools, TRACE_FLAGS_DEFAULT);
  1589 }
  1589 }
  1590 
  1590 
  1591 //--------------------------------------------------
  1591 //--------------------------------------------------
  1592 
  1592 
  1593 //
  1593 //
  1594 eap_status_e eapol_key_state_c::process_4_way_handshake_message_4(
  1594 EAP_FUNC_EXPORT eap_status_e eapol_key_state_c::process_4_way_handshake_message_4(
  1595 	const eap_am_network_id_c * const receive_network_id,
  1595 	const eap_am_network_id_c * const receive_network_id,
  1596 	eapol_RSNA_key_header_c * const eapol_key_message,
  1596 	eapol_RSNA_key_header_c * const eapol_key_message,
  1597 	const u32_t packet_length)
  1597 	const u32_t packet_length)
  1598 {
  1598 {
  1599 	EAP_TRACE_BEGIN(m_am_tools, TRACE_FLAGS_DEFAULT);
  1599 	EAP_TRACE_BEGIN(m_am_tools, TRACE_FLAGS_DEFAULT);
  1860 }
  1860 }
  1861 
  1861 
  1862 //--------------------------------------------------
  1862 //--------------------------------------------------
  1863 
  1863 
  1864 //
  1864 //
  1865 eap_status_e eapol_key_state_c::create_group_key_handshake_message_1(
  1865 EAP_FUNC_EXPORT eap_status_e eapol_key_state_c::create_group_key_handshake_message_1(
  1866 	eap_buf_chain_wr_c * const sent_packet,
  1866 	eap_buf_chain_wr_c * const sent_packet,
  1867 	const u32_t eapol_header_offset,
  1867 	const u32_t eapol_header_offset,
  1868 	u32_t * const data_length,
  1868 	u32_t * const data_length,
  1869 	u32_t * const buffer_length,
  1869 	u32_t * const buffer_length,
  1870 	const eapol_protocol_version_e used_eapol_version,
  1870 	const eapol_protocol_version_e used_eapol_version,
  2148 }
  2148 }
  2149 
  2149 
  2150 //--------------------------------------------------
  2150 //--------------------------------------------------
  2151 
  2151 
  2152 //
  2152 //
  2153 eap_status_e eapol_key_state_c::process_group_key_handshake_message_0(
  2153 EAP_FUNC_EXPORT eap_status_e eapol_key_state_c::process_group_key_handshake_message_0(
  2154 	const eap_am_network_id_c * const receive_network_id,
  2154 	const eap_am_network_id_c * const receive_network_id,
  2155 	eapol_RSNA_key_header_c * const eapol_key_message,
  2155 	eapol_RSNA_key_header_c * const eapol_key_message,
  2156 	const u32_t packet_length)
  2156 	const u32_t packet_length)
  2157 {
  2157 {
  2158 	EAP_TRACE_BEGIN(m_am_tools, TRACE_FLAGS_DEFAULT);
  2158 	EAP_TRACE_BEGIN(m_am_tools, TRACE_FLAGS_DEFAULT);
  2280 }
  2280 }
  2281 
  2281 
  2282 //--------------------------------------------------
  2282 //--------------------------------------------------
  2283 
  2283 
  2284 //
  2284 //
  2285 eap_status_e eapol_key_state_c::process_group_key_handshake_message_2(
  2285 EAP_FUNC_EXPORT eap_status_e eapol_key_state_c::process_group_key_handshake_message_2(
  2286 	const eap_am_network_id_c * const receive_network_id,
  2286 	const eap_am_network_id_c * const receive_network_id,
  2287 	eapol_RSNA_key_header_c * const eapol_key_message,
  2287 	eapol_RSNA_key_header_c * const eapol_key_message,
  2288 	const u32_t packet_length)
  2288 	const u32_t packet_length)
  2289 {
  2289 {
  2290 	EAP_TRACE_BEGIN(m_am_tools, TRACE_FLAGS_DEFAULT);
  2290 	EAP_TRACE_BEGIN(m_am_tools, TRACE_FLAGS_DEFAULT);