eapol/eapol_framework/eapol_common/core/eapol_key_state_common.cpp
changeset 34 ad1f037f1ac2
parent 26 9abfd4f00d37
--- a/eapol/eapol_framework/eapol_common/core/eapol_key_state_common.cpp	Thu Jun 10 16:12:28 2010 +0300
+++ b/eapol/eapol_framework/eapol_common/core/eapol_key_state_common.cpp	Thu Jun 24 11:23:08 2010 +0300
@@ -16,7 +16,7 @@
 */
 
 /*
-* %version: 132 %
+* %version: 135 %
 */
 
 // This is enumeration of EAPOL source code.
@@ -941,6 +941,8 @@
 	const eapol_key_authentication_type_e authentication_type
 	)
 {
+	EAP_UNREFERENCED_PARAMETER(eapol_key_handshake_type);
+	EAP_UNREFERENCED_PARAMETER(authentication_type);
 	EAP_TRACE_BEGIN(m_am_tools, TRACE_FLAGS_DEFAULT);
 
 	EAP_TRACE_DEBUG(
@@ -1669,7 +1671,7 @@
 //--------------------------------------------------
 
 //
-eap_status_e eapol_key_state_c::complete_reassociation(
+EAP_FUNC_EXPORT eap_status_e eapol_key_state_c::complete_reassociation(
 	const eapol_wlan_authentication_state_e reassociation_result,
 	const eap_am_network_id_c * const /* receive_network_id */,
 	const eapol_key_authentication_type_e authentication_type,
@@ -2677,7 +2679,7 @@
 //--------------------------------------------------
 
 // 
-eap_status_e eapol_key_state_c::check_is_aes_key_wrap_padding(
+EAP_FUNC_EXPORT eap_status_e eapol_key_state_c::check_is_aes_key_wrap_padding(
 	const eapol_RSNA_key_descriptor_type_e /* current_key_data_type */,
 	eapol_rsna_key_data_header_c * const key_data_payload,
 	const u32_t key_data_max_length
@@ -2709,7 +2711,7 @@
 //--------------------------------------------------
 
 // 
-eap_status_e eapol_key_state_c::parse_generic_key_data_payload(
+EAP_FUNC_EXPORT eap_status_e eapol_key_state_c::parse_generic_key_data_payload(
 	const eapol_key_descriptor_type_e eapol_key_descriptor_type,
 	const eapol_RSNA_key_descriptor_type_e current_key_descriptor_type,
 	eapol_rsna_key_data_header_c * const key_data_payload,
@@ -3471,7 +3473,7 @@
 //--------------------------------------------------
 
 //
-eap_status_e eapol_key_state_c::parse_key_data(
+EAP_FUNC_EXPORT eap_status_e eapol_key_state_c::parse_key_data(
 	const eapol_key_descriptor_type_e eapol_key_descriptor_type,
 	const eapol_rsna_key_data_header_c * const p_payload,
 	u32_t * const buffer_length,
@@ -3643,7 +3645,7 @@
 //--------------------------------------------------
 
 //
-eap_status_e eapol_key_state_c::rsna_prf(
+EAP_FUNC_EXPORT eap_status_e eapol_key_state_c::rsna_prf(
 	const eap_variable_data_c * const key_K,
 	const eap_variable_data_c * const label_A,
 	const eap_variable_data_c * const input_B,
@@ -3783,7 +3785,7 @@
 //--------------------------------------------------
 
 //
-eap_status_e eapol_key_state_c::select_minimum(
+EAP_FUNC_EXPORT eap_status_e eapol_key_state_c::select_minimum(
 	const eap_variable_data_c * const input_a,
 	const eap_variable_data_c * const input_b,
 	const eap_variable_data_c ** const minimum,
@@ -3832,7 +3834,7 @@
 //--------------------------------------------------
 
 //
-eap_status_e eapol_key_state_c::derive_PTK()
+EAP_FUNC_EXPORT eap_status_e eapol_key_state_c::derive_PTK()
 {
 	EAP_TRACE_BEGIN(m_am_tools, TRACE_FLAGS_DEFAULT);
 
@@ -4114,7 +4116,7 @@
 //--------------------------------------------------
 
 //
-eap_status_e eapol_key_state_c::create_nonce(
+EAP_FUNC_EXPORT eap_status_e eapol_key_state_c::create_nonce(
 	eap_variable_data_c * const nonce,	const u32_t nonce_length)
 {
 	EAP_TRACE_BEGIN(m_am_tools, TRACE_FLAGS_DEFAULT);
@@ -4166,7 +4168,7 @@
 //--------------------------------------------------
 
 //
-eap_status_e eapol_key_state_c::create_PMKID()
+EAP_FUNC_EXPORT eap_status_e eapol_key_state_c::create_PMKID()
 {
 	EAP_TRACE_BEGIN(m_am_tools, TRACE_FLAGS_DEFAULT);
 	eap_status_e status = eap_status_process_general_error;
@@ -4303,7 +4305,7 @@
 //--------------------------------------------------
 
 //
-eap_status_e eapol_key_state_c::encrypt_key_data(
+EAP_FUNC_EXPORT eap_status_e eapol_key_state_c::encrypt_key_data(
 	eapol_RSNA_key_header_c * const eapol_key_message)
 {
 	EAP_TRACE_BEGIN(m_am_tools, TRACE_FLAGS_DEFAULT);
@@ -4536,7 +4538,7 @@
 //--------------------------------------------------
 
 //
-eap_status_e eapol_key_state_c::decrypt_key_data(
+EAP_FUNC_EXPORT eap_status_e eapol_key_state_c::decrypt_key_data(
 	eapol_RSNA_key_header_c * const eapol_key_message)
 {
 	EAP_TRACE_BEGIN(m_am_tools, TRACE_FLAGS_DEFAULT);
@@ -4685,7 +4687,7 @@
 
 
 //
-eap_status_e eapol_key_state_c::create_key_mic(
+EAP_FUNC_EXPORT eap_status_e eapol_key_state_c::create_key_mic(
 	eapol_RSNA_key_header_c * const eapol_key_message,
 	const eap_variable_data_c * const confirmation_key)
 {
@@ -4857,7 +4859,7 @@
 //--------------------------------------------------
 
 //
-eap_status_e eapol_key_state_c::verify_key_mic(
+EAP_FUNC_EXPORT eap_status_e eapol_key_state_c::verify_key_mic(
 	eapol_RSNA_key_header_c * const eapol_key_message,
 	const eap_variable_data_c * const confirmation_key)
 {
@@ -6136,7 +6138,7 @@
 //--------------------------------------------------
 
 //
-eap_status_e eapol_key_state_c::create_tkip_mic_failure_message(
+EAP_FUNC_EXPORT eap_status_e eapol_key_state_c::create_tkip_mic_failure_message(
 	eap_buf_chain_wr_c * const sent_packet,
 	const u32_t eapol_header_offset,
 	u32_t * const data_length,
@@ -6472,7 +6474,7 @@
 //--------------------------------------------------
 
 //
-eap_status_e eapol_key_state_c::allow_4_way_handshake()
+EAP_FUNC_EXPORT eap_status_e eapol_key_state_c::allow_4_way_handshake()
 {
 	EAP_TRACE_BEGIN(m_am_tools, TRACE_FLAGS_DEFAULT);
 	eap_status_e status = eap_status_process_general_error;
@@ -6608,7 +6610,7 @@
 //--------------------------------------------------
 
 //
-eap_status_e eapol_key_state_c::start_group_key_handshake(
+EAP_FUNC_EXPORT eap_status_e eapol_key_state_c::start_group_key_handshake(
 	const eap_am_network_id_c * const receive_network_id,
 	const eapol_protocol_version_e received_eapol_version,
 	const eapol_key_descriptor_type_e received_key_descriptor_type)
@@ -6739,7 +6741,7 @@
 //--------------------------------------------------
 
 //
-eap_status_e eapol_key_state_c::get_key_length(
+EAP_FUNC_EXPORT eap_status_e eapol_key_state_c::get_key_length(
 	const eapol_RSNA_key_header_c::eapol_RSNA_cipher_e cipher,
 	u16_t * const key_length)
 {
@@ -6777,7 +6779,7 @@
 //--------------------------------------------------
 
 //
-eap_status_e eapol_key_state_c::process_4_way_handshake_message(
+EAP_FUNC_EXPORT eap_status_e eapol_key_state_c::process_4_way_handshake_message(
 	const eap_am_network_id_c * const receive_network_id,
 	eapol_RSNA_key_header_c * const eapol_key_message,
 	const u32_t packet_length)
@@ -6882,7 +6884,7 @@
 //--------------------------------------------------
 
 //
-eap_status_e eapol_key_state_c::process_group_key_handshake_message(
+EAP_FUNC_EXPORT eap_status_e eapol_key_state_c::process_group_key_handshake_message(
 	const eap_am_network_id_c * const receive_network_id,
 	eapol_RSNA_key_header_c * const eapol_key_message,
 	const u32_t packet_length)
@@ -6951,7 +6953,7 @@
 //--------------------------------------------------
 
 //
-eap_status_e eapol_key_state_c::process_RSNA_key_descriptor(
+EAP_FUNC_EXPORT eap_status_e eapol_key_state_c::process_RSNA_key_descriptor(
 	const eap_am_network_id_c * const receive_network_id,
 	eap_general_header_base_c * const packet_data,
 	const u32_t packet_length)