1*0Sstevel@tonic-gate /*
2*0Sstevel@tonic-gate  * Copyright (c) 2001 by Sun Microsystems, Inc.
3*0Sstevel@tonic-gate  * All rights reserved.
4*0Sstevel@tonic-gate  */
5*0Sstevel@tonic-gate 
6*0Sstevel@tonic-gate #pragma ident	"%Z%%M%	%I%	%E% SMI"
7*0Sstevel@tonic-gate 
8*0Sstevel@tonic-gate /*
9*0Sstevel@tonic-gate  * The contents of this file are subject to the Netscape Public
10*0Sstevel@tonic-gate  * License Version 1.1 (the "License"); you may not use this file
11*0Sstevel@tonic-gate  * except in compliance with the License. You may obtain a copy of
12*0Sstevel@tonic-gate  * the License at http://www.mozilla.org/NPL/
13*0Sstevel@tonic-gate  *
14*0Sstevel@tonic-gate  * Software distributed under the License is distributed on an "AS
15*0Sstevel@tonic-gate  * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
16*0Sstevel@tonic-gate  * implied. See the License for the specific language governing
17*0Sstevel@tonic-gate  * rights and limitations under the License.
18*0Sstevel@tonic-gate  *
19*0Sstevel@tonic-gate  * The Original Code is Mozilla Communicator client code, released
20*0Sstevel@tonic-gate  * March 31, 1998.
21*0Sstevel@tonic-gate  *
22*0Sstevel@tonic-gate  * The Initial Developer of the Original Code is Netscape
23*0Sstevel@tonic-gate  * Communications Corporation. Portions created by Netscape are
24*0Sstevel@tonic-gate  * Copyright (C) 1998-1999 Netscape Communications Corporation. All
25*0Sstevel@tonic-gate  * Rights Reserved.
26*0Sstevel@tonic-gate  *
27*0Sstevel@tonic-gate  * Contributor(s):
28*0Sstevel@tonic-gate  */
29*0Sstevel@tonic-gate 
30*0Sstevel@tonic-gate /*
31*0Sstevel@tonic-gate  * secerrstrs.h - map security errors to strings (used by errormap.c)
32*0Sstevel@tonic-gate  *
33*0Sstevel@tonic-gate  */
34*0Sstevel@tonic-gate 
35*0Sstevel@tonic-gate /*
36*0Sstevel@tonic-gate  ****************************************************************************
37*0Sstevel@tonic-gate  * The code below this point was provided by Nelson Bolyard <nelsonb> of the
38*0Sstevel@tonic-gate  *	Netscape Certificate Server team on 27-March-1998.
39*0Sstevel@tonic-gate  *	Taken from the file ns/security/cmd/lib/SECerrs.h on NSS_1_BRANCH.
40*0Sstevel@tonic-gate  *	Last updated from there: 24-July-1998 by Mark Smith <mcs>
41*0Sstevel@tonic-gate  *
42*0Sstevel@tonic-gate  * All of the Directory Server specific changes are enclosed inside
43*0Sstevel@tonic-gate  *	#ifdef NS_DIRECTORY.
44*0Sstevel@tonic-gate  ****************************************************************************
45*0Sstevel@tonic-gate  */
46*0Sstevel@tonic-gate 
47*0Sstevel@tonic-gate /* General security error codes  */
48*0Sstevel@tonic-gate /* Caller must #include "secerr.h" */
49*0Sstevel@tonic-gate 
50*0Sstevel@tonic-gate 
51*0Sstevel@tonic-gate ER3(SEC_ERROR_IO,				SEC_ERROR_BASE + 0,
52*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
53*0Sstevel@tonic-gate "An I/O error occurred during security authorization."))
54*0Sstevel@tonic-gate 
55*0Sstevel@tonic-gate ER3(SEC_ERROR_LIBRARY_FAILURE,			SEC_ERROR_BASE + 1,
56*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
57*0Sstevel@tonic-gate "security library failure."))
58*0Sstevel@tonic-gate 
59*0Sstevel@tonic-gate ER3(SEC_ERROR_BAD_DATA,				SEC_ERROR_BASE + 2,
60*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
61*0Sstevel@tonic-gate "security library: received bad data."))
62*0Sstevel@tonic-gate 
63*0Sstevel@tonic-gate ER3(SEC_ERROR_OUTPUT_LEN,			SEC_ERROR_BASE + 3,
64*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
65*0Sstevel@tonic-gate "security library: output length error."))
66*0Sstevel@tonic-gate 
67*0Sstevel@tonic-gate ER3(SEC_ERROR_INPUT_LEN,			SEC_ERROR_BASE + 4,
68*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
69*0Sstevel@tonic-gate "security library has experienced an input length error."))
70*0Sstevel@tonic-gate 
71*0Sstevel@tonic-gate ER3(SEC_ERROR_INVALID_ARGS,			SEC_ERROR_BASE + 5,
72*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
73*0Sstevel@tonic-gate "security library: invalid arguments."))
74*0Sstevel@tonic-gate 
75*0Sstevel@tonic-gate ER3(SEC_ERROR_INVALID_ALGORITHM,		SEC_ERROR_BASE + 6,
76*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
77*0Sstevel@tonic-gate "security library: invalid algorithm."))
78*0Sstevel@tonic-gate 
79*0Sstevel@tonic-gate ER3(SEC_ERROR_INVALID_AVA,			SEC_ERROR_BASE + 7,
80*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
81*0Sstevel@tonic-gate "security library: invalid AVA."))
82*0Sstevel@tonic-gate 
83*0Sstevel@tonic-gate ER3(SEC_ERROR_INVALID_TIME,			SEC_ERROR_BASE + 8,
84*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
85*0Sstevel@tonic-gate "security library: invalid time."))
86*0Sstevel@tonic-gate 
87*0Sstevel@tonic-gate ER3(SEC_ERROR_BAD_DER,				SEC_ERROR_BASE + 9,
88*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
89*0Sstevel@tonic-gate "security library: improperly formatted DER-encoded message."))
90*0Sstevel@tonic-gate 
91*0Sstevel@tonic-gate ER3(SEC_ERROR_BAD_SIGNATURE,			SEC_ERROR_BASE + 10,
92*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
93*0Sstevel@tonic-gate "Peer's certificate has an invalid signature."))
94*0Sstevel@tonic-gate 
95*0Sstevel@tonic-gate ER3(SEC_ERROR_EXPIRED_CERTIFICATE,		SEC_ERROR_BASE + 11,
96*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
97*0Sstevel@tonic-gate "Peer's Certificate has expired."))
98*0Sstevel@tonic-gate 
99*0Sstevel@tonic-gate ER3(SEC_ERROR_REVOKED_CERTIFICATE,		SEC_ERROR_BASE + 12,
100*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
101*0Sstevel@tonic-gate "Peer's Certificate has been revoked."))
102*0Sstevel@tonic-gate 
103*0Sstevel@tonic-gate ER3(SEC_ERROR_UNKNOWN_ISSUER,			SEC_ERROR_BASE + 13,
104*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
105*0Sstevel@tonic-gate "Peer's Certificate issuer is not recognized."))
106*0Sstevel@tonic-gate 
107*0Sstevel@tonic-gate ER3(SEC_ERROR_BAD_KEY,				SEC_ERROR_BASE + 14,
108*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
109*0Sstevel@tonic-gate "Peer's public key is invalid."))
110*0Sstevel@tonic-gate 
111*0Sstevel@tonic-gate ER3(SEC_ERROR_BAD_PASSWORD,			SEC_ERROR_BASE + 15,
112*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
113*0Sstevel@tonic-gate "The security password entered is incorrect."))
114*0Sstevel@tonic-gate 
115*0Sstevel@tonic-gate ER3(SEC_ERROR_RETRY_PASSWORD,			SEC_ERROR_BASE + 16,
116*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
117*0Sstevel@tonic-gate "New password entered incorrectly.  Please try again."))
118*0Sstevel@tonic-gate 
119*0Sstevel@tonic-gate ER3(SEC_ERROR_NO_NODELOCK,			SEC_ERROR_BASE + 17,
120*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
121*0Sstevel@tonic-gate "security library: no nodelock."))
122*0Sstevel@tonic-gate 
123*0Sstevel@tonic-gate ER3(SEC_ERROR_BAD_DATABASE,			SEC_ERROR_BASE + 18,
124*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
125*0Sstevel@tonic-gate "security library: bad database."))
126*0Sstevel@tonic-gate 
127*0Sstevel@tonic-gate ER3(SEC_ERROR_NO_MEMORY,			SEC_ERROR_BASE + 19,
128*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
129*0Sstevel@tonic-gate "security library: memory allocation failure."))
130*0Sstevel@tonic-gate 
131*0Sstevel@tonic-gate ER3(SEC_ERROR_UNTRUSTED_ISSUER,			SEC_ERROR_BASE + 20,
132*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
133*0Sstevel@tonic-gate "Peer's certificate issuer has been marked as not trusted by the user."))
134*0Sstevel@tonic-gate 
135*0Sstevel@tonic-gate ER3(SEC_ERROR_UNTRUSTED_CERT,			SEC_ERROR_BASE + 21,
136*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
137*0Sstevel@tonic-gate "Peer's certificate has been marked as not trusted by the user."))
138*0Sstevel@tonic-gate 
139*0Sstevel@tonic-gate ER3(SEC_ERROR_DUPLICATE_CERT,			(SEC_ERROR_BASE + 22),
140*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
141*0Sstevel@tonic-gate "Certificate already exists in your database."))
142*0Sstevel@tonic-gate 
143*0Sstevel@tonic-gate ER3(SEC_ERROR_DUPLICATE_CERT_NAME,		(SEC_ERROR_BASE + 23),
144*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
145*0Sstevel@tonic-gate "Downloaded certificate's name duplicates one already in your database."))
146*0Sstevel@tonic-gate 
147*0Sstevel@tonic-gate ER3(SEC_ERROR_ADDING_CERT,			(SEC_ERROR_BASE + 24),
148*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
149*0Sstevel@tonic-gate "Error adding certificate to database."))
150*0Sstevel@tonic-gate 
151*0Sstevel@tonic-gate ER3(SEC_ERROR_FILING_KEY,			(SEC_ERROR_BASE + 25),
152*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
153*0Sstevel@tonic-gate "Error refiling the key for this certificate."))
154*0Sstevel@tonic-gate 
155*0Sstevel@tonic-gate ER3(SEC_ERROR_NO_KEY,				(SEC_ERROR_BASE + 26),
156*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
157*0Sstevel@tonic-gate "The private key for this certificate cannot be found in key database"))
158*0Sstevel@tonic-gate 
159*0Sstevel@tonic-gate ER3(SEC_ERROR_CERT_VALID,			(SEC_ERROR_BASE + 27),
160*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
161*0Sstevel@tonic-gate "This certificate is valid."))
162*0Sstevel@tonic-gate 
163*0Sstevel@tonic-gate ER3(SEC_ERROR_CERT_NOT_VALID,			(SEC_ERROR_BASE + 28),
164*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
165*0Sstevel@tonic-gate "This certificate is not valid."))
166*0Sstevel@tonic-gate 
167*0Sstevel@tonic-gate ER3(SEC_ERROR_CERT_NO_RESPONSE,			(SEC_ERROR_BASE + 29),
168*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
169*0Sstevel@tonic-gate "Cert Library: No Response"))
170*0Sstevel@tonic-gate 
171*0Sstevel@tonic-gate ER3(SEC_ERROR_EXPIRED_ISSUER_CERTIFICATE,	(SEC_ERROR_BASE + 30),
172*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
173*0Sstevel@tonic-gate "The certificate issuer's certificate has expired.  Check your system date and time."))
174*0Sstevel@tonic-gate 
175*0Sstevel@tonic-gate ER3(SEC_ERROR_CRL_EXPIRED,			(SEC_ERROR_BASE + 31),
176*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
177*0Sstevel@tonic-gate "The CRL for the certificate's issuer has expired.  Update it or check your system data and time."))
178*0Sstevel@tonic-gate 
179*0Sstevel@tonic-gate ER3(SEC_ERROR_CRL_BAD_SIGNATURE,		(SEC_ERROR_BASE + 32),
180*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
181*0Sstevel@tonic-gate "The CRL for the certificate's issuer has an invalid signature."))
182*0Sstevel@tonic-gate 
183*0Sstevel@tonic-gate ER3(SEC_ERROR_CRL_INVALID,			(SEC_ERROR_BASE + 33),
184*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
185*0Sstevel@tonic-gate "New CRL has an invalid format."))
186*0Sstevel@tonic-gate 
187*0Sstevel@tonic-gate ER3(SEC_ERROR_EXTENSION_VALUE_INVALID,		(SEC_ERROR_BASE + 34),
188*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
189*0Sstevel@tonic-gate "Certificate extension value is invalid."))
190*0Sstevel@tonic-gate 
191*0Sstevel@tonic-gate ER3(SEC_ERROR_EXTENSION_NOT_FOUND,		(SEC_ERROR_BASE + 35),
192*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
193*0Sstevel@tonic-gate "Certificate extension not found."))
194*0Sstevel@tonic-gate 
195*0Sstevel@tonic-gate ER3(SEC_ERROR_CA_CERT_INVALID,			(SEC_ERROR_BASE + 36),
196*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
197*0Sstevel@tonic-gate "Issuer certificate is invalid."))
198*0Sstevel@tonic-gate 
199*0Sstevel@tonic-gate ER3(SEC_ERROR_PATH_LEN_CONSTRAINT_INVALID,	(SEC_ERROR_BASE + 37),
200*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
201*0Sstevel@tonic-gate "Certificate path length constraint is invalid."))
202*0Sstevel@tonic-gate 
203*0Sstevel@tonic-gate ER3(SEC_ERROR_CERT_USAGES_INVALID,		(SEC_ERROR_BASE + 38),
204*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
205*0Sstevel@tonic-gate "Certificate usages field is invalid."))
206*0Sstevel@tonic-gate 
207*0Sstevel@tonic-gate ER3(SEC_INTERNAL_ONLY,				(SEC_ERROR_BASE + 39),
208*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
209*0Sstevel@tonic-gate "**Internal ONLY module**"))
210*0Sstevel@tonic-gate 
211*0Sstevel@tonic-gate ER3(SEC_ERROR_INVALID_KEY,			(SEC_ERROR_BASE + 40),
212*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
213*0Sstevel@tonic-gate "The key does not support the requested operation."))
214*0Sstevel@tonic-gate 
215*0Sstevel@tonic-gate ER3(SEC_ERROR_UNKNOWN_CRITICAL_EXTENSION,	(SEC_ERROR_BASE + 41),
216*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
217*0Sstevel@tonic-gate "Certificate contains unknown critical extension."))
218*0Sstevel@tonic-gate 
219*0Sstevel@tonic-gate ER3(SEC_ERROR_OLD_CRL,				(SEC_ERROR_BASE + 42),
220*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
221*0Sstevel@tonic-gate "New CRL is not later than the current one."))
222*0Sstevel@tonic-gate 
223*0Sstevel@tonic-gate ER3(SEC_ERROR_NO_EMAIL_CERT,			(SEC_ERROR_BASE + 43),
224*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
225*0Sstevel@tonic-gate "Not encrypted or signed: you do not yet have an email certificate."))
226*0Sstevel@tonic-gate 
227*0Sstevel@tonic-gate ER3(SEC_ERROR_NO_RECIPIENT_CERTS_QUERY,		(SEC_ERROR_BASE + 44),
228*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
229*0Sstevel@tonic-gate "Not encrypted: you do not have certificates for each of the recipients."))
230*0Sstevel@tonic-gate 
231*0Sstevel@tonic-gate ER3(SEC_ERROR_NOT_A_RECIPIENT,			(SEC_ERROR_BASE + 45),
232*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
233*0Sstevel@tonic-gate "Cannot decrypt: you are not a recipient, or matching certificate and \
234*0Sstevel@tonic-gate private key not found."))
235*0Sstevel@tonic-gate 
236*0Sstevel@tonic-gate ER3(SEC_ERROR_PKCS7_KEYALG_MISMATCH,		(SEC_ERROR_BASE + 46),
237*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
238*0Sstevel@tonic-gate "Cannot decrypt: key encryption algorithm does not match your certificate."))
239*0Sstevel@tonic-gate 
240*0Sstevel@tonic-gate ER3(SEC_ERROR_PKCS7_BAD_SIGNATURE,		(SEC_ERROR_BASE + 47),
241*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
242*0Sstevel@tonic-gate "Signature verification failed: no signer found, too many signers found, \
243*0Sstevel@tonic-gate or improper or corrupted data."))
244*0Sstevel@tonic-gate 
245*0Sstevel@tonic-gate ER3(SEC_ERROR_UNSUPPORTED_KEYALG,		(SEC_ERROR_BASE + 48),
246*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
247*0Sstevel@tonic-gate "Unsupported or unknown key algorithm."))
248*0Sstevel@tonic-gate 
249*0Sstevel@tonic-gate ER3(SEC_ERROR_DECRYPTION_DISALLOWED,		(SEC_ERROR_BASE + 49),
250*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
251*0Sstevel@tonic-gate "Cannot decrypt: encrypted using a disallowed algorithm or key size."))
252*0Sstevel@tonic-gate 
253*0Sstevel@tonic-gate 
254*0Sstevel@tonic-gate /* Fortezza Alerts */
255*0Sstevel@tonic-gate ER3(XP_SEC_FORTEZZA_BAD_CARD,			(SEC_ERROR_BASE + 50),
256*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
257*0Sstevel@tonic-gate "Fortezza card has not been properly initialized.  \
258*0Sstevel@tonic-gate Please remove it and return it to your issuer."))
259*0Sstevel@tonic-gate 
260*0Sstevel@tonic-gate ER3(XP_SEC_FORTEZZA_NO_CARD,			(SEC_ERROR_BASE + 51),
261*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
262*0Sstevel@tonic-gate "No Fortezza cards Found"))
263*0Sstevel@tonic-gate 
264*0Sstevel@tonic-gate ER3(XP_SEC_FORTEZZA_NONE_SELECTED,		(SEC_ERROR_BASE + 52),
265*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
266*0Sstevel@tonic-gate "No Fortezza card selected"))
267*0Sstevel@tonic-gate 
268*0Sstevel@tonic-gate ER3(XP_SEC_FORTEZZA_MORE_INFO,			(SEC_ERROR_BASE + 53),
269*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
270*0Sstevel@tonic-gate "Please select a personality to get more info on"))
271*0Sstevel@tonic-gate 
272*0Sstevel@tonic-gate ER3(XP_SEC_FORTEZZA_PERSON_NOT_FOUND,		(SEC_ERROR_BASE + 54),
273*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
274*0Sstevel@tonic-gate "Personality not found"))
275*0Sstevel@tonic-gate 
276*0Sstevel@tonic-gate ER3(XP_SEC_FORTEZZA_NO_MORE_INFO,		(SEC_ERROR_BASE + 55),
277*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
278*0Sstevel@tonic-gate "No more information on that Personality"))
279*0Sstevel@tonic-gate 
280*0Sstevel@tonic-gate ER3(XP_SEC_FORTEZZA_BAD_PIN,			(SEC_ERROR_BASE + 56),
281*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
282*0Sstevel@tonic-gate "Invalid Pin"))
283*0Sstevel@tonic-gate 
284*0Sstevel@tonic-gate ER3(XP_SEC_FORTEZZA_PERSON_ERROR,		(SEC_ERROR_BASE + 57),
285*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
286*0Sstevel@tonic-gate "Couldn't initialize Fortezza personalities."))
287*0Sstevel@tonic-gate /* end fortezza alerts. */
288*0Sstevel@tonic-gate 
289*0Sstevel@tonic-gate ER3(SEC_ERROR_NO_KRL,				(SEC_ERROR_BASE + 58),
290*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
291*0Sstevel@tonic-gate "No KRL for this site's certificate has been found."))
292*0Sstevel@tonic-gate 
293*0Sstevel@tonic-gate ER3(SEC_ERROR_KRL_EXPIRED,			(SEC_ERROR_BASE + 59),
294*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
295*0Sstevel@tonic-gate "The KRL for this site's certificate has expired."))
296*0Sstevel@tonic-gate 
297*0Sstevel@tonic-gate ER3(SEC_ERROR_KRL_BAD_SIGNATURE,		(SEC_ERROR_BASE + 60),
298*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
299*0Sstevel@tonic-gate "The KRL for this site's certificate has an invalid signature."))
300*0Sstevel@tonic-gate 
301*0Sstevel@tonic-gate ER3(SEC_ERROR_REVOKED_KEY,			(SEC_ERROR_BASE + 61),
302*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
303*0Sstevel@tonic-gate "The key for this site's certificate has been revoked."))
304*0Sstevel@tonic-gate 
305*0Sstevel@tonic-gate ER3(SEC_ERROR_KRL_INVALID,			(SEC_ERROR_BASE + 62),
306*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
307*0Sstevel@tonic-gate "New KRL has an invalid format."))
308*0Sstevel@tonic-gate 
309*0Sstevel@tonic-gate ER3(SEC_ERROR_NEED_RANDOM,			(SEC_ERROR_BASE + 63),
310*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
311*0Sstevel@tonic-gate "security library: need random data."))
312*0Sstevel@tonic-gate 
313*0Sstevel@tonic-gate ER3(SEC_ERROR_NO_MODULE,			(SEC_ERROR_BASE + 64),
314*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
315*0Sstevel@tonic-gate "security library: no security module can perform the requested operation."))
316*0Sstevel@tonic-gate 
317*0Sstevel@tonic-gate ER3(SEC_ERROR_NO_TOKEN,				(SEC_ERROR_BASE + 65),
318*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
319*0Sstevel@tonic-gate "The security card or token does not exist, needs to be initialized, or has been removed."))
320*0Sstevel@tonic-gate 
321*0Sstevel@tonic-gate ER3(SEC_ERROR_READ_ONLY,			(SEC_ERROR_BASE + 66),
322*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
323*0Sstevel@tonic-gate "security library: read-only database."))
324*0Sstevel@tonic-gate 
325*0Sstevel@tonic-gate ER3(SEC_ERROR_NO_SLOT_SELECTED,			(SEC_ERROR_BASE + 67),
326*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
327*0Sstevel@tonic-gate "No slot or token was selected."))
328*0Sstevel@tonic-gate 
329*0Sstevel@tonic-gate ER3(SEC_ERROR_CERT_NICKNAME_COLLISION,		(SEC_ERROR_BASE + 68),
330*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
331*0Sstevel@tonic-gate "A certificate with the same nickname already exists."))
332*0Sstevel@tonic-gate 
333*0Sstevel@tonic-gate ER3(SEC_ERROR_KEY_NICKNAME_COLLISION,		(SEC_ERROR_BASE + 69),
334*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
335*0Sstevel@tonic-gate "A key with the same nickname already exists."))
336*0Sstevel@tonic-gate 
337*0Sstevel@tonic-gate ER3(SEC_ERROR_SAFE_NOT_CREATED,			(SEC_ERROR_BASE + 70),
338*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
339*0Sstevel@tonic-gate "error while creating safe object"))
340*0Sstevel@tonic-gate 
341*0Sstevel@tonic-gate ER3(SEC_ERROR_BAGGAGE_NOT_CREATED,		(SEC_ERROR_BASE + 71),
342*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
343*0Sstevel@tonic-gate "error while creating baggage object"))
344*0Sstevel@tonic-gate 
345*0Sstevel@tonic-gate ER3(XP_JAVA_REMOVE_PRINCIPAL_ERROR,		(SEC_ERROR_BASE + 72),
346*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
347*0Sstevel@tonic-gate "Couldn't remove the principal"))
348*0Sstevel@tonic-gate 
349*0Sstevel@tonic-gate ER3(XP_JAVA_DELETE_PRIVILEGE_ERROR,		(SEC_ERROR_BASE + 73),
350*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
351*0Sstevel@tonic-gate "Couldn't delete the privilege"))
352*0Sstevel@tonic-gate 
353*0Sstevel@tonic-gate ER3(XP_JAVA_CERT_NOT_EXISTS_ERROR,		(SEC_ERROR_BASE + 74),
354*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
355*0Sstevel@tonic-gate "This principal doesn't have a certificate"))
356*0Sstevel@tonic-gate 
357*0Sstevel@tonic-gate ER3(SEC_ERROR_BAD_EXPORT_ALGORITHM,		(SEC_ERROR_BASE + 75),
358*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
359*0Sstevel@tonic-gate "Required algorithm is not allowed."))
360*0Sstevel@tonic-gate 
361*0Sstevel@tonic-gate ER3(SEC_ERROR_EXPORTING_CERTIFICATES,		(SEC_ERROR_BASE + 76),
362*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
363*0Sstevel@tonic-gate "Error attempting to export certificates."))
364*0Sstevel@tonic-gate 
365*0Sstevel@tonic-gate ER3(SEC_ERROR_IMPORTING_CERTIFICATES,		(SEC_ERROR_BASE + 77),
366*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
367*0Sstevel@tonic-gate "Error attempting to import certificates."))
368*0Sstevel@tonic-gate 
369*0Sstevel@tonic-gate ER3(SEC_ERROR_PKCS12_DECODING_PFX,		(SEC_ERROR_BASE + 78),
370*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
371*0Sstevel@tonic-gate "Unable to import.  Decoding error.  File not valid."))
372*0Sstevel@tonic-gate 
373*0Sstevel@tonic-gate ER3(SEC_ERROR_PKCS12_INVALID_MAC,		(SEC_ERROR_BASE + 79),
374*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
375*0Sstevel@tonic-gate "Unable to import.  Invalid MAC.  Incorrect password or corrupt file."))
376*0Sstevel@tonic-gate 
377*0Sstevel@tonic-gate ER3(SEC_ERROR_PKCS12_UNSUPPORTED_MAC_ALGORITHM,	(SEC_ERROR_BASE + 80),
378*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
379*0Sstevel@tonic-gate "Unable to import.  MAC algorithm not supported."))
380*0Sstevel@tonic-gate 
381*0Sstevel@tonic-gate ER3(SEC_ERROR_PKCS12_UNSUPPORTED_TRANSPORT_MODE,(SEC_ERROR_BASE + 81),
382*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
383*0Sstevel@tonic-gate "Unable to import.  Only password integrity and privacy modes supported."))
384*0Sstevel@tonic-gate 
385*0Sstevel@tonic-gate ER3(SEC_ERROR_PKCS12_CORRUPT_PFX_STRUCTURE,	(SEC_ERROR_BASE + 82),
386*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
387*0Sstevel@tonic-gate "Unable to import.  File structure is corrupt."))
388*0Sstevel@tonic-gate 
389*0Sstevel@tonic-gate ER3(SEC_ERROR_PKCS12_UNSUPPORTED_PBE_ALGORITHM, (SEC_ERROR_BASE + 83),
390*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
391*0Sstevel@tonic-gate "Unable to import.  Encryption algorithm not supported."))
392*0Sstevel@tonic-gate 
393*0Sstevel@tonic-gate ER3(SEC_ERROR_PKCS12_UNSUPPORTED_VERSION,	(SEC_ERROR_BASE + 84),
394*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
395*0Sstevel@tonic-gate "Unable to import.  File version not supported."))
396*0Sstevel@tonic-gate 
397*0Sstevel@tonic-gate ER3(SEC_ERROR_PKCS12_PRIVACY_PASSWORD_INCORRECT,(SEC_ERROR_BASE + 85),
398*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
399*0Sstevel@tonic-gate "Unable to import.  Incorrect privacy password."))
400*0Sstevel@tonic-gate 
401*0Sstevel@tonic-gate ER3(SEC_ERROR_PKCS12_CERT_COLLISION,		(SEC_ERROR_BASE + 86),
402*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
403*0Sstevel@tonic-gate "Unable to import.  Same nickname already exists in database."))
404*0Sstevel@tonic-gate 
405*0Sstevel@tonic-gate ER3(SEC_ERROR_USER_CANCELLED,			(SEC_ERROR_BASE + 87),
406*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
407*0Sstevel@tonic-gate "The user pressed cancel."))
408*0Sstevel@tonic-gate 
409*0Sstevel@tonic-gate ER3(SEC_ERROR_PKCS12_DUPLICATE_DATA,		(SEC_ERROR_BASE + 88),
410*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
411*0Sstevel@tonic-gate "Not imported, already in database."))
412*0Sstevel@tonic-gate 
413*0Sstevel@tonic-gate ER3(SEC_ERROR_MESSAGE_SEND_ABORTED,		(SEC_ERROR_BASE + 89),
414*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
415*0Sstevel@tonic-gate "Message not sent."))
416*0Sstevel@tonic-gate 
417*0Sstevel@tonic-gate ER3(SEC_ERROR_INADEQUATE_KEY_USAGE,		(SEC_ERROR_BASE + 90),
418*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
419*0Sstevel@tonic-gate "Certificate key usage inadequate for attempted operation."))
420*0Sstevel@tonic-gate 
421*0Sstevel@tonic-gate ER3(SEC_ERROR_INADEQUATE_CERT_TYPE,		(SEC_ERROR_BASE + 91),
422*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
423*0Sstevel@tonic-gate "Certificate type not approved for application."))
424*0Sstevel@tonic-gate 
425*0Sstevel@tonic-gate ER3(SEC_ERROR_CERT_ADDR_MISMATCH,		(SEC_ERROR_BASE + 92),
426*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
427*0Sstevel@tonic-gate "Address in signing certificate does not match address in message headers."))
428*0Sstevel@tonic-gate 
429*0Sstevel@tonic-gate ER3(SEC_ERROR_PKCS12_UNABLE_TO_IMPORT_KEY,	(SEC_ERROR_BASE + 93),
430*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
431*0Sstevel@tonic-gate "Unable to import.  Error attempting to import private key."))
432*0Sstevel@tonic-gate 
433*0Sstevel@tonic-gate ER3(SEC_ERROR_PKCS12_IMPORTING_CERT_CHAIN,	(SEC_ERROR_BASE + 94),
434*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
435*0Sstevel@tonic-gate "Unable to import.  Error attempting to import certificate chain."))
436*0Sstevel@tonic-gate 
437*0Sstevel@tonic-gate ER3(SEC_ERROR_PKCS12_UNABLE_TO_LOCATE_OBJECT_BY_NAME, (SEC_ERROR_BASE + 95),
438*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
439*0Sstevel@tonic-gate "Unable to export.  Unable to locate certificate or key by nickname."))
440*0Sstevel@tonic-gate 
441*0Sstevel@tonic-gate ER3(SEC_ERROR_PKCS12_UNABLE_TO_EXPORT_KEY,	(SEC_ERROR_BASE + 96),
442*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
443*0Sstevel@tonic-gate "Unable to export.  Private Key could not be located and exported."))
444*0Sstevel@tonic-gate 
445*0Sstevel@tonic-gate ER3(SEC_ERROR_PKCS12_UNABLE_TO_WRITE, 		(SEC_ERROR_BASE + 97),
446*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
447*0Sstevel@tonic-gate "Unable to export.  Unable to write the export file."))
448*0Sstevel@tonic-gate 
449*0Sstevel@tonic-gate ER3(SEC_ERROR_PKCS12_UNABLE_TO_READ,		(SEC_ERROR_BASE + 98),
450*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
451*0Sstevel@tonic-gate "Unable to import.  Unable to read the import file."))
452*0Sstevel@tonic-gate 
453*0Sstevel@tonic-gate ER3(SEC_ERROR_PKCS12_KEY_DATABASE_NOT_INITIALIZED, (SEC_ERROR_BASE + 99),
454*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
455*0Sstevel@tonic-gate "Unable to export.  Key database corrupt or deleted."))
456*0Sstevel@tonic-gate 
457*0Sstevel@tonic-gate ER3(SEC_ERROR_KEYGEN_FAIL,			(SEC_ERROR_BASE + 100),
458*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
459*0Sstevel@tonic-gate "Unable to generate public/private key pair."))
460*0Sstevel@tonic-gate 
461*0Sstevel@tonic-gate ER3(SEC_ERROR_INVALID_PASSWORD,			(SEC_ERROR_BASE + 101),
462*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
463*0Sstevel@tonic-gate "Password entered is invalid.  Please pick a different one."))
464*0Sstevel@tonic-gate 
465*0Sstevel@tonic-gate ER3(SEC_ERROR_RETRY_OLD_PASSWORD,		(SEC_ERROR_BASE + 102),
466*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
467*0Sstevel@tonic-gate "Old password entered incorrectly.  Please try again."))
468*0Sstevel@tonic-gate 
469*0Sstevel@tonic-gate ER3(SEC_ERROR_BAD_NICKNAME,			(SEC_ERROR_BASE + 103),
470*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
471*0Sstevel@tonic-gate "Certificate nickname already in use."))
472*0Sstevel@tonic-gate 
473*0Sstevel@tonic-gate ER3(SEC_ERROR_NOT_FORTEZZA_ISSUER,       	(SEC_ERROR_BASE + 104),
474*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
475*0Sstevel@tonic-gate "Peer FORTEZZA chain has a non-FORTEZZA Certificate."))
476*0Sstevel@tonic-gate 
477*0Sstevel@tonic-gate /* ER3(SEC_ERROR_UNKNOWN, 			(SEC_ERROR_BASE + 105), */
478*0Sstevel@tonic-gate 
479*0Sstevel@tonic-gate ER3(SEC_ERROR_JS_INVALID_MODULE_NAME, 		(SEC_ERROR_BASE + 106),
480*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
481*0Sstevel@tonic-gate "Invalid module name."))
482*0Sstevel@tonic-gate 
483*0Sstevel@tonic-gate ER3(SEC_ERROR_JS_INVALID_DLL, 			(SEC_ERROR_BASE + 107),
484*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
485*0Sstevel@tonic-gate "Invalid module path/filename"))
486*0Sstevel@tonic-gate 
487*0Sstevel@tonic-gate ER3(SEC_ERROR_JS_ADD_MOD_FAILURE, 		(SEC_ERROR_BASE + 108),
488*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
489*0Sstevel@tonic-gate "Unable to add module"))
490*0Sstevel@tonic-gate 
491*0Sstevel@tonic-gate ER3(SEC_ERROR_JS_DEL_MOD_FAILURE, 		(SEC_ERROR_BASE + 109),
492*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
493*0Sstevel@tonic-gate "Unable to delete module"))
494*0Sstevel@tonic-gate 
495*0Sstevel@tonic-gate ER3(SEC_ERROR_OLD_KRL,	     			(SEC_ERROR_BASE + 110),
496*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
497*0Sstevel@tonic-gate "New KRL is not later than the current one."))
498*0Sstevel@tonic-gate 
499*0Sstevel@tonic-gate ER3(SEC_ERROR_CKL_CONFLICT,	     		(SEC_ERROR_BASE + 111),
500*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN,
501*0Sstevel@tonic-gate "New CKL has different issuer than current CKL.  Delete current CKL."))
502*0Sstevel@tonic-gate 
503*0Sstevel@tonic-gate #if 0 /* This was defined AFTER HCL 1.5 was released. */
504*0Sstevel@tonic-gate ER3(SEC_ERROR_CERT_NOT_IN_NAME_SPACE, 		(SEC_ERROR_BASE + 112),
505*0Sstevel@tonic-gate "The Certifying Authority for this certifcate is not permitted to issue a \
506*0Sstevel@tonic-gate certifcate with this name."))
507*0Sstevel@tonic-gate #endif
508*0Sstevel@tonic-gate 
509*0Sstevel@tonic-gate 
510*0Sstevel@tonic-gate 
511