IMPSengine/engsrv/inc/impsserversecuritypolicy.h
changeset 0 094583676ce7
equal deleted inserted replaced
-1:000000000000 0:094583676ce7
       
     1 /*
       
     2 * Copyright (c) 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 "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: Class defined constant used in imps server
       
    15 * 
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CIMPSSERVERSECURITYPOLICY_H
       
    20 #define CIMPSSERVERSECURITYPOLICY_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include "impsclientsrv.h"
       
    24 
       
    25 // DATA TYPES
       
    26 
       
    27 // Server Security Policy Definition
       
    28 const TUint KImpsServerRangeCount = 3;
       
    29 
       
    30 const TInt KImpsServerRanges[KImpsServerRangeCount] =
       
    31     {
       
    32     EImpsServNone,              // NetworkControl
       
    33     EImpsServCloseSession,      // EAlwaysPass - Close command
       
    34     EImpsServCloseSession + 1   // can't fail since client masks bits in a request
       
    35     };
       
    36 
       
    37 // Mapping IPCs to policy element
       
    38 const TUint8 KImpsServerElementsIndex[KImpsServerRangeCount] =
       
    39     {
       
    40     0,
       
    41     CPolicyServer::EAlwaysPass,
       
    42     0
       
    43     };
       
    44 
       
    45 // Individual policy elements
       
    46 const CPolicyServer::TPolicyElement KImpsServerElements[] =
       
    47     {
       
    48         {_INIT_SECURITY_POLICY_C1( ECapabilityNetworkServices ), CPolicyServer::EFailClient}
       
    49     };
       
    50 
       
    51 // Main policy
       
    52 const CPolicyServer::TPolicy KImpsServerPolicy =
       
    53     {
       
    54     CPolicyServer::ECustomCheck, // CustomCheckL cheks connect request
       
    55     KImpsServerRangeCount,
       
    56     KImpsServerRanges,
       
    57     KImpsServerElementsIndex,
       
    58     KImpsServerElements,
       
    59     };
       
    60 
       
    61 #endif // CIMPSSERVERSECURITYPOLICY_H