|
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 80 |
|
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_am_memory.h" |
|
30 #include "eap_type_gsmsim_mac_attributes.h" |
|
31 |
|
32 |
|
33 //-------------------------------------------------- |
|
34 |
|
35 eap_type_gsmsim_MAC_attributes_c::~eap_type_gsmsim_MAC_attributes_c() |
|
36 { |
|
37 } |
|
38 |
|
39 eap_type_gsmsim_MAC_attributes_c::eap_type_gsmsim_MAC_attributes_c() |
|
40 : m_MAC(0) |
|
41 , m_MAC_size(0) |
|
42 , m_data(0) |
|
43 , m_data_length(0u) |
|
44 { |
|
45 } |
|
46 |
|
47 eap_type_gsmsim_MAC_attributes_c::eap_type_gsmsim_MAC_attributes_c( |
|
48 u8_t * MAC, |
|
49 u32_t MAC_size, |
|
50 u8_t * const EAP_data, |
|
51 u32_t EAP_data_length) |
|
52 : m_MAC(MAC) |
|
53 , m_MAC_size(MAC_size) |
|
54 , m_data(EAP_data) |
|
55 , m_data_length(EAP_data_length) |
|
56 { |
|
57 } |
|
58 |
|
59 void eap_type_gsmsim_MAC_attributes_c::init( |
|
60 u8_t * MAC, |
|
61 u32_t MAC_size, |
|
62 u8_t * const EAP_data, |
|
63 u32_t EAP_data_length) |
|
64 { |
|
65 m_MAC = (MAC); |
|
66 m_MAC_size = (MAC_size); |
|
67 m_data = (EAP_data); |
|
68 m_data_length = (EAP_data_length); |
|
69 } |
|
70 |
|
71 u8_t * eap_type_gsmsim_MAC_attributes_c::get_MAC() const |
|
72 { |
|
73 return m_MAC; |
|
74 } |
|
75 |
|
76 void eap_type_gsmsim_MAC_attributes_c::set_MAC(u8_t * MAC) |
|
77 { |
|
78 m_MAC = MAC; |
|
79 } |
|
80 |
|
81 u32_t eap_type_gsmsim_MAC_attributes_c::get_MAC_size() const |
|
82 { |
|
83 return m_MAC_size; |
|
84 } |
|
85 |
|
86 eap_type_gsmsim_MAC_attributes_c * eap_type_gsmsim_MAC_attributes_c::copy() const |
|
87 { |
|
88 return new eap_type_gsmsim_MAC_attributes_c( |
|
89 m_MAC, |
|
90 m_MAC_size, |
|
91 m_data, |
|
92 m_data_length); |
|
93 } |
|
94 |
|
95 u8_t * eap_type_gsmsim_MAC_attributes_c::get_data() const |
|
96 { |
|
97 return m_data; |
|
98 } |
|
99 |
|
100 u32_t eap_type_gsmsim_MAC_attributes_c::get_data_length() |
|
101 { |
|
102 return m_data_length; |
|
103 } |
|
104 |
|
105 void eap_type_gsmsim_MAC_attributes_c::set_data(u8_t * const data) |
|
106 { |
|
107 m_data = data; |
|
108 } |
|
109 |
|
110 //-------------------------------------------------- |
|
111 |
|
112 |
|
113 |
|
114 // End. |