|
1 /* |
|
2 * Copyright (c) 2003-2009 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 "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: IKE v2 Protocol plug-in. |
|
15 * |
|
16 */ |
|
17 #if !defined(__IKEV2PLUGIN_H__) |
|
18 #define __IKEV2PLUGIN_H__ |
|
19 |
|
20 #include <e32base.h> |
|
21 #include <ipsecpolapi.h> |
|
22 |
|
23 #include "ikepluginif.h" |
|
24 #include "pfkeysocketif.h" |
|
25 |
|
26 class CIkev2PluginSession; |
|
27 class CIpsecSaSpecList; |
|
28 class CIpsecPolicyUtil; |
|
29 |
|
30 |
|
31 NONSHARABLE_CLASS(CIkev2PlugIn) : public CBase, |
|
32 public MIkePluginIf, |
|
33 public MPFKeyMessageListener |
|
34 |
|
35 /** |
|
36 * IKEv2 protocol plugin |
|
37 * @internalComponent |
|
38 */ |
|
39 { |
|
40 public: |
|
41 static CIkev2PlugIn* NewL( MKmdEventLoggerIf& aEventLogger, |
|
42 MIkeDebug& aDebug ); |
|
43 ~CIkev2PlugIn(); |
|
44 |
|
45 MIkePluginSessionIf* CreateSessionL( TUint32 aVpnIapId, |
|
46 TUint32 aVpnNetId, |
|
47 TUint32 aVpnInterfaceIndex, |
|
48 MIkeDataInterface& aIkeDataInterface ); |
|
49 |
|
50 void PfkeyMessageReceived( const TPfkeyMessage& aPfkeyMessage ); |
|
51 void PluginSessionDeleted(const MIkePluginSessionIf* aDeletedSession); |
|
52 |
|
53 private: |
|
54 CIkev2PlugIn( MKmdEventLoggerIf& aEventLogger, |
|
55 MIkeDebug& aDebug ); |
|
56 void ConstructL(); |
|
57 |
|
58 |
|
59 RPointerArray<CIkev2PluginSession> iPluginSessions; |
|
60 MKmdEventLoggerIf& iEventLogger; |
|
61 MIkeDebug& iDebug; |
|
62 |
|
63 CPFKeySocketIf* iPfKeySocketIf; |
|
64 CIpsecPolicyUtil* iIpsecPolicyUtil; |
|
65 }; |
|
66 |
|
67 #endif |