26
|
1 |
/*
|
|
2 |
* Copyright (c) 2001-2010 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 |
/*
|
49
|
19 |
* %version: 10 %
|
26
|
20 |
*/
|
|
21 |
|
|
22 |
#ifndef EAPCOREINTERFACE_H_
|
|
23 |
#define EAPCOREINTERFACE_H_
|
|
24 |
|
|
25 |
|
49
|
26 |
#include "eap_am_export.h"
|
|
27 |
// Start: added by script change_export_macros.sh.
|
|
28 |
#if defined(EAP_NO_EXPORT_EAPCOREINTERFACE_H)
|
|
29 |
#define EAP_CLASS_VISIBILITY_EAPCOREINTERFACE_H EAP_NONSHARABLE
|
|
30 |
#define EAP_FUNC_VISIBILITY_EAPCOREINTERFACE_H
|
|
31 |
#define EAP_C_FUNC_VISIBILITY_EAPCOREINTERFACE_H
|
|
32 |
#define EAP_FUNC_EXPORT_EAPCOREINTERFACE_H
|
|
33 |
#define EAP_C_FUNC_EXPORT_EAPCOREINTERFACE_H
|
|
34 |
#elif defined(EAP_EXPORT_EAPCOREINTERFACE_H)
|
|
35 |
#define EAP_CLASS_VISIBILITY_EAPCOREINTERFACE_H EAP_EXPORT
|
|
36 |
#define EAP_FUNC_VISIBILITY_EAPCOREINTERFACE_H EAP_FUNC_EXPORT
|
|
37 |
#define EAP_C_FUNC_VISIBILITY_EAPCOREINTERFACE_H EAP_C_FUNC_EXPORT
|
|
38 |
#define EAP_FUNC_EXPORT_EAPCOREINTERFACE_H EAP_FUNC_EXPORT
|
|
39 |
#define EAP_C_FUNC_EXPORT_EAPCOREINTERFACE_H EAP_C_FUNC_EXPORT
|
|
40 |
#else
|
|
41 |
#define EAP_CLASS_VISIBILITY_EAPCOREINTERFACE_H EAP_IMPORT
|
|
42 |
#define EAP_FUNC_VISIBILITY_EAPCOREINTERFACE_H EAP_FUNC_IMPORT
|
|
43 |
#define EAP_C_FUNC_VISIBILITY_EAPCOREINTERFACE_H EAP_C_FUNC_IMPORT
|
|
44 |
#define EAP_FUNC_EXPORT_EAPCOREINTERFACE_H
|
|
45 |
#define EAP_C_FUNC_EXPORT_EAPCOREINTERFACE_H
|
|
46 |
#endif
|
|
47 |
// End: added by script change_export_macros.sh.
|
26
|
48 |
#include "abs_eap_am_message_if.h"
|
|
49 |
#include "eap_am_message_if.h"
|
|
50 |
#include "EapSendInterface.h"
|
|
51 |
#include "EapProcessInterface.h"
|
|
52 |
#include "EapServerClientDef.h"
|
|
53 |
|
49
|
54 |
class EAP_CLASS_VISIBILITY_EAPCOREINTERFACE_H CEapCoreInterface :
|
26
|
55 |
public CBase,
|
|
56 |
public MEapSendInterface,
|
|
57 |
public eap_am_message_if_c
|
|
58 |
|
|
59 |
{
|
|
60 |
public:
|
|
61 |
/**
|
|
62 |
* Two-phased constructor.
|
|
63 |
*/
|
49
|
64 |
EAP_FUNC_VISIBILITY_EAPCOREINTERFACE_H CEapCoreInterface(const u32_t MTU);
|
26
|
65 |
|
|
66 |
/**
|
|
67 |
* Destructor.
|
|
68 |
*/
|
49
|
69 |
EAP_FUNC_VISIBILITY_EAPCOREINTERFACE_H virtual ~CEapCoreInterface();
|
26
|
70 |
|
|
71 |
public: // New functions
|
|
72 |
|
|
73 |
/**
|
|
74 |
* From eap_am_message_if_c
|
|
75 |
* Initialize interface to EAPOL or WAPI.
|
|
76 |
* @since S60 v9.2
|
|
77 |
*/
|
|
78 |
|
49
|
79 |
EAP_FUNC_VISIBILITY_EAPCOREINTERFACE_H bool get_is_valid();
|
26
|
80 |
|
|
81 |
/// Function receives the data message from lower layer.
|
|
82 |
/// Data is formatted to Attribute-Value Pairs.
|
|
83 |
/// Look at eap_tlv_header_c and eap_tlv_message_data_c.
|
49
|
84 |
EAP_FUNC_VISIBILITY_EAPCOREINTERFACE_H eap_status_e process_data(const void * const data, const u32_t length);
|
26
|
85 |
|
|
86 |
// This is documented in abs_eap_stack_interface_c::configure().
|
49
|
87 |
EAP_FUNC_VISIBILITY_EAPCOREINTERFACE_H eap_status_e configure(
|
26
|
88 |
const eap_variable_data_c * const client_configuration);
|
|
89 |
|
|
90 |
// This is documented in abs_eap_stack_interface_c::shutdown().
|
49
|
91 |
EAP_FUNC_VISIBILITY_EAPCOREINTERFACE_H eap_status_e shutdown();
|
26
|
92 |
|
49
|
93 |
EAP_FUNC_VISIBILITY_EAPCOREINTERFACE_H void set_partner(abs_eap_am_message_if_c * const client);
|
26
|
94 |
|
|
95 |
/**
|
|
96 |
* from MEapSendInterface
|
|
97 |
*/
|
49
|
98 |
EAP_FUNC_VISIBILITY_EAPCOREINTERFACE_H TInt SendData(
|
26
|
99 |
const void * const aData,
|
|
100 |
const TInt aLength );
|
|
101 |
|
49
|
102 |
EAP_FUNC_VISIBILITY_EAPCOREINTERFACE_H CEapProcessInterface* ConstrucL(abs_eap_am_tools_c * const tools );
|
26
|
103 |
|
|
104 |
private:
|
|
105 |
|
|
106 |
|
|
107 |
abs_eap_am_message_if_c* iClient;
|
|
108 |
TBool iIsValid;
|
|
109 |
abs_eap_am_tools_c* iTools;
|
|
110 |
CEapCoreInterface* iEapCoreInterface;
|
|
111 |
CEapProcessInterface* iServer;
|
|
112 |
TUint32 iMTU;
|
|
113 |
};
|
|
114 |
|
|
115 |
#endif /* EAPCOREINTERFACE_H_ */
|