|
1 /* |
|
2 * Copyright (c) 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: Utility class for using IPSec policy server |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_IPSECPOLICYUTIL_H |
|
20 #define C_IPSECPOLICYUTIL_H |
|
21 |
|
22 #include <e32base.h> |
|
23 #include <ipsecpolapi.h> |
|
24 |
|
25 // FORWARD DECLARATIONS |
|
26 class CIpsecSaSpecList; |
|
27 class TInetAddr; |
|
28 |
|
29 class CIpsecPolicyUtil : public CBase |
|
30 { |
|
31 public: |
|
32 |
|
33 IMPORT_C static CIpsecPolicyUtil* NewL(); |
|
34 ~CIpsecPolicyUtil() ; |
|
35 |
|
36 |
|
37 /** |
|
38 * Gets acceptable IPsec policies for specified selectors. |
|
39 * |
|
40 * @param aLocalAddr IP address, including possible port, of the local end selector |
|
41 * @param aLocalMask Local end selector mask |
|
42 * @param aRemoteAddr IP address, including possible port, of the remote end selector |
|
43 * @param aRemoteMask Remote end selector mask |
|
44 * @param aProtocol Protocol id |
|
45 * @param aVpnNetId VPN net id |
|
46 */ |
|
47 IMPORT_C CIpsecSaSpecList* GetIpseSaSpecListLC( TInetAddr aLocalAddr, TInetAddr aLocalMask, |
|
48 TInetAddr aRemoteAddr, TInetAddr aRemoteMask, |
|
49 TInt aProtocol, TUint32 aVpnNetId ); |
|
50 |
|
51 private: |
|
52 CIpsecPolicyUtil(); |
|
53 void ConstructL(); |
|
54 |
|
55 private: // data |
|
56 |
|
57 /** |
|
58 * IPSec policy server. |
|
59 * Own. |
|
60 */ |
|
61 RIpsecPolicyServ iIpsecPolicyServ; |
|
62 |
|
63 }; |
|
64 |
|
65 |
|
66 #endif // C_IPSECPOLICYUTIL_H |