eapol/eapol_framework/eapol_common/am/common/eap_am_memory_store_data.cpp
changeset 0 c8830336c852
child 2 1c7bc153c08e
equal deleted inserted replaced
-1:000000000000 0:c8830336c852
       
     1 /*
       
     2 * Copyright (c) 2001-2006 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the License "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  EAP and WLAN authentication protocols.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // This is enumeration of EAPOL source code.
       
    20 #if defined(USE_EAP_MINIMUM_RELEASE_TRACES)
       
    21 	#undef EAP_FILE_NUMBER_ENUM
       
    22 	#define EAP_FILE_NUMBER_ENUM 11 
       
    23 	#undef EAP_FILE_NUMBER_DATE 
       
    24 	#define EAP_FILE_NUMBER_DATE 1127594498 
       
    25 #endif //#if defined(USE_EAP_MINIMUM_RELEASE_TRACES)
       
    26 
       
    27 
       
    28 #include "eap_am_memory_store_data.h"
       
    29 
       
    30 //#if !defined(NO_EAP_AM_MEMORY_STORE)
       
    31 
       
    32 
       
    33 //-------------------------------------------------------------------
       
    34 
       
    35 EAP_FUNC_EXPORT abs_eap_am_memory_store_data_c::~abs_eap_am_memory_store_data_c()
       
    36 {
       
    37 }
       
    38 
       
    39 //-------------------------------------------------------------------
       
    40 
       
    41 EAP_FUNC_EXPORT abs_eap_am_memory_store_data_c::abs_eap_am_memory_store_data_c()
       
    42 {
       
    43 }
       
    44 
       
    45 //-------------------------------------------------------------------
       
    46 //-------------------------------------------------------------------
       
    47 //-------------------------------------------------------------------
       
    48 
       
    49 
       
    50 EAP_FUNC_EXPORT eap_am_memory_store_tlv_data_c::~eap_am_memory_store_tlv_data_c()
       
    51 {
       
    52 }
       
    53 
       
    54 EAP_FUNC_EXPORT eap_am_memory_store_tlv_data_c::eap_am_memory_store_tlv_data_c(
       
    55 	abs_eap_am_tools_c * const tools)
       
    56 	: m_am_tools(tools)
       
    57 	  , m_tlv_data(tools)
       
    58 	  , m_timer_id(0ul)
       
    59 {
       
    60 }
       
    61 
       
    62 EAP_FUNC_EXPORT eap_status_e eap_am_memory_store_tlv_data_c::copy_message_data(
       
    63 	const eap_tlv_message_data_c * const tlv_data,
       
    64 	const u32_t timer_id)
       
    65 {
       
    66 	EAP_TRACE_BEGIN(m_am_tools, TRACE_FLAGS_DEFAULT);
       
    67 
       
    68 	m_timer_id = timer_id;
       
    69 
       
    70 	eap_status_e status = m_tlv_data.copy_message_data(
       
    71 		tlv_data->get_message_data_length(),
       
    72 		tlv_data->get_message_data());
       
    73 	
       
    74 	EAP_TRACE_END(m_am_tools, TRACE_FLAGS_DEFAULT);
       
    75 	return EAP_STATUS_RETURN(m_am_tools, status);
       
    76 }
       
    77 
       
    78 EAP_FUNC_EXPORT u32_t eap_am_memory_store_tlv_data_c::get_timer_id() const
       
    79 {
       
    80 	return m_timer_id;
       
    81 }
       
    82 
       
    83 EAP_FUNC_EXPORT void * eap_am_memory_store_tlv_data_c::get_message_data() const
       
    84 {
       
    85 	return m_tlv_data.get_message_data();
       
    86 }
       
    87 
       
    88 EAP_FUNC_EXPORT u32_t eap_am_memory_store_tlv_data_c::get_message_data_length() const
       
    89 {
       
    90 	return m_tlv_data.get_message_data_length();
       
    91 }
       
    92 
       
    93 EAP_FUNC_EXPORT void eap_am_memory_store_tlv_data_c::object_increase_reference_count()
       
    94 {
       
    95 }
       
    96 
       
    97 EAP_FUNC_EXPORT u32_t eap_am_memory_store_tlv_data_c::object_decrease_reference_count()
       
    98 {
       
    99 	return 0ul;
       
   100 }
       
   101 
       
   102 
       
   103 //#endif //#if !defined(NO_EAP_AM_MEMORY_STORE)
       
   104 
       
   105 
       
   106 
       
   107 // End.