8322 nl: misleading-indentation
[unleashed/tickless.git] / usr / src / lib / gss_mechs / mech_krb5 / et / kdb5_err.c
blobf950d59531095b93df744a9107d2c4023db5c784
1 /*
2 * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
3 * Use is subject to license terms.
4 */
6 #pragma ident "%Z%%M% %I% %E% SMI"
8 #include <locale.h>
9 const char *
10 kdb5_error_table(long errorno) {
12 switch (errorno) {
13 case 0:
14 return(
15 "$Id: kdb5_err.et,v 5.18 1995/11/03 21:52:42 eichin Exp $");
16 case 1:
17 return(dgettext(TEXT_DOMAIN,
18 "Entry already exists in database"));
19 case 2:
20 return(dgettext(TEXT_DOMAIN,
21 "Database store error"));
22 case 3:
23 return(dgettext(TEXT_DOMAIN,
24 "Database read error"));
25 case 4:
26 return(dgettext(TEXT_DOMAIN,
27 "Insufficient access to perform requested operation"));
28 case 5:
29 return(dgettext(TEXT_DOMAIN,
30 "No such entry in the database"));
31 case 6:
32 return(dgettext(TEXT_DOMAIN,
33 "Illegal use of wildcard"));
34 case 7:
35 return(dgettext(TEXT_DOMAIN,
36 "Database is locked or in use--try again later"));
37 case 8:
38 return(dgettext(TEXT_DOMAIN,
39 "Database was modified during read"));
40 case 9:
41 return(dgettext(TEXT_DOMAIN,
42 "Database record is incomplete or corrupted"));
43 case 10:
44 return(dgettext(TEXT_DOMAIN,
45 "Attempt to lock database twice"));
46 case 11:
47 return(dgettext(TEXT_DOMAIN,
48 "Attempt to unlock database when not locked"));
49 case 12:
50 return(dgettext(TEXT_DOMAIN,
51 "Invalid kdb lock mode"));
52 case 13:
53 return(dgettext(TEXT_DOMAIN,
54 "Database has not been initialized"));
55 case 14:
56 return(dgettext(TEXT_DOMAIN,
57 "Database has already been initialized"));
58 case 15:
59 return(dgettext(TEXT_DOMAIN,
60 "Bad direction for converting keys"));
61 case 16:
62 return(dgettext(TEXT_DOMAIN,
63 "Cannot find master key record in database"));
64 case 17:
65 return(dgettext(TEXT_DOMAIN,
66 "Master key does not match database"));
67 case 18:
68 return(dgettext(TEXT_DOMAIN,
69 "Key size in database is invalid"));
70 case 19:
71 return(dgettext(TEXT_DOMAIN,
72 "Cannot find/read stored master key"));
73 case 20:
74 return(dgettext(TEXT_DOMAIN,
75 "Stored master key is corrupted"));
76 case 21:
77 return(dgettext(TEXT_DOMAIN,
78 "Insufficient access to lock database"));
79 case 22:
80 return(dgettext(TEXT_DOMAIN,
81 "Database format error"));
82 case 23:
83 return(dgettext(TEXT_DOMAIN,
84 "Unsupported version in database entry"));
85 case 24:
86 return(dgettext(TEXT_DOMAIN,
87 "Unsupported salt type"));
88 case 25:
89 return(dgettext(TEXT_DOMAIN,
90 "Unsupported encryption type"));
91 case 26:
92 return(dgettext(TEXT_DOMAIN,
93 "Bad database creation flags"));
94 case 27: /* KRB5_KDB_NO_PERMITTED_KEY */
95 return(dgettext(TEXT_DOMAIN,
96 "No matching key in entry having a permitted enctype"));
97 case 28: /* KRB5_KDB_NO_MATCHING_KEY */
98 return(dgettext(TEXT_DOMAIN,
99 "No matching key in entry"));
100 case 29: /* KRB5_LOG_CONV */
101 return(dgettext(TEXT_DOMAIN, "Update log conversion error"));
102 case 30: /* KRB5_LOG_UNSTABLE */
103 return(dgettext(TEXT_DOMAIN, "Update log is unstable"));
104 case 31: /* KRB5_LOG_CORRUPT */
105 return(dgettext(TEXT_DOMAIN, "Update log is corrupt"));
106 case 32: /* KRB5_LOG_ERROR */
107 return(dgettext(TEXT_DOMAIN, "Generic update log error"));
108 case 33: /* KRB5_KDB_DBTYPE_NOTFOUND */
109 return(dgettext(TEXT_DOMAIN,
110 "Unable to find requested database type"));
111 case 34: /* KRB5_KDB_DBTYPE_NOSUP */
112 return(dgettext(TEXT_DOMAIN, "Database type not supported"));
113 case 35: /* KRB5_KDB_DBTYPE_INIT */
114 return(dgettext(TEXT_DOMAIN,
115 "Database library failed to initialize"));
116 case 36: /* KRB5_KDB_SERVER_INTERNAL_ERR */
117 return(dgettext(TEXT_DOMAIN, "Server error"));
118 case 37: /* KRB5_KDB_ACCESS_ERROR */
119 return(dgettext(TEXT_DOMAIN,
120 "Unable to access Kerberos database"));
121 case 38: /* KRB5_KDB_INTERNAL_ERROR */
122 return(dgettext(TEXT_DOMAIN,
123 "Kerberos database internal error"));
124 case 39: /* KRB5_KDB_CONSTRAINT_VIOLATION */
125 return(dgettext(TEXT_DOMAIN,
126 "Kerberos database constraints violated"));
127 default:
128 return("unknown error");