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