os/security/cryptoservices/filebasedcertificateandkeystores/source/generic/common/fstokencliserv.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     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 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: 
    15 * Shared client/server definitions
    16 *
    17 */
    18 
    19 
    20 /**
    21  @file 
    22  @internalTechnology
    23 */
    24 
    25 #ifndef __FSTOKENCLISERV_H__
    26 #define __FSTOKENCLISERV_H__
    27 
    28 #include <e32base.h>
    29 #include "tokentypesenum.h"
    30 
    31 const TUid KUidFSTokenServer = {0x101F72A6};
    32 
    33 
    34 // Classes provide static lookup for tokens supported by the filetokens server
    35 // According to either description (string) or UID
    36 
    37 /** Stores the _LIT description of each token with its associated ETokenEnum. */
    38 class RSupportedTokensArray : public TFixedArray<const TDesC*, ETotalTokensSupported>
    39 	{
    40  public:
    41 	RSupportedTokensArray();
    42 	};
    43 
    44 /** Stores the UID of each token type against the associated ETokenEnum. */
    45 class RTokenTypeUIDLookup : public TFixedArray<TInt, ETotalTokensSupported>
    46 	{
    47  public:
    48 	RTokenTypeUIDLookup();
    49 	};
    50 
    51 // Client server protocol major version
    52 //   1 => 8.0 - 8.1
    53 // 	 2 => 9.0 onwards
    54 const TInt KFSProtolVersion = 2;
    55 
    56 /**	Request message enumeration between client and server. */
    57 enum TFSTokenMessages
    58 	{
    59 	EIdle						= 0,
    60 	ESupportsToken				= 1,
    61 
    62 	// For MCertStore
    63 	EListCerts					= 10,
    64 	EGetCert					= 11,
    65 	EApplications				= 12,
    66 	EIsApplicable				= 13,
    67 	ETrusted					= 14,
    68 	ERetrieve					= 15,
    69 	
    70 	// For MCTWritableCertStore
    71 	EAddCert					= 16,
    72 	ERemoveCert					= 17,
    73 	ESetApplicability 			= 18,
    74 	ESetTrust 					= 19,
    75 	
    76 	// For MKeyStore
    77 	EListKeys						= 50,
    78 	EGetKeyInfo						= 51,
    79 	
    80 	// For MCTKeyStoreManager
    81 	ECreateKey						= 52,
    82 	ECancelCreateKey				= 53,
    83 	EImportKey						= 54,
    84 	ECancelImportKey				= 55,
    85 	EImportEncryptedKey				= 56,
    86 	ECancelImportEncryptedKey		= 57,
    87 	EExportKey						= 58,
    88 	ECancelExportKey				= 59,
    89 	EExportEncryptedKey				= 60,
    90 	ECancelExportEncryptedKey		= 61,
    91 	EDeleteKey						= 62,
    92 
    93 	EOpenKeyRepudiableRSASign		= 64,
    94 	EOpenKeyRepudiableDSASign		= 65,
    95 	EOpenKeyDecrypt         		= 66,
    96 	EOpenKeyAgree           		= 67,
    97 	ECloseObject					= 68,
    98 	ERepudiableDSASign				= 69,
    99 	ECancelDSASign					= 70,
   100 	ERepudiableRSASign				= 71,
   101 	ECancelRSASign					= 72,
   102 	EExportPublic					= 73,
   103 	EDecryptText					= 74,
   104 	ECancelDecrypt					= 75,
   105 	EDHPublicKey					= 76,
   106 	EDHAgree						= 77,
   107 	ECancelDH						= 78,
   108 
   109 	EChangePassphrase			= 80,
   110 	ECancelChangePassphrase 	= 81,
   111 	EUnblockPassphrase			= 82,
   112 	ECancelUnblockPassphrase	= 83,
   113 	EAuthOpen					= 84,
   114 	ECancelAuthOpen				= 85,
   115 	EAuthClose					= 86,
   116 	EAuthTimeRemaining			= 87,
   117 	ESetTimeout					= 88,
   118 	EGetTimeout					= 89,	
   119 	EGetKeyLength				= 90,
   120 	ESetUsePolicy				= 91,
   121 	ESetManagementPolicy		= 92,
   122 	ERelock						= 93,
   123 
   124 	// For server OOM testing
   125 	EStartOOMTest				= 100,
   126 	EIncHeapFailPoint			= 101,
   127 	EResetHeapFail				= 102,
   128 	EAllocCount					= 103,
   129 
   130 	// For MCTCertApps
   131 	EAddApp                 = 120,
   132 	ERemoveApp              = 121,
   133 	EGetAppCount            = 122,
   134 	EGetApps                = 123,
   135 	EGetApplication         = 124,
   136 	
   137 #ifdef SYMBIAN_AUTH_SERVER
   138 	
   139 	EUseNewKeyServer = 125,
   140 	ECreateUserKey		= 126,
   141 	EImportUserKey		= 127,
   142 	EImportEncryptedUserKey	= 128,
   143 	ESetAuthenticationPolicy = 129,
   144 	EGetAuthenticationPolicy = 130,
   145 
   146 #endif // SYMBIAN_AUTH_SERVER	
   147 	
   148 	};
   149 
   150 
   151 
   152 #endif	//	__FILECERTSTORECLISERV_H__