1*0Sstevel@tonic-gate /*
2*0Sstevel@tonic-gate * Copyright (c) 1998, 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 #include <locale.h>
9*0Sstevel@tonic-gate const char *
kv5m_error_table(long errorno)10*0Sstevel@tonic-gate kv5m_error_table(long errorno) {
11*0Sstevel@tonic-gate
12*0Sstevel@tonic-gate switch (errorno) {
13*0Sstevel@tonic-gate case 0:
14*0Sstevel@tonic-gate return(dgettext(TEXT_DOMAIN,
15*0Sstevel@tonic-gate "Kerberos V5 magic number table"));
16*0Sstevel@tonic-gate case 1:
17*0Sstevel@tonic-gate return(dgettext(TEXT_DOMAIN,
18*0Sstevel@tonic-gate "Bad magic number for krb5_principal structure"));
19*0Sstevel@tonic-gate case 2:
20*0Sstevel@tonic-gate return(dgettext(TEXT_DOMAIN,
21*0Sstevel@tonic-gate "Bad magic number for krb5_data structure"));
22*0Sstevel@tonic-gate case 3:
23*0Sstevel@tonic-gate return(dgettext(TEXT_DOMAIN,
24*0Sstevel@tonic-gate "Bad magic number for krb5_keyblock structure"));
25*0Sstevel@tonic-gate case 4:
26*0Sstevel@tonic-gate return(dgettext(TEXT_DOMAIN,
27*0Sstevel@tonic-gate "Bad magic number for krb5_checksum structure"));
28*0Sstevel@tonic-gate case 5:
29*0Sstevel@tonic-gate return(dgettext(TEXT_DOMAIN,
30*0Sstevel@tonic-gate "Bad magic number for krb5_encrypt_block structure"));
31*0Sstevel@tonic-gate case 6:
32*0Sstevel@tonic-gate return(dgettext(TEXT_DOMAIN,
33*0Sstevel@tonic-gate "Bad magic number for krb5_enc_data structure"));
34*0Sstevel@tonic-gate case 7:
35*0Sstevel@tonic-gate return(dgettext(TEXT_DOMAIN,
36*0Sstevel@tonic-gate "Bad magic number for krb5_cryptosystem_entry structure"));
37*0Sstevel@tonic-gate case 8:
38*0Sstevel@tonic-gate return(dgettext(TEXT_DOMAIN,
39*0Sstevel@tonic-gate "Bad magic number for krb5_cs_table_entry structure"));
40*0Sstevel@tonic-gate case 9:
41*0Sstevel@tonic-gate return(dgettext(TEXT_DOMAIN,
42*0Sstevel@tonic-gate "Bad magic number for krb5_checksum_entry structure"));
43*0Sstevel@tonic-gate case 10:
44*0Sstevel@tonic-gate return(dgettext(TEXT_DOMAIN,
45*0Sstevel@tonic-gate "Bad magic number for krb5_authdata structure"));
46*0Sstevel@tonic-gate case 11:
47*0Sstevel@tonic-gate return(dgettext(TEXT_DOMAIN,
48*0Sstevel@tonic-gate "Bad magic number for krb5_transited structure"));
49*0Sstevel@tonic-gate case 12:
50*0Sstevel@tonic-gate return(dgettext(TEXT_DOMAIN,
51*0Sstevel@tonic-gate "Bad magic number for krb5_enc_tkt_part structure"));
52*0Sstevel@tonic-gate case 13:
53*0Sstevel@tonic-gate return(dgettext(TEXT_DOMAIN,
54*0Sstevel@tonic-gate "Bad magic number for krb5_ticket structure"));
55*0Sstevel@tonic-gate case 14:
56*0Sstevel@tonic-gate return(dgettext(TEXT_DOMAIN,
57*0Sstevel@tonic-gate "Bad magic number for krb5_authenticator structure"));
58*0Sstevel@tonic-gate case 15:
59*0Sstevel@tonic-gate return(dgettext(TEXT_DOMAIN,
60*0Sstevel@tonic-gate "Bad magic number for krb5_tkt_authent structure"));
61*0Sstevel@tonic-gate case 16:
62*0Sstevel@tonic-gate return(dgettext(TEXT_DOMAIN,
63*0Sstevel@tonic-gate "Bad magic number for krb5_creds structure"));
64*0Sstevel@tonic-gate case 17:
65*0Sstevel@tonic-gate return(dgettext(TEXT_DOMAIN,
66*0Sstevel@tonic-gate "Bad magic number for krb5_last_req_entry structure"));
67*0Sstevel@tonic-gate case 18:
68*0Sstevel@tonic-gate return(dgettext(TEXT_DOMAIN,
69*0Sstevel@tonic-gate "Bad magic number for krb5_pa_data structure"));
70*0Sstevel@tonic-gate case 19:
71*0Sstevel@tonic-gate return(dgettext(TEXT_DOMAIN,
72*0Sstevel@tonic-gate "Bad magic number for krb5_kdc_req structure"));
73*0Sstevel@tonic-gate case 20:
74*0Sstevel@tonic-gate return(dgettext(TEXT_DOMAIN,
75*0Sstevel@tonic-gate "Bad magic number for krb5_enc_kdc_rep_part structure"));
76*0Sstevel@tonic-gate case 21:
77*0Sstevel@tonic-gate return(dgettext(TEXT_DOMAIN,
78*0Sstevel@tonic-gate "Bad magic number for krb5_kdc_rep structure"));
79*0Sstevel@tonic-gate case 22:
80*0Sstevel@tonic-gate return(dgettext(TEXT_DOMAIN,
81*0Sstevel@tonic-gate "Bad magic number for krb5_error structure"));
82*0Sstevel@tonic-gate case 23:
83*0Sstevel@tonic-gate return(dgettext(TEXT_DOMAIN,
84*0Sstevel@tonic-gate "Bad magic number for krb5_ap_req structure"));
85*0Sstevel@tonic-gate case 24:
86*0Sstevel@tonic-gate return(dgettext(TEXT_DOMAIN,
87*0Sstevel@tonic-gate "Bad magic number for krb5_ap_rep structure"));
88*0Sstevel@tonic-gate case 25:
89*0Sstevel@tonic-gate return(dgettext(TEXT_DOMAIN,
90*0Sstevel@tonic-gate "Bad magic number for krb5_ap_rep_enc_part structure"));
91*0Sstevel@tonic-gate case 26:
92*0Sstevel@tonic-gate return(dgettext(TEXT_DOMAIN,
93*0Sstevel@tonic-gate "Bad magic number for krb5_response structure"));
94*0Sstevel@tonic-gate case 27:
95*0Sstevel@tonic-gate return(dgettext(TEXT_DOMAIN,
96*0Sstevel@tonic-gate "Bad magic number for krb5_safe structure"));
97*0Sstevel@tonic-gate case 28:
98*0Sstevel@tonic-gate return(dgettext(TEXT_DOMAIN,
99*0Sstevel@tonic-gate "Bad magic number for krb5_priv structure"));
100*0Sstevel@tonic-gate case 29:
101*0Sstevel@tonic-gate return(dgettext(TEXT_DOMAIN,
102*0Sstevel@tonic-gate "Bad magic number for krb5_priv_enc_part structure"));
103*0Sstevel@tonic-gate case 30:
104*0Sstevel@tonic-gate return(dgettext(TEXT_DOMAIN,
105*0Sstevel@tonic-gate "Bad magic number for krb5_cred structure"));
106*0Sstevel@tonic-gate case 31:
107*0Sstevel@tonic-gate return(dgettext(TEXT_DOMAIN,
108*0Sstevel@tonic-gate "Bad magic number for krb5_cred_info structure"));
109*0Sstevel@tonic-gate case 32:
110*0Sstevel@tonic-gate return(dgettext(TEXT_DOMAIN,
111*0Sstevel@tonic-gate "Bad magic number for krb5_cred_enc_part structure"));
112*0Sstevel@tonic-gate case 33:
113*0Sstevel@tonic-gate return(dgettext(TEXT_DOMAIN,
114*0Sstevel@tonic-gate "Bad magic number for krb5_pwd_data structure"));
115*0Sstevel@tonic-gate case 34:
116*0Sstevel@tonic-gate return(dgettext(TEXT_DOMAIN,
117*0Sstevel@tonic-gate "Bad magic number for krb5_address structure"));
118*0Sstevel@tonic-gate case 35:
119*0Sstevel@tonic-gate return(dgettext(TEXT_DOMAIN,
120*0Sstevel@tonic-gate "Bad magic number for krb5_keytab_entry structure"));
121*0Sstevel@tonic-gate case 36:
122*0Sstevel@tonic-gate return(dgettext(TEXT_DOMAIN,
123*0Sstevel@tonic-gate "Bad magic number for krb5_context structure"));
124*0Sstevel@tonic-gate case 37:
125*0Sstevel@tonic-gate return(dgettext(TEXT_DOMAIN,
126*0Sstevel@tonic-gate "Bad magic number for krb5_os_context structure"));
127*0Sstevel@tonic-gate case 38:
128*0Sstevel@tonic-gate return(dgettext(TEXT_DOMAIN,
129*0Sstevel@tonic-gate "Bad magic number for krb5_alt_method structure"));
130*0Sstevel@tonic-gate case 39:
131*0Sstevel@tonic-gate return(dgettext(TEXT_DOMAIN,
132*0Sstevel@tonic-gate "Bad magic number for krb5_etype_info_entry structure"));
133*0Sstevel@tonic-gate case 40:
134*0Sstevel@tonic-gate return(dgettext(TEXT_DOMAIN,
135*0Sstevel@tonic-gate "Bad magic number for krb5_db_context structure"));
136*0Sstevel@tonic-gate case 41:
137*0Sstevel@tonic-gate return(dgettext(TEXT_DOMAIN,
138*0Sstevel@tonic-gate "Bad magic number for krb5_auth_context structure"));
139*0Sstevel@tonic-gate case 42:
140*0Sstevel@tonic-gate return(dgettext(TEXT_DOMAIN,
141*0Sstevel@tonic-gate "Bad magic number for krb5_keytab structure"));
142*0Sstevel@tonic-gate case 43:
143*0Sstevel@tonic-gate return(dgettext(TEXT_DOMAIN,
144*0Sstevel@tonic-gate "Bad magic number for krb5_rcache structure"));
145*0Sstevel@tonic-gate case 44:
146*0Sstevel@tonic-gate return(dgettext(TEXT_DOMAIN,
147*0Sstevel@tonic-gate "Bad magic number for krb5_ccache structure"));
148*0Sstevel@tonic-gate case 45:
149*0Sstevel@tonic-gate return(dgettext(TEXT_DOMAIN,
150*0Sstevel@tonic-gate "Bad magic number for krb5_preauth_ops"));
151*0Sstevel@tonic-gate case 46:
152*0Sstevel@tonic-gate return(dgettext(TEXT_DOMAIN,
153*0Sstevel@tonic-gate "Bad magic number for krb5_sam_challenge"));
154*0Sstevel@tonic-gate case 47:
155*0Sstevel@tonic-gate return(dgettext(TEXT_DOMAIN,
156*0Sstevel@tonic-gate "Bad magic number for krb5_sam_key"));
157*0Sstevel@tonic-gate case 48:
158*0Sstevel@tonic-gate return(dgettext(TEXT_DOMAIN,
159*0Sstevel@tonic-gate "Bad magic number for krb5_enc_sam_response_enc"));
160*0Sstevel@tonic-gate case 49:
161*0Sstevel@tonic-gate return(dgettext(TEXT_DOMAIN,
162*0Sstevel@tonic-gate "Bad magic number for krb5_sam_response"));
163*0Sstevel@tonic-gate case 50:
164*0Sstevel@tonic-gate return(dgettext(TEXT_DOMAIN,
165*0Sstevel@tonic-gate "Bad magic number for krb5_predicted_sam_response"));
166*0Sstevel@tonic-gate case 51:
167*0Sstevel@tonic-gate return(dgettext(TEXT_DOMAIN,
168*0Sstevel@tonic-gate "Bad magic number for passwd_phrase_element"));
169*0Sstevel@tonic-gate case 52:
170*0Sstevel@tonic-gate return(dgettext(TEXT_DOMAIN,
171*0Sstevel@tonic-gate "Bad magic number for GSSAPI OID"));
172*0Sstevel@tonic-gate case 53:
173*0Sstevel@tonic-gate return(dgettext(TEXT_DOMAIN,
174*0Sstevel@tonic-gate "Bad magic number for GSSAPI QUEUE"));
175*0Sstevel@tonic-gate default:
176*0Sstevel@tonic-gate return("unknown error");
177*0Sstevel@tonic-gate }
178*0Sstevel@tonic-gate }
179