|
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 150 |
|
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 // INCLUDE FILES |
|
29 #include <e32base.h> |
|
30 #include "eap_am_memory.h" |
|
31 #include "eapol_am_core_symbian_wlm.h" |
|
32 #include "eapol_am_core_symbian.h" |
|
33 |
|
34 eapol_am_core_symbian_wlm_c::~eapol_am_core_symbian_wlm_c() |
|
35 { |
|
36 delete iEapolCore; |
|
37 } |
|
38 |
|
39 eapol_am_core_symbian_wlm_c::eapol_am_core_symbian_wlm_c() |
|
40 : iEapolCore(0) |
|
41 , iLogoffCalled(ETrue) |
|
42 { |
|
43 } |
|
44 |
|
45 EXPORT_C eapol_am_core_symbian_wlm_c* eapol_am_core_symbian_wlm_c::NewL(abs_eapol_am_core_symbian_c* const aPartner, const bool aIsClient) |
|
46 { |
|
47 eapol_am_core_symbian_wlm_c* self = new(ELeave) eapol_am_core_symbian_wlm_c; |
|
48 CleanupStack::PushL(self); |
|
49 self->ConstructL(aPartner, aIsClient); |
|
50 CleanupStack::Pop(); |
|
51 return self; |
|
52 } |
|
53 |
|
54 void eapol_am_core_symbian_wlm_c::ConstructL(abs_eapol_am_core_symbian_c* const aPartner, |
|
55 const bool aIsClient) |
|
56 { |
|
57 iEapolCore = eapol_am_core_symbian_c::NewL(aPartner, aIsClient); |
|
58 } |
|
59 |
|
60 EXPORT_C TInt eapol_am_core_symbian_wlm_c::ReceivePacket(const TUint aLength, const TUint8* const aData) |
|
61 { |
|
62 return iEapolCore->ReceivePacket(aLength, aData); |
|
63 } |
|
64 |
|
65 |
|
66 EXPORT_C TInt eapol_am_core_symbian_wlm_c::start_authentication(const TIndexType aIndexType, |
|
67 const TUint aIndex, |
|
68 const TMacAddress& aLocalAddress, |
|
69 const TMacAddress& aRemoteAddress) |
|
70 { |
|
71 __ASSERT_DEBUG(iLogoffCalled, User::Panic(_L("EAPOL"), KErrGeneral)); |
|
72 iLogoffCalled = EFalse; |
|
73 return iEapolCore->start_authentication(aIndexType, aIndex, aLocalAddress, aRemoteAddress); |
|
74 } |
|
75 |
|
76 EXPORT_C TInt eapol_am_core_symbian_wlm_c::send_logoff(const TMacAddress& aLocalAddress, |
|
77 const TMacAddress& aRemoteAddress) |
|
78 { |
|
79 iLogoffCalled = ETrue; |
|
80 return iEapolCore->send_logoff(aLocalAddress, aRemoteAddress); |
|
81 } |
|
82 |
|
83 // End of file |