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