equal
deleted
inserted
replaced
90 _LIT8( KCodePolicyAction, "action" ); |
90 _LIT8( KCodePolicyAction, "action" ); |
91 _LIT8( KCodePolicyActionValue, "lock" ); |
91 _LIT8( KCodePolicyActionValue, "lock" ); |
92 _LIT8( KCodePolicyTypeId, "http://www.w3.org/2001/XMLSchema#string" ); |
92 _LIT8( KCodePolicyTypeId, "http://www.w3.org/2001/XMLSchema#string" ); |
93 |
93 |
94 // Allowed SIDs for the functions |
94 // Allowed SIDs for the functions |
95 const TUint32 KSCPSTIF( 0x102073E4 ); // STIF exe |
|
96 const TUint32 KSCPServerSIDTelephone( 0x100058B3 ); // Terminal Control Server |
95 const TUint32 KSCPServerSIDTelephone( 0x100058B3 ); // Terminal Control Server |
97 const TUint32 KSCPServerSIDLog( 0x101f4cd5 ); // Terminal Control Server |
96 const TUint32 KSCPServerSIDLog( 0x101f4cd5 ); // Terminal Control Server |
98 const TUint32 KSCPServerSIDTerminalControl( 0x10207825 ); // Terminal Control Server |
97 const TUint32 KSCPServerSIDTerminalControl( 0x10207825 ); // Terminal Control Server |
99 const TUint32 KSCPServerSIDGeneralSettings( 0x100058EC ); // General Settings |
98 const TUint32 KSCPServerSIDGeneralSettings( 0x100058EC ); // General Settings |
100 //const TUint32 KSCPServerSIDSecurityObserver( 0x10000938 ); // Security Observer |
99 //const TUint32 KSCPServerSIDSecurityObserver( 0x10000938 ); // Security Observer |
135 _INIT_SECURITY_POLICY_S0( KSCPServerSIDAutolock ), |
134 _INIT_SECURITY_POLICY_S0( KSCPServerSIDAutolock ), |
136 CPolicyServer::EFailClient |
135 CPolicyServer::EFailClient |
137 // Only Autolock allowed for the Check configuration call |
136 // Only Autolock allowed for the Check configuration call |
138 }, |
137 }, |
139 { |
138 { |
140 _INIT_SECURITY_POLICY_S0( KSCPEvntHndlrUid ), |
139 _INIT_SECURITY_POLICY_C1( ECapability_None ), |
141 CPolicyServer::EFailClient |
140 CPolicyServer::EFailClient |
142 }, |
141 }, |
143 { |
142 { |
144 _INIT_SECURITY_POLICY_C1( ECapabilityAllFiles ), |
143 _INIT_SECURITY_POLICY_C1( ECapabilityAllFiles ), |
145 CPolicyServer::EFailClient |
144 CPolicyServer::EFailClient |
177 CPolicyServer::EFailClient |
176 CPolicyServer::EFailClient |
178 }, |
177 }, |
179 { |
178 { |
180 _INIT_SECURITY_POLICY_C1( ECapability_None ), |
179 _INIT_SECURITY_POLICY_C1( ECapability_None ), |
181 CPolicyServer::EFailClient |
180 CPolicyServer::EFailClient |
182 } |
181 } |
183 }; |
182 }; |
184 #endif // SCP_ENFORCE_SECURITY |
183 #endif // SCP_ENFORCE_SECURITY |
185 |
184 |
186 // Policy server ranges |
185 // Policy server ranges |
187 const TInt SCPPolicyRanges[] = |
186 const TInt SCPPolicyRanges[] = |
493 |
492 |
494 /** |
493 /** |
495 * This method is called to remove the parameters set by the application(s) provided as arguments. |
494 * This method is called to remove the parameters set by the application(s) provided as arguments. |
496 */ |
495 */ |
497 TInt PerformCleanupL( HBufC8* aAppIDBuffer, RArray<const TParamChange>& aChangeArray, RPointerArray<HBufC8>& aParamValArray ); |
496 TInt PerformCleanupL( HBufC8* aAppIDBuffer, RArray<const TParamChange>& aChangeArray, RPointerArray<HBufC8>& aParamValArray ); |
498 |
|
499 /** |
|
500 * This method returns the values for the policies maintained at the server |
|
501 */ |
|
502 void GetPoliciesL(HBufC8* aAppIDBuffer, TUint32 aCallerIdentity); |
|
503 //#endif // __SAP_DEVICE_LOCK_ENHANCEMENTS |
497 //#endif // __SAP_DEVICE_LOCK_ENHANCEMENTS |
504 |
498 |
505 // Methods from base classes |
499 // Methods from base classes |
506 |
500 |
507 /** |
501 /** |
519 /** |
513 /** |
520 * From MSCPTimeoutHandler Timeout callback |
514 * From MSCPTimeoutHandler Timeout callback |
521 * @param aParam The parameter passed to the timer object |
515 * @param aParam The parameter passed to the timer object |
522 */ |
516 */ |
523 void Timeout( TAny* aParam ); |
517 void Timeout( TAny* aParam ); |
524 |
|
525 TInt ValidateLockcodeAgainstPoliciesL(TDes& aLockcode,CSCPParamObject*& aRetParams); |
|
526 |
518 |
527 private: //Methods |
519 private: //Methods |
528 |
520 |
529 // New Methods |
521 // New Methods |
530 |
522 |