eapol/eapol_framework/eapol_common/type/mschapv2/include/eap_type_mschapv2_payloads.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/eapol/eapol_framework/eapol_common/type/mschapv2/include/eap_type_mschapv2_payloads.h Thu Dec 17 08:47:43 2009 +0200
@@ -0,0 +1,86 @@
+/*
+* Copyright (c) 2001-2006 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of the License "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description: EAP and WLAN authentication protocols.
+*
+*/
+
+
+
+
+#ifndef _MSCHAPV2_PAYLOADS_H_
+#define _MSCHAPV2_PAYLOADS_H_
+
+#include "eap_variable_data.h"
+
+class EAP_EXPORT mschapv2_data_c
+{
+private:
+
+ eap_variable_data_c m_username; // Ascii
+ eap_variable_data_c m_password; // Unicode
+
+ eap_variable_data_c m_challenge;
+ eap_variable_data_c m_peer_challenge;
+
+ u8_t m_identifier;
+ u8_t m_mschapv2id;
+
+ u32_t m_error_code;
+
+ // Client
+ eap_boolean_e m_password_prompt_enabled;
+
+ eap_variable_data_c m_nt_response;
+ eap_variable_data_c m_new_password;
+
+protected:
+
+public:
+
+ EAP_FUNC_IMPORT ~mschapv2_data_c();
+
+ EAP_FUNC_IMPORT mschapv2_data_c(abs_eap_am_tools_c * const tools);
+
+ eap_boolean_e get_password_prompt_enabled() const;
+
+ void set_password_prompt_enabled(eap_boolean_e is_enabled);
+
+ eap_variable_data_c * const get_username();
+
+ eap_variable_data_c * const get_password();
+
+ eap_variable_data_c * const get_challenge();
+
+ eap_variable_data_c * const get_peer_challenge();
+
+ // Client
+
+ eap_variable_data_c * const get_nt_response();
+
+ eap_variable_data_c * const get_new_password();
+
+ u8_t get_identifier() const;
+
+ void set_identifier(u8_t identifier);
+
+ u8_t get_mschapv2id() const;
+
+ void set_mschapv2id(u8_t mschapv2id);
+
+ u32_t get_error_code() const;
+
+ void set_error_code(u32_t error_code);
+};
+
+#endif //_MSCHAPV2_PAYLOADS_H_