|
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_CORE_NAK_INFO_H_) |
|
22 #define _EAP_CORE_NAK_INFO_H_ |
|
23 |
|
24 #include "eap_tools.h" |
|
25 #include "eap_am_export.h" |
|
26 #include "abs_eap_core.h" |
|
27 #include "eap_base_type.h" |
|
28 #include "abs_eap_base_type.h" |
|
29 #include "eap_variable_data.h" |
|
30 #include "eap_core_map.h" |
|
31 #include "eap_config.h" |
|
32 #include "eap_am_network_id.h" |
|
33 #include "abs_eap_am_mutex.h" |
|
34 #include "eap_core_retransmission.h" |
|
35 #include "abs_eap_stack_interface.h" |
|
36 |
|
37 |
|
38 //-------------------------------------------------- |
|
39 |
|
40 /** |
|
41 * This class stores the information of received EAP-Nak. |
|
42 */ |
|
43 class eap_core_nak_info_c |
|
44 : public eap_am_network_id_c |
|
45 { |
|
46 |
|
47 private: |
|
48 |
|
49 eap_type_value_e m_proposed_eap_type; |
|
50 |
|
51 u8_t m_eap_identifier; |
|
52 |
|
53 public: |
|
54 |
|
55 /** |
|
56 * The destructor of the eap_core_nak_info_c class does nothing special. |
|
57 */ |
|
58 EAP_FUNC_IMPORT virtual ~eap_core_nak_info_c(); |
|
59 |
|
60 /** |
|
61 * The constructor initializes member attributes using parameters passed to it. |
|
62 * @param tools is pointer to the tools class. @see abs_eap_am_tools_c. |
|
63 * @param send_network_id is the network identity. |
|
64 * @param proposed_eap_type is the proposed EAP type. |
|
65 */ |
|
66 EAP_FUNC_IMPORT eap_core_nak_info_c( |
|
67 abs_eap_am_tools_c * const tools, |
|
68 const eap_am_network_id_c * const send_network_id, |
|
69 const eap_type_value_e proposed_eap_type, |
|
70 const u8_t eap_identifier); |
|
71 |
|
72 EAP_FUNC_IMPORT eap_type_value_e get_proposed_eap_type() const; |
|
73 |
|
74 EAP_FUNC_IMPORT u8_t get_eap_identifier() const; |
|
75 }; |
|
76 |
|
77 |
|
78 #endif //#if !defined(_EAP_CORE_NAK_INFO_H_) |
|
79 |
|
80 //-------------------------------------------------- |
|
81 |
|
82 |
|
83 |
|
84 // End. |