|
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(_AKA_INITIALIZED_H_) |
|
22 #define _AKA_INITIALIZED_H_ |
|
23 |
|
24 #include "eap_tools.h" |
|
25 #include "eap_am_export.h" |
|
26 #include "eap_base_type.h" |
|
27 #include "eap_variable_data.h" |
|
28 #include "eap_type_aka_header.h" |
|
29 #include "eap_type_aka_types.h" |
|
30 #include "eap_type_aka_payloads.h" |
|
31 #include "abs_eap_am_tools.h" |
|
32 |
|
33 |
|
34 const u32_t AKA_MAX_OFFER_COUNT = 3; |
|
35 |
|
36 |
|
37 class EAP_EXPORT eap_type_aka_initialized_c |
|
38 { |
|
39 private: |
|
40 //-------------------------------------------------- |
|
41 |
|
42 abs_eap_am_tools_c * const m_am_tools; |
|
43 |
|
44 u32_t m_counter; |
|
45 |
|
46 //-------------------------------------------------- |
|
47 public: |
|
48 //-------------------------------------------------- |
|
49 |
|
50 // |
|
51 virtual ~eap_type_aka_initialized_c() |
|
52 { |
|
53 } |
|
54 |
|
55 // |
|
56 eap_type_aka_initialized_c( |
|
57 abs_eap_am_tools_c * const tools) |
|
58 : m_am_tools(tools) |
|
59 , m_counter(1u) |
|
60 { |
|
61 } |
|
62 |
|
63 u32_t counter() |
|
64 { |
|
65 return m_counter; |
|
66 } |
|
67 |
|
68 void increment() |
|
69 { |
|
70 ++m_counter; |
|
71 } |
|
72 |
|
73 //-------------------------------------------------- |
|
74 |
|
75 void reset() |
|
76 { |
|
77 m_counter = 0u; |
|
78 } |
|
79 |
|
80 //-------------------------------------------------- |
|
81 |
|
82 }; |
|
83 |
|
84 |
|
85 #endif //#if !defined(_AKA_INITIALIZED_H_) |
|
86 |
|
87 //-------------------------------------------------- |
|
88 |
|
89 |
|
90 |
|
91 // End. |