|
1 /* |
|
2 * Copyright (c) 2004-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: |
|
15 * USBMAN Server Security Policy definitions for Platform security. |
|
16 * |
|
17 */ |
|
18 |
|
19 /** |
|
20 @file |
|
21 @internalComponent |
|
22 */ |
|
23 |
|
24 #if !defined(__TRANSFERSERVERSECURITYPOLICY_H__) |
|
25 #define __TRANSFERSERVERSECURITYPOLICY_H__ |
|
26 |
|
27 |
|
28 const TInt KTransferServerRanges[] = |
|
29 { |
|
30 ESetConfigFileName, /** pass */ |
|
31 ETransferNotSupport /** fail (to KMaxTInt) */ |
|
32 }; |
|
33 |
|
34 const TUint KTransferServerRangeCount = sizeof(KTransferServerRanges) / sizeof(KTransferServerRanges[0]); |
|
35 |
|
36 /** Index numbers into KAcmServerElements[] */ |
|
37 const TInt KPolicyPass = 0; |
|
38 |
|
39 /** Mapping IPCs to policy element */ |
|
40 const TUint8 KTransferServerElementsIndex[KTransferServerRangeCount] = |
|
41 { |
|
42 KPolicyPass, /** All (valid) APIs */ |
|
43 CPolicyServer::ENotSupported, /** remainder of possible IPCs */ |
|
44 }; |
|
45 |
|
46 /** Individual policy elements */ |
|
47 const CPolicyServer::TPolicyElement KTransferServerElements[] = |
|
48 { |
|
49 { _INIT_SECURITY_POLICY_PASS }, |
|
50 }; |
|
51 |
|
52 /** Main policy */ |
|
53 const CPolicyServer::TPolicy KTransferServerPolicy = |
|
54 { |
|
55 CPolicyServer::EAlwaysPass, /** Specifies all connect attempts should pass */ |
|
56 KTransferServerRangeCount, |
|
57 KTransferServerRanges, |
|
58 KTransferServerElementsIndex, |
|
59 KTransferServerElements, |
|
60 }; |
|
61 #endif //__TRANSFERSERVERSECURITYPOLICY_H__ |