eapol/eapol_framework/eapol_common/type/radius/include/eap_radius_mac_attributes.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/eapol/eapol_framework/eapol_common/type/radius/include/eap_radius_mac_attributes.h Thu Dec 17 08:47:43 2009 +0200
@@ -0,0 +1,84 @@
+/*
+* 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.
+*
+*/
+
+
+
+
+#if !defined(_EAP_TYPE_RADIUS_MAC_ATTRIBUTES_H_)
+#define _EAP_TYPE_RADIUS_MAC_ATTRIBUTES_H_
+
+#include "eap_radius_header.h"
+#include "eap_type_all_types.h"
+
+//--------------------------------------------------
+
+/// These are the stored attributes for message authentication calculations.
+class eap_radius_MAC_attributes_c
+{
+private:
+ //--------------------------------------------------
+
+ u8_t * m_MAC; ///< This is the pointer to MAC.
+ u32_t m_MAC_size; ///< This is the size of the MAC.
+ u8_t *m_data; ///< This is the pointer to the authenticated data.
+ u32_t m_data_length; ///< This the length of the authenticated data.
+
+ //--------------------------------------------------
+public:
+ //--------------------------------------------------
+
+ virtual ~eap_radius_MAC_attributes_c();
+
+ eap_radius_MAC_attributes_c();
+
+ eap_radius_MAC_attributes_c(
+ u8_t * MAC,
+ u32_t MAC_size,
+ u8_t * const EAP_data,
+ u32_t EAP_data_length);
+
+ void init(
+ u8_t * MAC,
+ u32_t MAC_size,
+ u8_t * const EAP_data,
+ u32_t EAP_data_length);
+
+ u8_t * get_MAC() const;
+
+ void set_MAC(u8_t * MAC);
+
+ u32_t get_MAC_size() const;
+
+ eap_radius_MAC_attributes_c * copy() const;
+
+ u8_t * get_data() const;
+
+ u32_t get_data_length();
+
+ void set_data(u8_t * const data);
+
+ //--------------------------------------------------
+};
+
+
+#endif //#if !defined(_EAP_TYPE_RADIUS_MAC_ATTRIBUTES_H_)
+
+//--------------------------------------------------
+
+
+
+// End.