|
1 /* |
|
2 * Copyright (c) 2003-2005 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 "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: Common definitions of client and server |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 #ifndef _RTSECMGRDEF_H |
|
24 #define _RTSECMGRDEF_H |
|
25 |
|
26 #include <e32base.h> |
|
27 |
|
28 /* |
|
29 * Enumerations for client-server message argument indices |
|
30 */ |
|
31 enum TSecMgrMsgSlot |
|
32 { |
|
33 EMsgArgZero = 0, |
|
34 EMsgArgOne, |
|
35 EMsgArgTwo, |
|
36 EMsgArgThree, |
|
37 EMsgArgFour |
|
38 }; |
|
39 |
|
40 //opcodes used in message passing between client and server |
|
41 enum TRTSecServRqst |
|
42 { |
|
43 ESecServCloseSession = 1, |
|
44 ESetPolicy, |
|
45 EUpdatePolicy, |
|
46 EUnsetPolicy, |
|
47 ERegisterScript, |
|
48 ERegisterScriptWithHash, |
|
49 EUnRegisterScript, |
|
50 EGetScriptSession, |
|
51 EGetTrustedUnRegScriptSession, |
|
52 ECloseScriptSession, |
|
53 ECheckPermission, |
|
54 EUpdatePermanentGrant, |
|
55 EGetScriptFile, |
|
56 ESecMgrSrvReqEnd |
|
57 }; |
|
58 |
|
59 const TInt KSecurityServerUid2Int(0x1020507E); |
|
60 const TUid KSecMgrServerUid2 = |
|
61 { |
|
62 KSecurityServerUid2Int |
|
63 }; |
|
64 |
|
65 //the server version. A version must be specifyed when creating a session with the server |
|
66 const TUint KRTSecMgrServMajorVersionNumber=0; |
|
67 const TUint KRTSecMgrServMinorVersionNumber=1; |
|
68 const TUint KRTSecMgrServBuildVersionNumber=1; |
|
69 |
|
70 // number of message slots. |
|
71 const TUint KDefaultMessageSlots= 16; |
|
72 const TUint KSecSrvClientTryCount=2; |
|
73 const TInt KCapabilitySize = 20; |
|
74 |
|
75 _LIT(KSecMgrServerExeName, "RTSecMgrServer.exe"); |
|
76 _LIT(KZDrive, "z:"); |
|
77 _LIT(KSecServerProcessName, "SecurityManagerServer"); |
|
78 _LIT(KSecSrvMainThreadName, "SecSrvMain"); |
|
79 |
|
80 #endif //_RTSECMGRDEF_H |
|
81 |