-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathlexstatus_codes.go
222 lines (151 loc) · 6.29 KB
/
lexstatus_codes.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
// Copyright 2023 Cryptlex, LLC. All rights reserved.
package lexactivator
// int enumeration from lexactivator/int.h int =4
const (
// Success code.
LA_OK int = 0
// Failure code.
LA_FAIL int = 1
// The license has expired or system time has been tampered with. Ensure your date and time settings are correct.
LA_EXPIRED int = 20
// The license has been suspended.
LA_SUSPENDED int = 21
// The grace period for server sync is over.
LA_GRACE_PERIOD_OVER int = 22
// The trial has expired or system time has been tampered with. Ensure your date and time settings are correct.
LA_TRIAL_EXPIRED int = 25
// The local trial has expired or system time has been tampered
// with. Ensure your date and time settings are correct.
LA_LOCAL_TRIAL_EXPIRED int = 26
// A new update is available for the product. This means a new release has been published for the product.
LA_RELEASE_UPDATE_AVAILABLE int = 30
// No new update is available for the product. The current version is latest.
LA_RELEASE_NO_UPDATE_AVAILABLE int = 31 // deprecated
// No new update is available for the product. The current version is latest.
LA_RELEASE_UPDATE_NOT_AVAILABLE int = 31
// The update available is not allowed for this license.
LA_RELEASE_UPDATE_AVAILABLE_NOT_ALLOWED int = 32
// Invalid file path.
LA_E_FILE_PATH int = 40
// Invalid or corrupted product file.
LA_E_PRODUCT_FILE int = 41
// Invalid product data.
LA_E_PRODUCT_DATA int = 42
// The product id is incorrect.
LA_E_PRODUCT_ID int = 43
// Insufficient system permissions. Occurs when LA_SYSTEM flag is used
// but application is not run with admin privileges.
LA_E_SYSTEM_PERMISSION int = 44
// No permission to write to file.
LA_E_FILE_PERMISSION int = 45
// Fingerprint couldn't be generated because Windows Management Instrumentation (WMI)
// service has been disabled. This error is specific to Windows only.
LA_E_WMIC int = 46
// The difference between the network time and the system time is
// more than allowed clock offset.
LA_E_TIME int = 47
// Failed to connect to the server due to network error.
LA_E_INET int = 48
// Invalid network proxy.
LA_E_NET_PROXY int = 49
// Invalid Cryptlex host url.
LA_E_HOST_URL int = 50
// The buffer size was smaller than required.
LA_E_BUFFER_SIZE int = 51
// App version length is more than 256 characters.
LA_E_APP_VERSION_LENGTH int = 52
// The license has been revoked.
LA_E_REVOKED int = 53
// Invalid license key.
LA_E_LICENSE_KEY int = 54
// Invalid license type. Make sure floating license is not being used.
LA_E_LICENSE_TYPE int = 55
// Invalid offline activation response file.
LA_E_OFFLINE_RESPONSE_FILE int = 56
// The offline activation response has expired.
LA_E_OFFLINE_RESPONSE_FILE_EXPIRED int = 57
// The license has reached it's allowed activations limit.
LA_E_ACTIVATION_LIMIT int = 58
// The license activation was deleted on the server.
LA_E_ACTIVATION_NOT_FOUND int = 59
// The license has reached it's allowed deactivations limit.
LA_E_DEACTIVATION_LIMIT int = 60
// Trial not allowed for the product.
LA_E_TRIAL_NOT_ALLOWED int = 61
// Your account has reached it's trial activations limit.
LA_E_TRIAL_ACTIVATION_LIMIT int = 62
// Machine fingerprint has changed since activation.
LA_E_MACHINE_FINGERPRINT int = 63
// Metadata key length is more than 256 characters.
LA_E_METADATA_KEY_LENGTH int = 64
// Metadata value length is more than 4096 characters.
LA_E_METADATA_VALUE_LENGTH int = 65
// The license has reached it's metadata fields limit.
LA_E_ACTIVATION_METADATA_LIMIT int = 66
// The trial has reached it's metadata fields limit.
LA_E_TRIAL_ACTIVATION_METADATA_LIMIT int = 67
// The metadata key does not exist.
LA_E_METADATA_KEY_NOT_FOUND int = 68
// The system time has been tampered (backdated).
LA_E_TIME_MODIFIED int = 69
// Invalid version format.
LA_E_RELEASE_VERSION_FORMAT int = 70
// Incorrect email or password.
LA_E_AUTHENTICATION_FAILED int = 71
// The meter attribute does not exist.
LA_E_METER_ATTRIBUTE_NOT_FOUND int = 72
// The meter attribute has reached it's usage limit.
LA_E_METER_ATTRIBUTE_USES_LIMIT_REACHED int = 73
// Custom device fingerprint length is less than 64 characters
// or more than 256 characters..
LA_E_CUSTOM_FINGERPRINT_LENGTH int = 74
// No product version is linked with the license.
LA_E_PRODUCT_VERSION_NOT_LINKED int = 75
// The product version feature flag does not exist.
LA_E_FEATURE_FLAG_NOT_FOUND int = 76
// The release version is not allowed.
LA_E_RELEASE_VERSION_NOT_ALLOWED int = 77
// Release platform length is more than 256 characters.
LA_E_RELEASE_PLATFORM_LENGTH int = 78
// Release channel length is more than 256 characters.
LA_E_RELEASE_CHANNEL_LENGTH int = 79
// Application is being run inside a virtual machine / hypervisor,
// and activation has been disallowed in the VM.
LA_E_VM int = 80
// Country is not allowed.
LA_E_COUNTRY int = 81
// IP address is not allowed.
LA_E_IP int = 82
// Application is being run inside a container
// and activation has been disallowed in the container.
LA_E_CONTAINER int = 83
// Invalid release version. Make sure the release version
// uses the following formats: x.x, x.x.x, x.x.x.x (where x is a number).
LA_E_RELEASE_VERSION int = 84
// Release platform not set.
LA_E_RELEASE_PLATFORM int = 85
// Release channel not set.
LA_E_RELEASE_CHANNEL int = 86
// The user is not authenticated.
LA_E_USER_NOT_AUTHENTICATED int = 87
// The two-factor authentication code for the user authentication is missing.
LA_E_TWO_FACTOR_AUTHENTICATION_CODE_MISSING int = 88
// The two-factor authentication code provided by the user is invalid.
LA_E_TWO_FACTOR_AUTHENTICATION_CODE_INVALID int = 89
// Rate limit for API has reached, try again later.
LA_E_RATE_LIMIT int = 90
// Server error.
LA_E_SERVER int = 91
// Client error.
LA_E_CLIENT int = 92
// The user account has been temporarily locked for 5 mins due to 5 failed attempts.
LA_E_LOGIN_TEMPORARILY_LOCKED int = 100
// Invalid authentication ID token.
LA_E_AUTHENTICATION_ID_TOKEN_INVALID int = 101
// OIDC SSO is not enabled.
LA_E_OIDC_SSO_NOT_ENABLED int = 102
// The allowed users for this account has reached its limit.
LA_E_USERS_LIMIT_REACHED int = 103
// OS user has changed since activation and the license is user-locked.
LA_E_OS_USER int = 104
)