eapol/eapol_framework/wapi_common/include/dummy_wapi_core.h
changeset 17 8840d3e38314
equal deleted inserted replaced
2:1c7bc153c08e 17:8840d3e38314
       
     1 /*
       
     2 * ============================================================================
       
     3 *  Name        : ./accesssec/eapol/eapol_framework/wapi_common/include/dummy_wapi_core.h
       
     4 *  Part of     : WAPI / WAPI       *** Info from the SWAD
       
     5 *  Description : WAPI authentication
       
     6 *  Version     : %version: 7 % << Don't touch! Updated by Synergy at check-out.
       
     7 *
       
     8 *  Copyright © 2001-2009 Nokia.  All rights reserved.
       
     9 *  This material, including documentation and any related computer
       
    10 *  programs, is protected by copyright controlled by Nokia.  All
       
    11 *  rights are reserved.  Copying, including reproducing, storing,
       
    12 *  adapting or translating, any or all of this material requires the
       
    13 *  prior written consent of Nokia.  This material also contains
       
    14 *  confidential information which may not be disclosed to others
       
    15 *  without the prior written consent of Nokia.
       
    16 * ============================================================================
       
    17 * Template version: 4.2
       
    18 */
       
    19 
       
    20 #ifndef _DUMMY_WAPI_CORE_H_
       
    21 #define _DUMMY_WAPI_CORE_H_
       
    22 
       
    23 #include "eap_am_types.h"
       
    24 #include "abs_eap_base_timer.h"
       
    25 #include "abs_wapi_am_core.h"
       
    26 #include "abs_ec_certificate_store.h"
       
    27 
       
    28 
       
    29 class abs_wapi_am_core_c;
       
    30 class abs_ec_certificate_store_c;
       
    31 
       
    32 
       
    33 /**
       
    34 *  This is a class to create a dummy wapi core object which can be used in the 
       
    35 *  generation of the platform-specific wapi AM objects in the class that provides 
       
    36 *  direct access to certificate store 
       
    37 */
       
    38 
       
    39 class dummy_wapi_core_c : public abs_wapi_am_core_c, public abs_ec_certificate_store_c
       
    40 {
       
    41 
       
    42 public:
       
    43 
       
    44     dummy_wapi_core_c();
       
    45     ~dummy_wapi_core_c();
       
    46     
       
    47     // ---------------------------------------------------------
       
    48     // dummy_wapi_core_c::get_is_valid()
       
    49     // ---------------------------------------------------------
       
    50     //
       
    51     bool get_is_valid();
       
    52     
       
    53     /*******************************************************
       
    54      ***********Inhertited from abs_wapi_am_core_c *********
       
    55      * *****************************************************/
       
    56     
       
    57     // ---------------------------------------------------------
       
    58     // dummy_wapi_core_c::set_timer()
       
    59     // ---------------------------------------------------------
       
    60     //
       
    61     eap_status_e set_timer(
       
    62             abs_eap_base_timer_c * const initializer, 
       
    63             const u32_t id, 
       
    64             void * const data,
       
    65             const u32_t time_ms);
       
    66 
       
    67     // ---------------------------------------------------------
       
    68     // dummy_wapi_core_c::cancel_timer()
       
    69     // ---------------------------------------------------------
       
    70     //
       
    71     eap_status_e cancel_timer(
       
    72             abs_eap_base_timer_c * const initializer, 
       
    73             const u32_t id);
       
    74     
       
    75     // ---------------------------------------------------------
       
    76     // dummy_wapi_core_c::set_session_timeout()
       
    77     // ---------------------------------------------------------
       
    78     //
       
    79     eap_status_e set_session_timeout(const u32_t session_timeout_ms);
       
    80 
       
    81     /************************************************************
       
    82      ********Inhertited from abs_ec_certificate_store_c *********
       
    83      ************************************************************/
       
    84     
       
    85     // ---------------------------------------------------------
       
    86     // dummy_wapi_core_c::complete_get_own_certificate()
       
    87     // ---------------------------------------------------------
       
    88     //
       
    89     eap_status_e complete_get_own_certificate(
       
    90         const eap_variable_data_c * const own_certificate);
       
    91 
       
    92     // ---------------------------------------------------------
       
    93     // dummy_wapi_core_c::complete_query_asu_id()
       
    94     // ---------------------------------------------------------
       
    95     //
       
    96     eap_status_e complete_query_asu_id(
       
    97         const eap_variable_data_c * const asn1_der_subject_name,
       
    98         const eap_variable_data_c * const asn1_der_issuer_name,
       
    99         const eap_variable_data_c * const asn1_der_sequence_number,
       
   100         const eap_status_e id_status);
       
   101 
       
   102     // ---------------------------------------------------------
       
   103     // dummy_wapi_core_c::complete_select_certificate()
       
   104     // ---------------------------------------------------------
       
   105     //
       
   106     eap_status_e complete_select_certificate(
       
   107         const eap_variable_data_c * const issuer_ID,
       
   108         const eap_variable_data_c * const certificate_ID,
       
   109         const eap_variable_data_c * const certificate);
       
   110 
       
   111     // ---------------------------------------------------------
       
   112     // dummy_wapi_core_c::complete_read_id_of_certificate()
       
   113     // ---------------------------------------------------------
       
   114     //
       
   115     eap_status_e complete_read_id_of_certificate(
       
   116         const eap_variable_data_c * const ID);
       
   117 
       
   118     // ---------------------------------------------------------
       
   119     // dummy_wapi_core_c::complete_create_signature_with_private_key()
       
   120     // ---------------------------------------------------------
       
   121     //
       
   122     eap_status_e complete_create_signature_with_private_key(
       
   123         const eap_variable_data_c * const signature,
       
   124         const eap_status_e signature_status);
       
   125 
       
   126     // ---------------------------------------------------------
       
   127     // dummy_wapi_core_c::complete_verify_signature_with_public_key()
       
   128     // ---------------------------------------------------------
       
   129     //
       
   130     eap_status_e complete_verify_signature_with_public_key(
       
   131         const eap_status_e verification_status);
       
   132 
       
   133     // ---------------------------------------------------------
       
   134     // dummy_wapi_core_c::complete_create_ecdh_temporary_keys()
       
   135     // ---------------------------------------------------------
       
   136     //
       
   137     eap_status_e complete_create_ecdh_temporary_keys(
       
   138         const eap_variable_data_c * const private_key_d,
       
   139         const eap_variable_data_c * const public_key_x,
       
   140         const eap_variable_data_c * const public_key_y);
       
   141 
       
   142     // ---------------------------------------------------------
       
   143     // dummy_wapi_core_c::complete_create_ecdh()
       
   144     // ---------------------------------------------------------
       
   145     //
       
   146     eap_status_e complete_create_ecdh(
       
   147         const eap_variable_data_c * const K_AB_x4,
       
   148         const eap_variable_data_c * const K_AB_y4);
       
   149 
       
   150 
       
   151     // ---------------------------------------------------------
       
   152     // dummy_wapi_core_c::state_notification()
       
   153     // ---------------------------------------------------------
       
   154     //
       
   155     void state_notification( const abs_eap_state_notification_c * const state);
       
   156 
       
   157     // ---------------------------------------------------------
       
   158     // dummy_wapi_core_c::read_configure()
       
   159     // ---------------------------------------------------------
       
   160     //
       
   161     eap_status_e read_configure(
       
   162         const eap_configuration_field_c * const field,
       
   163         eap_variable_data_c * const data);
       
   164         
       
   165 private:
       
   166 
       
   167 	// Nothing
       
   168 
       
   169 };
       
   170 
       
   171 #endif
       
   172 
       
   173 // end of file