1 /*
2 * Copyright 1998-2002 Sun Microsystems, Inc. All rights reserved.
3 * Use is subject to license terms.
4 */
5
6 #include <locale.h>
7 const char *
k5g_error_table(long errorno)8 k5g_error_table(long errorno) {
9
10 switch (errorno) {
11 case 0:
12 return(dgettext(TEXT_DOMAIN,
13 "Principal in credential cache does not match desired name"));
14 case 1:
15 return(dgettext(TEXT_DOMAIN,
16 "No principal in keytab matches desired name"));
17 case 2:
18 return(dgettext(TEXT_DOMAIN,
19 "Credential cache has no TGT"));
20 case 3:
21 return(dgettext(TEXT_DOMAIN,
22 "Authenticator has no subkey"));
23 case 4:
24 return(dgettext(TEXT_DOMAIN,
25 "Context is already fully established"));
26 case 5:
27 return(dgettext(TEXT_DOMAIN,
28 "Unknown signature type in token"));
29 case 6:
30 return(dgettext(TEXT_DOMAIN,
31 "Invalid field length in token"));
32 case 7:
33 return(dgettext(TEXT_DOMAIN,
34 "Attempt to use incomplete security context"));
35 case 8:
36 return(dgettext(TEXT_DOMAIN,
37 "Bad magic number for krb5_gss_ctx_id_t"));
38 case 9:
39 return(dgettext(TEXT_DOMAIN,
40 "Bad magic number for krb5_gss_cred_id_t"));
41 case 10:
42 return(dgettext(TEXT_DOMAIN,
43 "Bad magic number for krb5_gss_enc_desc"));
44 case 11:
45 return(dgettext(TEXT_DOMAIN,
46 "Sequence number in token is corrupt"));
47 case 12:
48 return(dgettext(TEXT_DOMAIN,
49 "Credential cache is empty"));
50 case 13:
51 return(dgettext(TEXT_DOMAIN,
52 "Acceptor and Initiator share no checksum types"));
53 default:
54 return("unknown error");
55 }
56 }
57