|
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 #ifndef _MSCHAPV2_PAYLOADS_H_ |
|
22 #define _MSCHAPV2_PAYLOADS_H_ |
|
23 |
|
24 #include "eap_variable_data.h" |
|
25 |
|
26 class EAP_EXPORT mschapv2_data_c |
|
27 { |
|
28 private: |
|
29 |
|
30 eap_variable_data_c m_username; // Ascii |
|
31 eap_variable_data_c m_password; // Unicode |
|
32 |
|
33 eap_variable_data_c m_challenge; |
|
34 eap_variable_data_c m_peer_challenge; |
|
35 |
|
36 u8_t m_identifier; |
|
37 u8_t m_mschapv2id; |
|
38 |
|
39 u32_t m_error_code; |
|
40 |
|
41 // Client |
|
42 eap_boolean_e m_password_prompt_enabled; |
|
43 |
|
44 eap_variable_data_c m_nt_response; |
|
45 eap_variable_data_c m_new_password; |
|
46 |
|
47 protected: |
|
48 |
|
49 public: |
|
50 |
|
51 EAP_FUNC_IMPORT ~mschapv2_data_c(); |
|
52 |
|
53 EAP_FUNC_IMPORT mschapv2_data_c(abs_eap_am_tools_c * const tools); |
|
54 |
|
55 eap_boolean_e get_password_prompt_enabled() const; |
|
56 |
|
57 void set_password_prompt_enabled(eap_boolean_e is_enabled); |
|
58 |
|
59 eap_variable_data_c * const get_username(); |
|
60 |
|
61 eap_variable_data_c * const get_password(); |
|
62 |
|
63 eap_variable_data_c * const get_challenge(); |
|
64 |
|
65 eap_variable_data_c * const get_peer_challenge(); |
|
66 |
|
67 // Client |
|
68 |
|
69 eap_variable_data_c * const get_nt_response(); |
|
70 |
|
71 eap_variable_data_c * const get_new_password(); |
|
72 |
|
73 u8_t get_identifier() const; |
|
74 |
|
75 void set_identifier(u8_t identifier); |
|
76 |
|
77 u8_t get_mschapv2id() const; |
|
78 |
|
79 void set_mschapv2id(u8_t mschapv2id); |
|
80 |
|
81 u32_t get_error_code() const; |
|
82 |
|
83 void set_error_code(u32_t error_code); |
|
84 }; |
|
85 |
|
86 #endif //_MSCHAPV2_PAYLOADS_H_ |