PageRenderTime 75ms CodeModel.GetById 31ms RepoModel.GetById 1ms app.codeStats 0ms

/usr/src/lib/gss_mechs/mech_krb5/et/adm_err.c

https://github.com/richlowe/illumos-gate
C | 520 lines | 513 code | 3 blank | 4 comment | 1 complexity | b6b008bcbb0443a360464274d9b1621b MD5 | raw file
  1. /*
  2. * Copyright 1998-2002 Sun Microsystems, Inc. All rights reserved.
  3. * Use is subject to license terms.
  4. */
  5. #pragma ident "%Z%%M% %I% %E% SMI"
  6. #include <locale.h>
  7. const char *
  8. kadm_error_table(long errorno) {
  9. switch (errorno) {
  10. case 0:
  11. return(dgettext(TEXT_DOMAIN,
  12. "Administrative service completed"));
  13. case 1:
  14. return(dgettext(TEXT_DOMAIN,
  15. "KADM err: Principal unknown"));
  16. case 2:
  17. return(dgettext(TEXT_DOMAIN,
  18. "KADM err: Principal already exists"));
  19. case 3:
  20. return(dgettext(TEXT_DOMAIN,
  21. "KADM err: Memory allocation failure"));
  22. case 4:
  23. return(dgettext(TEXT_DOMAIN,
  24. "KADM err: Bad password"));
  25. case 5:
  26. return(dgettext(TEXT_DOMAIN,
  27. "KADM err: Protocol failure"));
  28. case 6:
  29. return(dgettext(TEXT_DOMAIN,
  30. "KADM err: Security failure"));
  31. case 7:
  32. return(dgettext(TEXT_DOMAIN,
  33. "KADM err: Permission denied"));
  34. case 8:
  35. return(dgettext(TEXT_DOMAIN,
  36. "KADM err: Kerberos database update failed"));
  37. case 9:
  38. return(dgettext(TEXT_DOMAIN,
  39. "KADM error code 9"));
  40. case 10:
  41. return(dgettext(TEXT_DOMAIN,
  42. "KADM error code 10"));
  43. case 11:
  44. return(dgettext(TEXT_DOMAIN,
  45. "KADM error code 11"));
  46. case 12:
  47. return(dgettext(TEXT_DOMAIN,
  48. "KADM error code 12"));
  49. case 13:
  50. return(dgettext(TEXT_DOMAIN,
  51. "KADM error code 13"));
  52. case 14:
  53. return(dgettext(TEXT_DOMAIN,
  54. "KADM error code 14"));
  55. case 15:
  56. return(dgettext(TEXT_DOMAIN,
  57. "KADM error code 15"));
  58. case 16:
  59. return(dgettext(TEXT_DOMAIN,
  60. "KADM error code 16"));
  61. case 17:
  62. return(dgettext(TEXT_DOMAIN,
  63. "KADM error code 17"));
  64. case 18:
  65. return(dgettext(TEXT_DOMAIN,
  66. "KADM error code 18"));
  67. case 19:
  68. return(dgettext(TEXT_DOMAIN,
  69. "KADM error code 19"));
  70. case 20:
  71. return(dgettext(TEXT_DOMAIN,
  72. "KADM error code 20"));
  73. case 21:
  74. return(dgettext(TEXT_DOMAIN,
  75. "KADM error code 21"));
  76. case 22:
  77. return(dgettext(TEXT_DOMAIN,
  78. "KADM error code 22"));
  79. case 23:
  80. return(dgettext(TEXT_DOMAIN,
  81. "KADM error code 23"));
  82. case 24:
  83. return(dgettext(TEXT_DOMAIN,
  84. "KADM error code 24"));
  85. case 25:
  86. return(dgettext(TEXT_DOMAIN,
  87. "KADM error code 25"));
  88. case 26:
  89. return(dgettext(TEXT_DOMAIN,
  90. "KADM error code 26"));
  91. case 27:
  92. return(dgettext(TEXT_DOMAIN,
  93. "KADM error code 27"));
  94. case 28:
  95. return(dgettext(TEXT_DOMAIN,
  96. "KADM error code 28"));
  97. case 29:
  98. return(dgettext(TEXT_DOMAIN,
  99. "KADM error code 29"));
  100. case 30:
  101. return(dgettext(TEXT_DOMAIN,
  102. "KADM error code 30"));
  103. case 31:
  104. return(dgettext(TEXT_DOMAIN,
  105. "KADM error code 31"));
  106. case 32:
  107. return(dgettext(TEXT_DOMAIN,
  108. "KADM error code 32"));
  109. case 33:
  110. return(dgettext(TEXT_DOMAIN,
  111. "KADM error code 33"));
  112. case 34:
  113. return(dgettext(TEXT_DOMAIN,
  114. "KADM error code 34"));
  115. case 35:
  116. return(dgettext(TEXT_DOMAIN,
  117. "KADM error code 35"));
  118. case 36:
  119. return(dgettext(TEXT_DOMAIN,
  120. "KADM error code 36"));
  121. case 37:
  122. return(dgettext(TEXT_DOMAIN,
  123. "KADM error code 37"));
  124. case 38:
  125. return(dgettext(TEXT_DOMAIN,
  126. "KADM error code 38"));
  127. case 39:
  128. return(dgettext(TEXT_DOMAIN,
  129. "KADM error code 39"));
  130. case 40:
  131. return(dgettext(TEXT_DOMAIN,
  132. "KADM error code 40"));
  133. case 41:
  134. return(dgettext(TEXT_DOMAIN,
  135. "KADM error code 41"));
  136. case 42:
  137. return(dgettext(TEXT_DOMAIN,
  138. "KADM error code 42"));
  139. case 43:
  140. return(dgettext(TEXT_DOMAIN,
  141. "KADM error code 43"));
  142. case 44:
  143. return(dgettext(TEXT_DOMAIN,
  144. "KADM error code 44"));
  145. case 45:
  146. return(dgettext(TEXT_DOMAIN,
  147. "KADM error code 45"));
  148. case 46:
  149. return(dgettext(TEXT_DOMAIN,
  150. "KADM error code 46"));
  151. case 47:
  152. return(dgettext(TEXT_DOMAIN,
  153. "KADM error code 47"));
  154. case 48:
  155. return(dgettext(TEXT_DOMAIN,
  156. "KADM error code 48"));
  157. case 49:
  158. return(dgettext(TEXT_DOMAIN,
  159. "KADM error code 49"));
  160. case 50:
  161. return(dgettext(TEXT_DOMAIN,
  162. "KADM error code 50"));
  163. case 51:
  164. return(dgettext(TEXT_DOMAIN,
  165. "KADM error code 51"));
  166. case 52:
  167. return(dgettext(TEXT_DOMAIN,
  168. "KADM error code 52"));
  169. case 53:
  170. return(dgettext(TEXT_DOMAIN,
  171. "KADM error code 53"));
  172. case 54:
  173. return(dgettext(TEXT_DOMAIN,
  174. "KADM error code 54"));
  175. case 55:
  176. return(dgettext(TEXT_DOMAIN,
  177. "KADM error code 55"));
  178. case 56:
  179. return(dgettext(TEXT_DOMAIN,
  180. "KADM error code 56"));
  181. case 57:
  182. return(dgettext(TEXT_DOMAIN,
  183. "KADM error code 57"));
  184. case 58:
  185. return(dgettext(TEXT_DOMAIN,
  186. "KADM error code 58"));
  187. case 59:
  188. return(dgettext(TEXT_DOMAIN,
  189. "KADM error code 59"));
  190. case 60:
  191. return(dgettext(TEXT_DOMAIN,
  192. "KADM error code 60"));
  193. case 61:
  194. return(dgettext(TEXT_DOMAIN,
  195. "KADM error code 61"));
  196. case 62:
  197. return(dgettext(TEXT_DOMAIN,
  198. "KADM error code 62"));
  199. case 63:
  200. return(dgettext(TEXT_DOMAIN,
  201. "KADM error code 63"));
  202. case 64:
  203. return(dgettext(TEXT_DOMAIN,
  204. "KADM error code 64"));
  205. case 65:
  206. return(dgettext(TEXT_DOMAIN,
  207. "KADM error code 65"));
  208. case 66:
  209. return(dgettext(TEXT_DOMAIN,
  210. "KADM error code 66"));
  211. case 67:
  212. return(dgettext(TEXT_DOMAIN,
  213. "KADM error code 67"));
  214. case 68:
  215. return(dgettext(TEXT_DOMAIN,
  216. "KADM error code 68"));
  217. case 69:
  218. return(dgettext(TEXT_DOMAIN,
  219. "KADM error code 69"));
  220. case 70:
  221. return(dgettext(TEXT_DOMAIN,
  222. "KADM error code 70"));
  223. case 71:
  224. return(dgettext(TEXT_DOMAIN,
  225. "KADM error code 71"));
  226. case 72:
  227. return(dgettext(TEXT_DOMAIN,
  228. "KADM error code 72"));
  229. case 73:
  230. return(dgettext(TEXT_DOMAIN,
  231. "KADM error code 73"));
  232. case 74:
  233. return(dgettext(TEXT_DOMAIN,
  234. "KADM error code 74"));
  235. case 75:
  236. return(dgettext(TEXT_DOMAIN,
  237. "KADM error code 75"));
  238. case 76:
  239. return(dgettext(TEXT_DOMAIN,
  240. "KADM error code 76"));
  241. case 77:
  242. return(dgettext(TEXT_DOMAIN,
  243. "KADM error code 77"));
  244. case 78:
  245. return(dgettext(TEXT_DOMAIN,
  246. "KADM error code 78"));
  247. case 79:
  248. return(dgettext(TEXT_DOMAIN,
  249. "KADM error code 79"));
  250. case 80:
  251. return(dgettext(TEXT_DOMAIN,
  252. "KADM error code 80"));
  253. case 81:
  254. return(dgettext(TEXT_DOMAIN,
  255. "KADM error code 81"));
  256. case 82:
  257. return(dgettext(TEXT_DOMAIN,
  258. "KADM error code 82"));
  259. case 83:
  260. return(dgettext(TEXT_DOMAIN,
  261. "KADM error code 83"));
  262. case 84:
  263. return(dgettext(TEXT_DOMAIN,
  264. "KADM error code 84"));
  265. case 85:
  266. return(dgettext(TEXT_DOMAIN,
  267. "KADM error code 85"));
  268. case 86:
  269. return(dgettext(TEXT_DOMAIN,
  270. "KADM error code 86"));
  271. case 87:
  272. return(dgettext(TEXT_DOMAIN,
  273. "KADM error code 87"));
  274. case 88:
  275. return(dgettext(TEXT_DOMAIN,
  276. "KADM error code 88"));
  277. case 89:
  278. return(dgettext(TEXT_DOMAIN,
  279. "KADM error code 89"));
  280. case 90:
  281. return(dgettext(TEXT_DOMAIN,
  282. "KADM error code 90"));
  283. case 91:
  284. return(dgettext(TEXT_DOMAIN,
  285. "KADM error code 91"));
  286. case 92:
  287. return(dgettext(TEXT_DOMAIN,
  288. "KADM error code 92"));
  289. case 93:
  290. return(dgettext(TEXT_DOMAIN,
  291. "KADM error code 93"));
  292. case 94:
  293. return(dgettext(TEXT_DOMAIN,
  294. "KADM error code 94"));
  295. case 95:
  296. return(dgettext(TEXT_DOMAIN,
  297. "KADM error code 95"));
  298. case 96:
  299. return(dgettext(TEXT_DOMAIN,
  300. "KADM error code 96"));
  301. case 97:
  302. return(dgettext(TEXT_DOMAIN,
  303. "KADM error code 97"));
  304. case 98:
  305. return(dgettext(TEXT_DOMAIN,
  306. "KADM error code 98"));
  307. case 99:
  308. return(dgettext(TEXT_DOMAIN,
  309. "KADM error code 99"));
  310. case 100:
  311. return(dgettext(TEXT_DOMAIN,
  312. "KADM error code 100"));
  313. case 101:
  314. return(dgettext(TEXT_DOMAIN,
  315. "KADM error code 101"));
  316. case 102:
  317. return(dgettext(TEXT_DOMAIN,
  318. "KADM error code 102"));
  319. case 103:
  320. return(dgettext(TEXT_DOMAIN,
  321. "KADM error code 103"));
  322. case 104:
  323. return(dgettext(TEXT_DOMAIN,
  324. "KADM error code 104"));
  325. case 105:
  326. return(dgettext(TEXT_DOMAIN,
  327. "KADM error code 105"));
  328. case 106:
  329. return(dgettext(TEXT_DOMAIN,
  330. "KADM error code 106"));
  331. case 107:
  332. return(dgettext(TEXT_DOMAIN,
  333. "KADM error code 107"));
  334. case 108:
  335. return(dgettext(TEXT_DOMAIN,
  336. "KADM error code 108"));
  337. case 109:
  338. return(dgettext(TEXT_DOMAIN,
  339. "KADM error code 109"));
  340. case 110:
  341. return(dgettext(TEXT_DOMAIN,
  342. "KADM error code 110"));
  343. case 111:
  344. return(dgettext(TEXT_DOMAIN,
  345. "KADM error code 111"));
  346. case 112:
  347. return(dgettext(TEXT_DOMAIN,
  348. "KADM error code 112"));
  349. case 113:
  350. return(dgettext(TEXT_DOMAIN,
  351. "KADM error code 113"));
  352. case 114:
  353. return(dgettext(TEXT_DOMAIN,
  354. "KADM error code 114"));
  355. case 115:
  356. return(dgettext(TEXT_DOMAIN,
  357. "KADM error code 115"));
  358. case 116:
  359. return(dgettext(TEXT_DOMAIN,
  360. "KADM error code 116"));
  361. case 117:
  362. return(dgettext(TEXT_DOMAIN,
  363. "KADM error code 117"));
  364. case 118:
  365. return(dgettext(TEXT_DOMAIN,
  366. "KADM error code 118"));
  367. case 119:
  368. return(dgettext(TEXT_DOMAIN,
  369. "KADM error code 119"));
  370. case 120:
  371. return(dgettext(TEXT_DOMAIN,
  372. "KADM error code 120"));
  373. case 121:
  374. return(dgettext(TEXT_DOMAIN,
  375. "KADM error code 121"));
  376. case 122:
  377. return(dgettext(TEXT_DOMAIN,
  378. "KADM error code 122"));
  379. case 123:
  380. return(dgettext(TEXT_DOMAIN,
  381. "KADM error code 123"));
  382. case 124:
  383. return(dgettext(TEXT_DOMAIN,
  384. "KADM error code 124"));
  385. case 125:
  386. return(dgettext(TEXT_DOMAIN,
  387. "KADM error code 125"));
  388. case 126:
  389. return(dgettext(TEXT_DOMAIN,
  390. "KADM error code 126"));
  391. case 127:
  392. return(dgettext(TEXT_DOMAIN,
  393. "KADM error code 127"));
  394. case 128:
  395. return(
  396. "$Header: /afs/athena.mit.edu/astaff/project/krbdev/.cvsroot/src/lib/krb5/error_tables/adm_err.et,v 5.1 1995/11/03 21:52:37 eichin Exp $");
  397. case 129:
  398. return(dgettext(TEXT_DOMAIN,
  399. "Cannot fetch local realm"));
  400. case 130:
  401. return(dgettext(TEXT_DOMAIN,
  402. "Unable to fetch credentials"));
  403. case 131:
  404. return(dgettext(TEXT_DOMAIN,
  405. "Bad key supplied"));
  406. case 132:
  407. return(dgettext(TEXT_DOMAIN,
  408. "Can't encrypt data"));
  409. case 133:
  410. return(dgettext(TEXT_DOMAIN,
  411. "Cannot encode/decode authentication info"));
  412. case 134:
  413. return(dgettext(TEXT_DOMAIN,
  414. "Principal attemping change is in wrong realm"));
  415. case 135:
  416. return(dgettext(TEXT_DOMAIN,
  417. "Packet is too large"));
  418. case 136:
  419. return(dgettext(TEXT_DOMAIN,
  420. "Version number is incorrect"));
  421. case 137:
  422. return(dgettext(TEXT_DOMAIN,
  423. "Checksum does not match"));
  424. case 138:
  425. return(dgettext(TEXT_DOMAIN,
  426. "Unsealing private data failed"));
  427. case 139:
  428. return(dgettext(TEXT_DOMAIN,
  429. "Unsupported operation"));
  430. case 140:
  431. return(dgettext(TEXT_DOMAIN,
  432. "Could not find administrating host"));
  433. case 141:
  434. return(dgettext(TEXT_DOMAIN,
  435. "Administrating host name is unknown"));
  436. case 142:
  437. return(dgettext(TEXT_DOMAIN,
  438. "Could not find service name in services database"));
  439. case 143:
  440. return(dgettext(TEXT_DOMAIN,
  441. "Could not create socket"));
  442. case 144:
  443. return(dgettext(TEXT_DOMAIN,
  444. "Could not connect to server"));
  445. case 145:
  446. return(dgettext(TEXT_DOMAIN,
  447. "Could not fetch local socket address"));
  448. case 146:
  449. return(dgettext(TEXT_DOMAIN,
  450. "Could not fetch master key"));
  451. case 147:
  452. return(dgettext(TEXT_DOMAIN,
  453. "Could not verify master key"));
  454. case 148:
  455. return(dgettext(TEXT_DOMAIN,
  456. "Entry already exists in database"));
  457. case 149:
  458. return(dgettext(TEXT_DOMAIN,
  459. "Database store error"));
  460. case 150:
  461. return(dgettext(TEXT_DOMAIN,
  462. "Database read error"));
  463. case 151:
  464. return(dgettext(TEXT_DOMAIN,
  465. "Insufficient access to perform requested operation"));
  466. case 152:
  467. return(dgettext(TEXT_DOMAIN,
  468. "Data is available for return to client"));
  469. case 153:
  470. return(dgettext(TEXT_DOMAIN,
  471. "No such entry in the database"));
  472. case 154:
  473. return(dgettext(TEXT_DOMAIN,
  474. "Memory exhausted"));
  475. case 155:
  476. return(dgettext(TEXT_DOMAIN,
  477. "Could not fetch system hostname"));
  478. case 156:
  479. return(dgettext(TEXT_DOMAIN,
  480. "Could not bind port"));
  481. case 157:
  482. return(dgettext(TEXT_DOMAIN,
  483. "Length mismatch problem"));
  484. case 158:
  485. return(dgettext(TEXT_DOMAIN,
  486. "Illegal use of wildcard"));
  487. case 159:
  488. return(dgettext(TEXT_DOMAIN,
  489. "Database is locked or in use--try again later"));
  490. case 160:
  491. return(dgettext(TEXT_DOMAIN,
  492. "JNI: Java array creation failed"));
  493. case 161:
  494. return(dgettext(TEXT_DOMAIN,
  495. "JNI: Java class lookup failed"));
  496. case 162:
  497. return(dgettext(TEXT_DOMAIN,
  498. "JNI: Java field lookup failed"));
  499. case 163:
  500. return(dgettext(TEXT_DOMAIN,
  501. "JNI: Java method lookup failed"));
  502. case 164:
  503. return(dgettext(TEXT_DOMAIN,
  504. "JNI: Java object lookup failed"));
  505. case 165:
  506. return(dgettext(TEXT_DOMAIN,
  507. "JNI: Java object field lookup failed"));
  508. case 166:
  509. return(dgettext(TEXT_DOMAIN,
  510. "JNI: Java string access failed"));
  511. case 167:
  512. return(dgettext(TEXT_DOMAIN,
  513. "JNI: Java string creation failed"));
  514. default:
  515. return("unknown error");
  516. }
  517. }