25 #include "SCPPServerPluginDefs.hrh" |
25 #include "SCPPServerPluginDefs.hrh" |
26 |
26 |
27 typedef TBuf<8> TSCPSecCode; |
27 typedef TBuf<8> TSCPSecCode; |
28 const TInt KSCPMaxEnhCodeLen = 256; |
28 const TInt KSCPMaxEnhCodeLen = 256; |
29 |
29 |
|
30 // New DataType to store encrypted information of maximum size 128. |
|
31 typedef TBuf<128> TSCPCryptoCode; |
30 |
32 |
31 // LOCAL CONSTANTS |
33 // LOCAL CONSTANTS |
32 _LIT( KSCPServerName, "!SCPServer" ); |
34 _LIT( KSCPServerName, "!SCPServer" ); |
33 _LIT( KSCPServerFileName, "SCPServer" ); |
35 _LIT( KSCPServerFileName, "SCPServer" ); |
34 _LIT( KSCPServerSemaphoreName, "SCPServerSem" ); |
36 _LIT( KSCPServerSemaphoreName, "SCPServerSem" ); |
45 ESCPServQueryAdminCmd = 20, |
47 ESCPServQueryAdminCmd = 20, |
46 ESCPServGetParam = 30, |
48 ESCPServGetParam = 30, |
47 ESCPServAuthenticateS60 = 40, |
49 ESCPServAuthenticateS60 = 40, |
48 ESCPServChangeEnhCode, |
50 ESCPServChangeEnhCode, |
49 ESCPServCodeChangeQuery, |
51 ESCPServCodeChangeQuery, |
|
52 ESCPServValidateLockcode, |
50 ESCPServCheckConfig = 50, |
53 ESCPServCheckConfig = 50, |
51 ESCPApplicationUninstalled = 60, |
54 ESCPApplicationUninstalled = 60, |
52 ESCPServUISetAutoLock = 70 |
55 ESCPServUISetAutoLock = 70 |
53 }; |
56 }; |
54 |
57 |
64 { |
67 { |
65 ESCPAutolockPeriod, |
68 ESCPAutolockPeriod, |
66 ESCPMaxAutolockPeriod, |
69 ESCPMaxAutolockPeriod, |
67 ESCPCodeChangePolicy |
70 ESCPCodeChangePolicy |
68 }; |
71 }; |
|
72 |
|
73 enum TDevicelockPolicies { |
|
74 //Autolock timeout. Values in minutes |
|
75 EDeviceLockAutolockperiod = 0, |
|
76 // Maximum autolock timeout value, Values in minutes |
|
77 EDeviceLockMaxAutolockPeriod, |
|
78 //specifies the minimum lock code length |
|
79 EDeviceLockMinlength, |
|
80 //Allowed maxim lock code length |
|
81 EDeviceLockMaxlength, |
|
82 // 0 = No restriction, |
|
83 //1 = Both upper and lower case letters are required in the password |
|
84 EDeviceLockRequireUpperAndLower, |
|
85 // 0 = No restriction, |
|
86 // 1 = Both characters and numbers are required in the password |
|
87 EDeviceLockRequireCharsAndNumbers, |
|
88 // 0 = No restriction, |
|
89 // 1-4 = A single character cannot be used more than X times in the password |
|
90 EDeviceLockAllowedMaxRepeatedChars, |
|
91 // 0 = No restriction, |
|
92 // 1-X = The new password cannot match the previous X passwords |
|
93 EDeviceLockHistoryBuffer, |
|
94 // 0 = No restriction, |
|
95 // 1-365 = The password expires after X days and must be changed by the user |
|
96 // -1 = password expires immediately |
|
97 EDeviceLockPasscodeExpiration, |
|
98 // The user can change the password only X times before EPasscodeMinChangeInterval //hours have passed (default 0). |
|
99 EDeviceLockMinChangeTolerance, |
|
100 // 0 = No restriction, |
|
101 // 1-1000 = The user cannot change the password more than EPasscodeMinChangeTolerance // times before X hours have passed since the previous change |
|
102 EDeviceLockMinChangeInterval, |
|
103 // disallow the specific string or strings given. |
|
104 EDeviceLockDisallowSpecificStrings, |
|
105 // 0 = No restriction, |
|
106 // 3-100 = The device is "hard" reset after the user has consecutively failed X times // to answer the password query |
|
107 EDeviceLockAllowedMaxAtempts, |
|
108 // 0 = No restriction, 1 = The password cannot contain two consecutive numbers. |
|
109 EDeviceLockConsecutiveNumbers, |
|
110 // 0 = No restriction, |
|
111 // 1-255 = The password should contain at least X number of special characters. |
|
112 EDeviceLockMinSpecialCharacters, |
|
113 // 0 = No restriction, |
|
114 // 1 = Single character repeat not allowed (ex: 222222, aaaaaa etc) are not allowed |
|
115 EDeviceLockSingleCharRepeatNotAllowed, |
|
116 // 0 = No restriction, |
|
117 // 1 = lock code shouldn’t consist of consecutive characters (ex: 12345, abcde etc) are notallowed |
|
118 EDevicelockConsecutiveCharsNotAllowed, |
|
119 |
|
120 EDevicelockTotalPolicies |
|
121 }; |
69 |
122 |
70 // The version number of this client-server package |
123 // The version number of this client-server package |
71 const TUint KSCPServMajorVersionNumber=0; |
124 const TUint KSCPServMajorVersionNumber=0; |
72 const TUint KSCPServMinorVersionNumber=9; |
125 const TUint KSCPServMinorVersionNumber=9; |
73 const TUint KSCPServBuildVersionNumber=0; |
126 const TUint KSCPServBuildVersionNumber=0; |