eapol/eapol_framework/eapol_common/include/eapol_test_stack_if.h
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 
       
    20 
       
    21 #if !defined(_EAPOL_TEST_STACK_IF_H_)
       
    22 #define _EAPOL_TEST_STACK_IF_H_
       
    23 
       
    24 #include "eap_header.h"
       
    25 #include "eap_array.h"
       
    26 
       
    27 
       
    28 class EAP_EXPORT eapol_test_stack_if_c
       
    29 {
       
    30 private:
       
    31 	//--------------------------------------------------
       
    32 
       
    33 	//--------------------------------------------------
       
    34 protected:
       
    35 	//--------------------------------------------------
       
    36 
       
    37 	//--------------------------------------------------
       
    38 public:
       
    39 	//--------------------------------------------------
       
    40 
       
    41 	// 
       
    42 	virtual ~eapol_test_stack_if_c()
       
    43 	{
       
    44 	}
       
    45 
       
    46 	// 
       
    47 	eapol_test_stack_if_c()
       
    48 	{
       
    49 	}
       
    50 
       
    51 	virtual eap_status_e packet_process(
       
    52 		const eap_am_network_id_c * const receive_network_id,
       
    53 		eap_general_header_base_c * const packet_data,
       
    54 		const u32_t packet_length) = 0;
       
    55 
       
    56 	virtual u32_t get_wrong_send_packet_index() = 0;
       
    57 
       
    58 	virtual void reset_authentication_can_succeed() = 0;
       
    59 
       
    60 	virtual void set_authentication_can_succeed() = 0;
       
    61 
       
    62 	virtual void restore_authentication_can_succeed() = 0;
       
    63 
       
    64 	virtual void set_authentication_must_not_succeed(
       
    65         const u32_t wrong_packet_index,
       
    66         const u32_t packet_index,
       
    67         const void * const wrong_packet_stack) = 0;
       
    68 
       
    69 	//--------------------------------------------------
       
    70 }; // class eapol_test_stack_if_c
       
    71 
       
    72 #endif //#if !defined(_EAPOL_TEST_STACK_IF_H_)
       
    73 
       
    74 //--------------------------------------------------
       
    75 
       
    76 
       
    77 
       
    78 // End.