cryptoservices/filebasedcertificateandkeystores/source/generic/server/fsserver.cpp
equal
deleted
inserted
replaced
130 { |
130 { |
131 FSResources::InitialiseL(); |
131 FSResources::InitialiseL(); |
132 FSDialog::InitialiseL(); |
132 FSDialog::InitialiseL(); |
133 |
133 |
134 TPtrC serverName(KFSTokenServerName()); |
134 TPtrC serverName(KFSTokenServerName()); |
135 // Naming the server thread after the server helps to debug panics |
|
136 #ifdef __WINS__ |
|
137 #ifdef SYMBIAN_KEYSTORE_USE_AUTH_SERVER |
|
138 serverName.Set(KFSNewTokenServerName()); |
|
139 #endif // SYMBIAN_KEYSTORE_USE_AUTH_SERVER |
|
140 #endif // __WINS__ |
|
141 |
|
142 StartL(serverName); |
135 StartL(serverName); |
143 |
136 |
144 // Ensure that the server still exits even if the 1st client fails to connect |
137 // Ensure that the server still exits even if the 1st client fails to connect |
145 iShutdown.ConstructL(); |
138 iShutdown.ConstructL(); |
146 iShutdown.Start(); |
139 iShutdown.Start(); |
262 * and server and then run the scheduler. |
255 * and server and then run the scheduler. |
263 */ |
256 */ |
264 static void RunServerL() |
257 static void RunServerL() |
265 { |
258 { |
266 TPtrC serverName(KFSTokenServerName()); |
259 TPtrC serverName(KFSTokenServerName()); |
267 // Naming the server thread after the server helps to debug panics |
260 |
268 #ifdef __WINS__ |
|
269 #ifdef SYMBIAN_KEYSTORE_USE_AUTH_SERVER |
|
270 serverName.Set(KFSNewTokenServerName()); |
|
271 #endif // SYMBIAN_KEYSTORE_USE_AUTH_SERVER |
|
272 #endif // __WINS__ |
|
273 |
261 |
274 User::LeaveIfError(User::RenameThread(serverName)); |
262 User::LeaveIfError(User::RenameThread(serverName)); |
275 |
263 |
276 // Create and install the active scheduler we need |
264 // Create and install the active scheduler we need |
277 CActiveScheduler* s=new(ELeave) CActiveScheduler; |
265 CActiveScheduler* s=new(ELeave) CActiveScheduler; |