|
1 /* |
|
2 * Copyright (c) 2007-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: CIkev1InfoNegotiation class |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef C_IKEV1INFONEGOTIATION_H |
|
19 #define C_IKEV1INFONEGOTIATION_H |
|
20 |
|
21 #include <e32base.h> |
|
22 |
|
23 class CIkev1Negotiation; |
|
24 class CIkev1PluginSession; |
|
25 class ThdrISAKMP; |
|
26 class TPayloadISAKMP; |
|
27 class TNotificationISAKMP; |
|
28 class MIkeDebug; |
|
29 class MKmdEventLoggerIf; |
|
30 class TInetAddr; |
|
31 |
|
32 class CIkev1InfoNegotiation : public CBase |
|
33 { |
|
34 friend class TIkev1IsakmpStream; |
|
35 friend class CIkev1PlugIn; |
|
36 |
|
37 public: |
|
38 CIkev1InfoNegotiation( CIkev1PluginSession& aPluginSession, |
|
39 CIkev1Negotiation& aNegotiation, |
|
40 MIkeDebug& aDebug ); |
|
41 void ExecuteL( const ThdrISAKMP& aHdr, |
|
42 const TInetAddr& aSrcAddr, |
|
43 TInt aLocalPort ); |
|
44 |
|
45 MKmdEventLoggerIf& EventLogger(); |
|
46 |
|
47 private: |
|
48 void InfoExchangeL( const ThdrISAKMP& aHdr ); |
|
49 TBool ProcessNotificationL( const TPayloadISAKMP* aPayload, TBool aEncrypted ); |
|
50 TBool ProcessDeleteL( const TPayloadISAKMP* aPayload ); |
|
51 TBool ProcessDPDNotifyL( TNotificationISAKMP* aNotify ); |
|
52 |
|
53 private: |
|
54 CIkev1PluginSession& iPluginSession; |
|
55 CIkev1Negotiation& iNegotiation; |
|
56 TUint32 iMessageId; |
|
57 MIkeDebug& iDebug; |
|
58 }; |
|
59 |
|
60 #endif // C_IKEV1INFONEGOTIATION_H |