rtsecuritymanager/inc/rtsecmgrdef.h
changeset 57 61b27eec6533
parent 45 7aa6007702af
equal deleted inserted replaced
45:7aa6007702af 57:61b27eec6533
     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 	EUpdatePermanentGrantProvider
       
    58 	};
       
    59 
       
    60 const TInt KSecurityServerUid2Int(0x1020507E);
       
    61 const TUid KSecMgrServerUid2 =
       
    62 	{
       
    63 			KSecurityServerUid2Int
       
    64 	};
       
    65 
       
    66 //the server version. A version must be specifyed when creating a session with the server
       
    67 const TUint KRTSecMgrServMajorVersionNumber=0;
       
    68 const TUint KRTSecMgrServMinorVersionNumber=1;
       
    69 const TUint KRTSecMgrServBuildVersionNumber=1;
       
    70 
       
    71 // number of message slots.
       
    72 const TUint KDefaultMessageSlots= 16;
       
    73 const TUint KSecSrvClientTryCount=2;
       
    74 const TInt KCapabilitySize = 20;
       
    75 
       
    76 _LIT(KSecMgrServerExeName, "RTSecMgrServer.exe");
       
    77 _LIT(KZDrive, "z:");
       
    78 _LIT(KSecServerProcessName, "SecurityManagerServer");
       
    79 _LIT(KSecSrvMainThreadName, "SecSrvMain");
       
    80 
       
    81 #endif //_RTSECMGRDEF_H
       
    82