1 /* |
|
2 * Copyright (c) 2003 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 "Symbian Foundation License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 /** |
|
20 * @file ts_ipsec_crypto.h header file for main test code for IPsec |
|
21 */ |
|
22 |
|
23 #if (!defined __TEF_IPSEC_LOADPOLICY_BDD_H__) |
|
24 #define __TEF_IPSEC_LOADPOLICY_BDD_H__ |
|
25 |
|
26 |
|
27 //local includes here |
|
28 #include "ipsecpolapi.h" |
|
29 #include "te_IPSec_Load_Policy_Base.h" |
|
30 |
|
31 |
|
32 /** |
|
33 * This class is to test the policy loading in the order of Bypasss policy,Drop Policy, Drop Policy |
|
34 * |
|
35 */ |
|
36 |
|
37 class CT_LoadPolicyBBD : public CT_IPSec_Load_Policy_Base |
|
38 { |
|
39 public: |
|
40 CT_LoadPolicyBBD(); |
|
41 ~CT_LoadPolicyBBD(); |
|
42 |
|
43 static CT_LoadPolicyBBD* NewL(); |
|
44 virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); |
|
45 virtual TCleanupOperation CleanupOperation() |
|
46 { |
|
47 return CleanupOperation; |
|
48 } |
|
49 |
|
50 protected: |
|
51 void ConstructL(); |
|
52 |
|
53 private: |
|
54 static void CleanupOperation(TAny* aAny) |
|
55 { |
|
56 TInt* number = static_cast<TInt*>(aAny); |
|
57 delete number; |
|
58 } |
|
59 |
|
60 inline void DoCmdNewL(const TDesC& aEntry); |
|
61 void DoLoadBypassModePolicy(const TDesC& aSection); |
|
62 void DoCmdClose(const TDesC& /*aSection*/); |
|
63 void DoUnloadBypassPolicy(const TDesC& /*aSection*/); |
|
64 void DoUnloadDropPolicy(const TDesC& /*aSection*/); |
|
65 void DoLoadDropModePolicy(const TDesC& /*aSection*/); |
|
66 void DoLoadNewBypassModePolicy(const TDesC& /*aSection*/); |
|
67 void DoUnloadNewBypassPolicy(const TDesC& /*aSection*/); |
|
68 |
|
69 protected: |
|
70 |
|
71 TZoneInfoSet iMyZoneInfoSet; |
|
72 RIpsecPolicyServ iDrpPolicyServer; |
|
73 TPolicyHandlePckg iDrpPolicyHandle; |
|
74 RIpsecPolicyServ iBypsPolicyServer; |
|
75 TPolicyHandlePckg iBypsPolicyHandle; |
|
76 TPolicyHandlePckg iNewBypsPolicyHandle; |
|
77 }; |
|
78 |
|
79 #endif //__TEF_IPSEC_LOADPOLICY_BDD_H__ |
|