|
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 // This is enumeration of EAPOL source code. |
|
20 #if defined(USE_EAP_MINIMUM_RELEASE_TRACES) |
|
21 #undef EAP_FILE_NUMBER_ENUM |
|
22 #define EAP_FILE_NUMBER_ENUM 118 |
|
23 #undef EAP_FILE_NUMBER_DATE |
|
24 #define EAP_FILE_NUMBER_DATE 1127594498 |
|
25 #endif //#if defined(USE_EAP_MINIMUM_RELEASE_TRACES) |
|
26 |
|
27 |
|
28 |
|
29 #include "eap_tls_peap_state_notification.h" |
|
30 #include "eap_type_tls_peap.h" |
|
31 #include "eap_tools.h" |
|
32 |
|
33 |
|
34 EAP_FUNC_EXPORT eap_tls_peap_state_notification_c::~eap_tls_peap_state_notification_c() |
|
35 { |
|
36 } |
|
37 |
|
38 EAP_FUNC_EXPORT eap_tls_peap_state_notification_c::eap_tls_peap_state_notification_c( |
|
39 const eap_am_network_id_c * const send_network_id, |
|
40 eap_boolean_e is_client, |
|
41 eap_protocol_layer_e layer, |
|
42 u32_t protocol, |
|
43 u32_t previous_state, |
|
44 u32_t current_state, |
|
45 u8_t eap_identifier, |
|
46 eap_boolean_e allow_send_eap_success) |
|
47 : m_layer(layer) |
|
48 , m_protocol(protocol) |
|
49 , m_previous_state(previous_state) |
|
50 , m_current_state(current_state) |
|
51 , m_send_network_id(send_network_id) |
|
52 , m_is_client(is_client) |
|
53 , m_eap_identifier(eap_identifier) |
|
54 , m_allow_send_eap_success(allow_send_eap_success) |
|
55 { |
|
56 } |
|
57 |
|
58 EAP_FUNC_EXPORT const eap_am_network_id_c * const eap_tls_peap_state_notification_c::get_send_network_id() const |
|
59 { |
|
60 return m_send_network_id; |
|
61 } |
|
62 |
|
63 EAP_FUNC_EXPORT const eap_protocol_layer_e eap_tls_peap_state_notification_c::get_protocol_layer() const |
|
64 { |
|
65 return m_layer; |
|
66 } |
|
67 |
|
68 EAP_FUNC_EXPORT const u32_t eap_tls_peap_state_notification_c::get_protocol() const |
|
69 { |
|
70 return m_protocol; |
|
71 } |
|
72 |
|
73 EAP_FUNC_EXPORT const u32_t eap_tls_peap_state_notification_c::get_previous_state() const |
|
74 { |
|
75 return m_previous_state; |
|
76 } |
|
77 |
|
78 EAP_FUNC_EXPORT const u32_t eap_tls_peap_state_notification_c::get_current_state() const |
|
79 { |
|
80 return m_current_state; |
|
81 } |
|
82 |
|
83 EAP_FUNC_EXPORT eap_const_string eap_tls_peap_state_notification_c::get_current_state_string() const |
|
84 { |
|
85 // NOTE this is static function. |
|
86 return eap_type_tls_peap_c::get_state_string((eap_type_tls_peap_state_variable_e)m_current_state); |
|
87 } |
|
88 |
|
89 EAP_FUNC_EXPORT eap_const_string eap_tls_peap_state_notification_c::get_previous_state_string() const |
|
90 { |
|
91 // NOTE this is static function. |
|
92 return eap_type_tls_peap_c::get_state_string((eap_type_tls_peap_state_variable_e)m_previous_state); |
|
93 } |
|
94 |
|
95 EAP_FUNC_EXPORT const eap_boolean_e eap_tls_peap_state_notification_c::get_is_client() const |
|
96 { |
|
97 return m_is_client; |
|
98 } |
|
99 |
|
100 EAP_FUNC_EXPORT const u8_t eap_tls_peap_state_notification_c::get_eap_identifier() const |
|
101 { |
|
102 return m_eap_identifier; |
|
103 } |
|
104 |
|
105 EAP_FUNC_EXPORT eap_boolean_e eap_tls_peap_state_notification_c::get_allow_send_eap_success() const |
|
106 { |
|
107 return m_allow_send_eap_success; |
|
108 } |
|
109 |
|
110 //-------------------------------------------------- |
|
111 |
|
112 |
|
113 |
|
114 // End. |