eapol/eapol_framework/eapol_symbian/am/include/eap_am_type_sim_symbian.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(_EAP_AM_TYPE_SIM_SYMBIAN_H_)
       
    22 #define _EAP_AM_TYPE_SIM_SYMBIAN_H_
       
    23 
       
    24 #include "eap_tools.h"
       
    25 #include "eap_am_export.h"
       
    26 #include "abs_eap_base_type.h"
       
    27 #include "eap_am_type_sim.h"
       
    28 
       
    29 // 
       
    30 class EAP_EXPORT eap_am_type_sim_simulator_c
       
    31 : public eap_am_type_sim_c
       
    32 {
       
    33 private:
       
    34 	//--------------------------------------------------
       
    35 
       
    36 	abs_eap_am_tools_c * const m_am_tools;
       
    37 
       
    38 	//--------------------------------------------------
       
    39 protected:
       
    40 	//--------------------------------------------------
       
    41 
       
    42 	//--------------------------------------------------
       
    43 public:
       
    44 	//--------------------------------------------------
       
    45 
       
    46 	// 
       
    47 	EAP_FUNC_IMPORT virtual ~eap_am_type_sim_simulator_c();
       
    48 
       
    49 	// 
       
    50 	EAP_FUNC_IMPORT eap_am_type_sim_simulator_c(
       
    51 		abs_eap_am_tools_c * const m_am_tools, abs_eap_am_type_sim_c * const partner);
       
    52 
       
    53 	// 
       
    54 	EAP_FUNC_IMPORT eap_status_e query_SIM_imsi(
       
    55 		u8_t * const imsi, const u32_t max_length, u32_t * const imsi_length);
       
    56 
       
    57 	//
       
    58 	EAP_FUNC_IMPORT eap_status_e query_SIM_kc_and_sres(
       
    59 		const u8_t * const imsi, const u32_t imsi_length,
       
    60 		const u8_t * const rand, const u32_t rand_length,
       
    61 		u8_t * const kc, u32_t * const kc_length,
       
    62 		u8_t * const sres, u32_t * const sres_length);
       
    63 
       
    64 	//
       
    65 	EAP_FUNC_IMPORT eap_status_e query_SIM_triplets(
       
    66 		//const eap_state_selector_c * const state_selector,
       
    67 		const eap_variable_data_c * const imsi,
       
    68 		eap_type_sim_triplet_array_c * const triplets);
       
    69 
       
    70 	//
       
    71 	EAP_FUNC_IMPORT eap_status_e query_SIM_kc_sres(
       
    72 		//const eap_state_selector_c * const state_selector,
       
    73 		const eap_variable_data_c * const n_rands,
       
    74 		eap_variable_data_c * const n_kc,
       
    75 		eap_variable_data_c * const n_sres);
       
    76 
       
    77 	//--------------------------------------------------
       
    78 }; // class eap_am_type_sim_simulator_c
       
    79 
       
    80 
       
    81 /** @file */ 
       
    82 
       
    83 /**
       
    84  * This function creates a new instance of adaptation module of simple SIM EAP-type.
       
    85  * @param tools is pointer to the abs_eap_am_tools class created by the adaptation module.
       
    86  * @param partner is pointer to the caller of the new_eap_am_type_sim().
       
    87  * Simple SIM EAP-type will callback caller using the partner pointer.
       
    88  */
       
    89 EAP_C_FUNC_IMPORT  eap_am_type_sim_c *new_eap_am_type_sim(
       
    90 	abs_eap_am_tools_c * const tools,
       
    91 	abs_eap_am_type_sim_c * const partner);
       
    92 
       
    93 
       
    94 #endif //#if !defined(_EAP_AM_TYPE_SIM_SYMBIAN_H_)
       
    95 
       
    96 //--------------------------------------------------
       
    97 
       
    98 
       
    99 
       
   100 // End.