1 /* 2 * Copyright 2004 Sun Microsystems, Inc. All rights reserved. 3 * Use is subject to license terms. 4 */ 5 6 /* This is the prologue to krb5.h */ 7 /* Unfortunately some of these defines are compiler dependent */ 8 #ifndef _KRB5_H 9 #define _KRB5_H 10 11 | #pragma ident "@(#)krb5.h 1.16 04/09/08 SMI" 11 | #pragma ident "@(#)krb5.h 1.15 04/05/04 SMI" 12 13 #define SIZEOF_INT 4 14 15 #ifdef _LP64 16 #define SIZEOF_LONG 8 17 #else 18 #define SIZEOF_LONG 4 19 #endif 20 21 #define SIZEOF_SHORT 2 22 #define HAVE_STDARG_H 1 23 #define HAVE_SYS_TYPES_H 1 24 /* End of prologue section */ 25 /* 26 * include/krb5.h 27 * 28 * Copyright 1989,1990,1995 by the Massachusetts Institute of Technology. 29 * All Rights Reserved. 30 * 31 * Export of this software from the United States of America may 32 * require a specific license from the United States Government. 33 * It is the responsibility of any person or organization contemplating 34 * export to obtain such a license before exporting. 35 * 36 * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and 37 * distribute this software and its documentation for any purpose and 38 * without fee is hereby granted, provided that the above copyright 39 * notice appear in all copies and that both that copyright notice and 40 * this permission notice appear in supporting documentation, and that 41 * the name of M.I.T. not be used in advertising or publicity pertaining 42 * to distribution of the software without specific, written prior 43 * permission. Furthermore if you modify this software you must label 44 * your software as modified software and not distribute it in such a 45 * fashion that it might be confused with the original M.I.T. software. 46 * M.I.T. makes no representations about the suitability of 47 * this software for any purpose. It is provided "as is" without express 48 * or implied warranty. 49 * 50 * 51 * General definitions for Kerberos version 5. 52 */ 53 54 /* 55 * Copyright (C) 1998 by the FundsXpress, INC. 56 * 57 * All rights reserved. 58 * 59 * Export of this software from the United States of America may require 60 * a specific license from the United States Government. It is the 61 * responsibility of any person or organization contemplating export to 62 * obtain such a license before exporting. 63 * 64 * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and 65 * distribute this software and its documentation for any purpose and 66 * without fee is hereby granted, provided that the above copyright 67 * notice appear in all copies and that both that copyright notice and 68 * this permission notice appear in supporting documentation, and that 69 * the name of FundsXpress. not be used in advertising or publicity pertaining 70 * to distribution of the software without specific, written prior 71 * permission. FundsXpress makes no representations about the suitability of 72 * this software for any purpose. It is provided "as is" without express 73 * or implied warranty. 74 * 75 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 76 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 77 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. 78 */ 79 80 #ifndef KRB5_GENERAL__ 81 #define KRB5_GENERAL__ 82 83 #ifdef _KERNEL 84 #include <sys/systm.h> 85 #include <sys/kmem.h> 86 87 #include <sys/crypto/common.h> 88 #include <sys/crypto/api.h> 89 90 /* 91 * Just to be safe lets make sure the buffers are zero'ed after 92 * malloc() as some code assumes this is the case. To avoid warnings 93 * of duplicated defines let remove the old one if present. 94 */ 95 #ifdef MALLOC 96 #undef MALLOC 97 #endif 98 #define MALLOC(n) kmem_zalloc((n), KM_SLEEP) 99 100 #define FREE(x, n) kmem_free((x), (n)) 101 #define CALLOC(n, s) kmem_zalloc((n)*(s), KM_SLEEP) 102 #define strcpy(dst,src,n) bcopy((src),(dst),(n)) 103 #define memmove(dst, src, n) bcopy((src), (dst), (n)) 104 #define memcmp(a, b, l) bcmp((a), (b), (l)) 105 #define memset(s,c,n) krb5_memset((s), (c), (n)) 106 #define memcpy(dst, src, n) bcopy((src), (dst), (n)) 107 #define mutex_lock(lck) mutex_enter(lck) 108 #define mutex_unlock(lck) mutex_exit(lck) 109 110 #else /* !_KERNEL */ 111 #define MALLOC(n) malloc(n) 112 #define FREE(x, n) free(x) 113 #define CALLOC(n, s) calloc((n), (s)) 114 #include <stdlib.h> 115 #include <thread.h> 116 #include <synch.h> 117 #include <security/cryptoki.h> 118 #endif /* _KERNEL */ 119 120 121 #if (defined(_MSDOS) || defined(_WIN32)) || defined(macintosh) 122 #include <win-mac.h> 123 #endif 124 125 #ifndef KRB5_CONFIG__ 126 #ifndef KRB5_CALLCONV 127 #define KRB5_CALLCONV 128 #define KRB5_CALLCONV_C 129 #define KRB5_DLLIMP 130 #define GSS_DLLIMP 131 #define KRB5_EXPORTVAR 132 #define NEAR 133 #define FAR 134 #endif /* !KRB5_CALLCONV */ 135 #endif /* !KRB5_CONFIG__ */ 136 137 #include <sys/types.h> 138 #include <sys/socket.h> 139 140 #ifndef THREEPARAMOPEN 141 #define THREEPARAMOPEN(x,y,z) open(x,y,z) 142 #endif 143 144 /* 145 * Solaris Kerberos: 146 * KRB5_OLD_CRYPTO is not needed or supported anymore. 147 */ 148 /* #define KRB5_OLD_CRYPTO */ 149 150 /* 151 * begin "error_def.h" 152 */ 153 154 #ifdef _KERNEL 155 #include <sys/errno.h> 156 #else 157 #include <errno.h> 158 #include <profile.h> 159 #endif /* _KERNEL */ 160 161 /* 162 * end "error_def.h" 163 */ 164 165 #ifdef __cplusplus 166 extern "C" { 167 #endif 168 169 /* 170 * begin wordsize.h 171 */ 172 173 /* 174 * Word-size related definition. 175 */ 176 177 typedef unsigned char krb5_octet; 178 typedef unsigned char krb5_ui_1; 179 180 #if (SIZEOF_INT == 2) 181 typedef int krb5_int16; 182 typedef unsigned int krb5_ui_2; 183 #define VALID_INT_BITS 0x7fff 184 #define VALID_UINT_BITS 0xffff 185 #elif (SIZEOF_SHORT == 2) 186 typedef short krb5_int16; 187 typedef unsigned short krb5_ui_2; 188 #else 189 ?==error: undefined 16 bit type 190 #endif 191 192 #if (SIZEOF_INT == 4) 193 typedef int krb5_int32; 194 typedef unsigned int krb5_ui_4; 195 #define VALID_INT_BITS 0x7fffffff 196 #define VALID_UINT_BITS 0xffffffff 197 #elif (SIZEOF_LONG == 4) 198 typedef long krb5_int32; 199 typedef unsigned long krb5_ui_4; 200 #elif (SIZEOF_SHORT == 4) 201 typedef short krb5_int32; 202 typedef unsigned short krb5_ui_4; 203 #else 204 ?== error: undefined 32 bit type 205 #endif 206 207 #define KRB5_INT32_MAX 2147483647 208 /* this strange form is necessary since - is a unary operator, not a sign 209 indicator */ 210 #define KRB5_INT32_MIN (-KRB5_INT32_MAX-1) 211 212 #define KRB5_INT16_MAX 65535 213 /* this strange form is necessary since - is a unary operator, not a sign 214 indicator */ 215 #define KRB5_INT16_MIN (-KRB5_INT16_MAX-1) 216 217 /* 218 * end wordsize.h 219 */ 220 221 /* 222 * begin "base-defs.h" 223 */ 224 225 /* 226 * Basic definitions for Kerberos V5 library 227 */ 228 229 #ifndef FALSE 230 #define FALSE 0 231 #endif 232 #ifndef TRUE 233 #define TRUE 1 234 #endif 235 236 typedef unsigned int krb5_boolean; 237 typedef unsigned int krb5_msgtype; 238 typedef unsigned int krb5_kvno; 239 240 typedef krb5_int32 krb5_addrtype; 241 typedef krb5_int32 krb5_enctype; 242 typedef krb5_int32 krb5_cksumtype; 243 typedef krb5_int32 krb5_authdatatype; 244 typedef krb5_int32 krb5_keyusage; 245 246 typedef krb5_int32 krb5_preauthtype; /* This may change, later on */ 247 typedef krb5_int32 krb5_flags; 248 typedef krb5_int32 krb5_timestamp; 249 typedef krb5_int32 krb5_error_code; 250 typedef krb5_int32 krb5_deltat; 251 252 typedef krb5_error_code krb5_magic; 253 254 typedef struct _krb5_data { 255 krb5_magic magic; 256 unsigned int length; 257 char *data; 258 } krb5_data; ----Unchanged portion omitted---- 2416 2417 #define KRB5_VERIFY_INIT_CREDS_OPT_AP_REQ_NOFAIL 0x0001 2418 2419 void KRB5_CALLCONV 2420 krb5_verify_init_creds_opt_init 2421 KRB5_PROTOTYPE((krb5_verify_init_creds_opt *options)); 2422 void KRB5_CALLCONV 2423 krb5_verify_init_creds_opt_set_ap_req_nofail 2424 KRB5_PROTOTYPE((krb5_verify_init_creds_opt *options, 2425 int ap_req_nofail)); 2426 2427 krb5_error_code KRB5_CALLCONV 2428 krb5_verify_init_creds 2429 KRB5_PROTOTYPE((krb5_context context, 2430 krb5_creds *creds, 2431 krb5_principal ap_req_server, 2432 krb5_keytab ap_req_keytab, 2433 krb5_ccache *ccache, 2434 krb5_verify_init_creds_opt *options)); 2435 2436 krb5_error_code KRB5_CALLCONV 2437 krb5_get_validated_creds 2438 KRB5_PROTOTYPE((krb5_context context, 2439 krb5_creds *creds, 2440 krb5_principal client, 2441 krb5_ccache ccache, 2442 char *in_tkt_service)); 2443 2444 krb5_error_code KRB5_CALLCONV 2445 krb5_get_renewed_creds 2446 KRB5_PROTOTYPE((krb5_context context, 2447 krb5_creds *creds, 2448 krb5_principal client, 2449 krb5_ccache ccache, 2450 char *in_tkt_service)); 2451 2452 krb5_error_code KRB5_CALLCONV 2453 krb5_decode_ticket 2454 KRB5_PROTOTYPE((const krb5_data *code, 2455 krb5_ticket **rep)); 2456 2457 void KRB5_CALLCONV 2458 krb5_appdefault_string 2459 KRB5_PROTOTYPE((krb5_context context, 2460 const char *appname, 2461 const krb5_data *realm, 2462 const char *option, 2463 const char *default_value, 2464 char ** ret_value)); 2465 2466 void KRB5_CALLCONV 2467 krb5_appdefault_boolean 2468 KRB5_PROTOTYPE((krb5_context context, 2469 const char *appname, 2470 const krb5_data *realm, 2471 const char *option, 2472 int default_value, 2473 int *ret_value)); 2474 2475 /* 2476 * The realm iterator functions 2477 */ 2478 2479 krb5_error_code KRB5_CALLCONV krb5_realm_iterator_create 2480 KRB5_PROTOTYPE((krb5_context context, void **iter_p)); 2481 2482 krb5_error_code KRB5_CALLCONV krb5_realm_iterator 2483 KRB5_PROTOTYPE((krb5_context context, void **iter_p, char **ret_realm)); 2484 2485 void KRB5_CALLCONV krb5_realm_iterator_free 2486 KRB5_PROTOTYPE((krb5_context context, void **iter_p)); 2487 2488 void KRB5_CALLCONV krb5_free_realm_string 2489 KRB5_PROTOTYPE((krb5_context context, char *str)); 2490 2491 /* 2492 * Prompter enhancements 2493 */ 2494 2495 #define KRB5_PROMPT_TYPE_PASSWORD 0x1 2496 #define KRB5_PROMPT_TYPE_NEW_PASSWORD 0x2 2497 #define KRB5_PROMPT_TYPE_NEW_PASSWORD_AGAIN 0x3 2498 #define KRB5_PROMPT_TYPE_PREAUTH 0x4 2499 2500 typedef krb5_int32 krb5_prompt_type; 2501 2502 krb5_prompt_type* KRB5_CALLCONV krb5_get_prompt_types 2503 (krb5_context context); 2504 2505 #endif /* KRB5_GENERAL__ */ 2506 2507 2508 /* 2509 * krb5_err.h: 2510 * This file is automatically generated; please do not edit it. 2511 */ 2512 2513 #define KRB5KDC_ERR_NONE (-1765328384L) 2514 #define KRB5KDC_ERR_NAME_EXP (-1765328383L) 2515 #define KRB5KDC_ERR_SERVICE_EXP (-1765328382L) 2516 #define KRB5KDC_ERR_BAD_PVNO (-1765328381L) 2517 #define KRB5KDC_ERR_C_OLD_MAST_KVNO (-1765328380L) 2518 #define KRB5KDC_ERR_S_OLD_MAST_KVNO (-1765328379L) 2519 #define KRB5KDC_ERR_C_PRINCIPAL_UNKNOWN (-1765328378L) 2520 #define KRB5KDC_ERR_S_PRINCIPAL_UNKNOWN (-1765328377L) 2521 #define KRB5KDC_ERR_PRINCIPAL_NOT_UNIQUE (-1765328376L) 2522 #define KRB5KDC_ERR_NULL_KEY (-1765328375L) 2523 #define KRB5KDC_ERR_CANNOT_POSTDATE (-1765328374L) 2524 #define KRB5KDC_ERR_NEVER_VALID (-1765328373L) 2525 #define KRB5KDC_ERR_POLICY (-1765328372L) 2526 #define KRB5KDC_ERR_BADOPTION (-1765328371L) 2527 #define KRB5KDC_ERR_ETYPE_NOSUPP (-1765328370L) 2528 #define KRB5KDC_ERR_SUMTYPE_NOSUPP (-1765328369L) 2529 #define KRB5KDC_ERR_PADATA_TYPE_NOSUPP (-1765328368L) 2530 #define KRB5KDC_ERR_TRTYPE_NOSUPP (-1765328367L) 2531 #define KRB5KDC_ERR_CLIENT_REVOKED (-1765328366L) 2532 #define KRB5KDC_ERR_SERVICE_REVOKED (-1765328365L) 2533 #define KRB5KDC_ERR_TGT_REVOKED (-1765328364L) 2534 #define KRB5KDC_ERR_CLIENT_NOTYET (-1765328363L) 2535 #define KRB5KDC_ERR_SERVICE_NOTYET (-1765328362L) 2536 #define KRB5KDC_ERR_KEY_EXP (-1765328361L) 2537 #define KRB5KDC_ERR_PREAUTH_FAILED (-1765328360L) 2538 #define KRB5KDC_ERR_PREAUTH_REQUIRED (-1765328359L) 2539 #define KRB5KDC_ERR_SERVER_NOMATCH (-1765328358L) 2540 #define KRB5PLACEHOLD_27 (-1765328357L) 2541 #define KRB5PLACEHOLD_28 (-1765328356L) 2542 #define KRB5PLACEHOLD_29 (-1765328355L) 2543 #define KRB5PLACEHOLD_30 (-1765328354L) 2544 #define KRB5KRB_AP_ERR_BAD_INTEGRITY (-1765328353L) 2545 #define KRB5KRB_AP_ERR_TKT_EXPIRED (-1765328352L) 2546 #define KRB5KRB_AP_ERR_TKT_NYV (-1765328351L) 2547 #define KRB5KRB_AP_ERR_REPEAT (-1765328350L) 2548 #define KRB5KRB_AP_ERR_NOT_US (-1765328349L) 2549 #define KRB5KRB_AP_ERR_BADMATCH (-1765328348L) 2550 #define KRB5KRB_AP_ERR_SKEW (-1765328347L) 2551 #define KRB5KRB_AP_ERR_BADADDR (-1765328346L) 2552 #define KRB5KRB_AP_ERR_BADVERSION (-1765328345L) 2553 #define KRB5KRB_AP_ERR_MSG_TYPE (-1765328344L) 2554 #define KRB5KRB_AP_ERR_MODIFIED (-1765328343L) 2555 #define KRB5KRB_AP_ERR_BADORDER (-1765328342L) 2556 #define KRB5KRB_AP_ERR_ILL_CR_TKT (-1765328341L) 2557 #define KRB5KRB_AP_ERR_BADKEYVER (-1765328340L) 2558 #define KRB5KRB_AP_ERR_NOKEY (-1765328339L) 2559 #define KRB5KRB_AP_ERR_MUT_FAIL (-1765328338L) 2560 #define KRB5KRB_AP_ERR_BADDIRECTION (-1765328337L) 2561 #define KRB5KRB_AP_ERR_METHOD (-1765328336L) 2562 #define KRB5KRB_AP_ERR_BADSEQ (-1765328335L) 2563 #define KRB5KRB_AP_ERR_INAPP_CKSUM (-1765328334L) 2564 #define KRB5PLACEHOLD_51 (-1765328333L) 2565 #define KRB5PLACEHOLD_52 (-1765328332L) 2566 #define KRB5PLACEHOLD_53 (-1765328331L) 2567 #define KRB5PLACEHOLD_54 (-1765328330L) 2568 #define KRB5PLACEHOLD_55 (-1765328329L) 2569 #define KRB5PLACEHOLD_56 (-1765328328L) 2570 #define KRB5PLACEHOLD_57 (-1765328327L) 2571 #define KRB5PLACEHOLD_58 (-1765328326L) 2572 #define KRB5PLACEHOLD_59 (-1765328325L) 2573 #define KRB5KRB_ERR_GENERIC (-1765328324L) 2574 #define KRB5KRB_ERR_FIELD_TOOLONG (-1765328323L) 2575 #define KRB5PLACEHOLD_62 (-1765328322L) 2576 #define KRB5PLACEHOLD_63 (-1765328321L) 2577 #define KRB5PLACEHOLD_64 (-1765328320L) 2578 #define KRB5PLACEHOLD_65 (-1765328319L) 2579 #define KRB5PLACEHOLD_66 (-1765328318L) 2580 #define KRB5PLACEHOLD_67 (-1765328317L) 2581 #define KRB5PLACEHOLD_68 (-1765328316L) 2582 #define KRB5PLACEHOLD_69 (-1765328315L) 2583 #define KRB5PLACEHOLD_70 (-1765328314L) 2584 #define KRB5PLACEHOLD_71 (-1765328313L) 2585 #define KRB5PLACEHOLD_72 (-1765328312L) 2586 #define KRB5PLACEHOLD_73 (-1765328311L) 2587 #define KRB5PLACEHOLD_74 (-1765328310L) 2588 #define KRB5PLACEHOLD_75 (-1765328309L) 2589 #define KRB5PLACEHOLD_76 (-1765328308L) 2590 #define KRB5PLACEHOLD_77 (-1765328307L) 2591 #define KRB5PLACEHOLD_78 (-1765328306L) 2592 #define KRB5PLACEHOLD_79 (-1765328305L) 2593 #define KRB5PLACEHOLD_80 (-1765328304L) 2594 #define KRB5PLACEHOLD_81 (-1765328303L) 2595 #define KRB5PLACEHOLD_82 (-1765328302L) 2596 #define KRB5PLACEHOLD_83 (-1765328301L) 2597 #define KRB5PLACEHOLD_84 (-1765328300L) 2598 #define KRB5PLACEHOLD_85 (-1765328299L) 2599 #define KRB5PLACEHOLD_86 (-1765328298L) 2600 #define KRB5PLACEHOLD_87 (-1765328297L) 2601 #define KRB5PLACEHOLD_88 (-1765328296L) 2602 #define KRB5PLACEHOLD_89 (-1765328295L) 2603 #define KRB5PLACEHOLD_90 (-1765328294L) 2604 #define KRB5PLACEHOLD_91 (-1765328293L) 2605 #define KRB5PLACEHOLD_92 (-1765328292L) 2606 #define KRB5PLACEHOLD_93 (-1765328291L) 2607 #define KRB5PLACEHOLD_94 (-1765328290L) 2608 #define KRB5PLACEHOLD_95 (-1765328289L) 2609 #define KRB5PLACEHOLD_96 (-1765328288L) 2610 #define KRB5PLACEHOLD_97 (-1765328287L) 2611 #define KRB5PLACEHOLD_98 (-1765328286L) 2612 #define KRB5PLACEHOLD_99 (-1765328285L) 2613 #define KRB5PLACEHOLD_100 (-1765328284L) 2614 #define KRB5PLACEHOLD_101 (-1765328283L) 2615 #define KRB5PLACEHOLD_102 (-1765328282L) 2616 #define KRB5PLACEHOLD_103 (-1765328281L) 2617 #define KRB5PLACEHOLD_104 (-1765328280L) 2618 #define KRB5PLACEHOLD_105 (-1765328279L) 2619 #define KRB5PLACEHOLD_106 (-1765328278L) 2620 #define KRB5PLACEHOLD_107 (-1765328277L) 2621 #define KRB5PLACEHOLD_108 (-1765328276L) 2622 #define KRB5PLACEHOLD_109 (-1765328275L) 2623 #define KRB5PLACEHOLD_110 (-1765328274L) 2624 #define KRB5PLACEHOLD_111 (-1765328273L) 2625 #define KRB5PLACEHOLD_112 (-1765328272L) 2626 #define KRB5PLACEHOLD_113 (-1765328271L) 2627 #define KRB5PLACEHOLD_114 (-1765328270L) 2628 #define KRB5PLACEHOLD_115 (-1765328269L) 2629 #define KRB5PLACEHOLD_116 (-1765328268L) 2630 #define KRB5PLACEHOLD_117 (-1765328267L) 2631 #define KRB5PLACEHOLD_118 (-1765328266L) 2632 #define KRB5PLACEHOLD_119 (-1765328265L) 2633 #define KRB5PLACEHOLD_120 (-1765328264L) 2634 #define KRB5PLACEHOLD_121 (-1765328263L) 2635 #define KRB5PLACEHOLD_122 (-1765328262L) 2636 #define KRB5PLACEHOLD_123 (-1765328261L) 2637 #define KRB5PLACEHOLD_124 (-1765328260L) 2638 #define KRB5PLACEHOLD_125 (-1765328259L) 2639 #define KRB5PLACEHOLD_126 (-1765328258L) 2640 #define KRB5PLACEHOLD_127 (-1765328257L) 2641 #define KRB5_ERR_RCSID (-1765328256L) 2642 #define KRB5_LIBOS_BADLOCKFLAG (-1765328255L) 2643 #define KRB5_LIBOS_CANTREADPWD (-1765328254L) 2644 #define KRB5_LIBOS_BADPWDMATCH (-1765328253L) 2645 #define KRB5_LIBOS_PWDINTR (-1765328252L) 2646 #define KRB5_PARSE_ILLCHAR (-1765328251L) 2647 #define KRB5_PARSE_MALFORMED (-1765328250L) 2648 #define KRB5_CONFIG_CANTOPEN (-1765328249L) 2649 #define KRB5_CONFIG_BADFORMAT (-1765328248L) 2650 #define KRB5_CONFIG_NOTENUFSPACE (-1765328247L) 2651 #define KRB5_BADMSGTYPE (-1765328246L) 2652 #define KRB5_CC_BADNAME (-1765328245L) 2653 #define KRB5_CC_UNKNOWN_TYPE (-1765328244L) 2654 #define KRB5_CC_NOTFOUND (-1765328243L) 2655 #define KRB5_CC_END (-1765328242L) 2656 #define KRB5_NO_TKT_SUPPLIED (-1765328241L) 2657 #define KRB5KRB_AP_WRONG_PRINC (-1765328240L) 2658 #define KRB5KRB_AP_ERR_TKT_INVALID (-1765328239L) 2659 #define KRB5_PRINC_NOMATCH (-1765328238L) 2660 #define KRB5_KDCREP_MODIFIED (-1765328237L) 2661 #define KRB5_KDCREP_SKEW (-1765328236L) 2662 #define KRB5_IN_TKT_REALM_MISMATCH (-1765328235L) 2663 #define KRB5_PROG_ETYPE_NOSUPP (-1765328234L) 2664 #define KRB5_PROG_KEYTYPE_NOSUPP (-1765328233L) 2665 #define KRB5_WRONG_ETYPE (-1765328232L) 2666 #define KRB5_PROG_SUMTYPE_NOSUPP (-1765328231L) 2667 #define KRB5_REALM_UNKNOWN (-1765328230L) 2668 #define KRB5_SERVICE_UNKNOWN (-1765328229L) 2669 #define KRB5_KDC_UNREACH (-1765328228L) 2670 #define KRB5_NO_LOCALNAME (-1765328227L) 2671 #define KRB5_MUTUAL_FAILED (-1765328226L) 2672 #define KRB5_RC_TYPE_EXISTS (-1765328225L) 2673 #define KRB5_RC_MALLOC (-1765328224L) 2674 #define KRB5_RC_TYPE_NOTFOUND (-1765328223L) 2675 #define KRB5_RC_UNKNOWN (-1765328222L) 2676 #define KRB5_RC_REPLAY (-1765328221L) 2677 #define KRB5_RC_IO (-1765328220L) 2678 #define KRB5_RC_NOIO (-1765328219L) 2679 #define KRB5_RC_PARSE (-1765328218L) 2680 #define KRB5_RC_IO_EOF (-1765328217L) 2681 #define KRB5_RC_IO_MALLOC (-1765328216L) 2682 #define KRB5_RC_IO_PERM (-1765328215L) 2683 #define KRB5_RC_IO_IO (-1765328214L) 2684 #define KRB5_RC_IO_UNKNOWN (-1765328213L) 2685 #define KRB5_RC_IO_SPACE (-1765328212L) 2686 #define KRB5_TRANS_CANTOPEN (-1765328211L) 2687 #define KRB5_TRANS_BADFORMAT (-1765328210L) 2688 #define KRB5_LNAME_CANTOPEN (-1765328209L) 2689 #define KRB5_LNAME_NOTRANS (-1765328208L) 2690 #define KRB5_LNAME_BADFORMAT (-1765328207L) 2691 #define KRB5_CRYPTO_INTERNAL (-1765328206L) 2692 #define KRB5_KT_BADNAME (-1765328205L) 2693 #define KRB5_KT_UNKNOWN_TYPE (-1765328204L) 2694 #define KRB5_KT_NOTFOUND (-1765328203L) 2695 #define KRB5_KT_END (-1765328202L) 2696 #define KRB5_KT_NOWRITE (-1765328201L) 2697 #define KRB5_KT_IOERR (-1765328200L) 2698 #define KRB5_NO_TKT_IN_RLM (-1765328199L) 2699 #define KRB5DES_BAD_KEYPAR (-1765328198L) 2700 #define KRB5DES_WEAK_KEY (-1765328197L) 2701 #define KRB5_BAD_ENCTYPE (-1765328196L) 2702 #define KRB5_BAD_KEYSIZE (-1765328195L) 2703 #define KRB5_BAD_MSIZE (-1765328194L) 2704 #define KRB5_CC_TYPE_EXISTS (-1765328193L) 2705 #define KRB5_KT_TYPE_EXISTS (-1765328192L) 2706 #define KRB5_CC_IO (-1765328191L) 2707 #define KRB5_FCC_PERM (-1765328190L) 2708 #define KRB5_FCC_NOFILE (-1765328189L) 2709 #define KRB5_FCC_INTERNAL (-1765328188L) 2710 #define KRB5_CC_WRITE (-1765328187L) 2711 #define KRB5_CC_NOMEM (-1765328186L) 2712 #define KRB5_CC_FORMAT (-1765328185L) 2713 #define KRB5_CC_NOT_KTYPE (-1765328184L) 2714 #define KRB5_INVALID_FLAGS (-1765328183L) 2715 #define KRB5_NO_2ND_TKT (-1765328182L) 2716 #define KRB5_NOCREDS_SUPPLIED (-1765328181L) 2717 #define KRB5_SENDAUTH_BADAUTHVERS (-1765328180L) 2718 #define KRB5_SENDAUTH_BADAPPLVERS (-1765328179L) 2719 #define KRB5_SENDAUTH_BADRESPONSE (-1765328178L) 2720 #define KRB5_SENDAUTH_REJECTED (-1765328177L) 2721 #define KRB5_PREAUTH_BAD_TYPE (-1765328176L) 2722 #define KRB5_PREAUTH_NO_KEY (-1765328175L) 2723 #define KRB5_PREAUTH_FAILED (-1765328174L) 2724 #define KRB5_RCACHE_BADVNO (-1765328173L) 2725 #define KRB5_CCACHE_BADVNO (-1765328172L) 2726 #define KRB5_KEYTAB_BADVNO (-1765328171L) 2727 #define KRB5_PROG_ATYPE_NOSUPP (-1765328170L) 2728 #define KRB5_RC_REQUIRED (-1765328169L) 2729 #define KRB5_ERR_BAD_HOSTNAME (-1765328168L) 2730 #define KRB5_ERR_HOST_REALM_UNKNOWN (-1765328167L) 2731 #define KRB5_SNAME_UNSUPP_NAMETYPE (-1765328166L) 2732 #define KRB5KRB_AP_ERR_V4_REPLY (-1765328165L) 2733 #define KRB5_REALM_CANT_RESOLVE (-1765328164L) 2734 #define KRB5_TKT_NOT_FORWARDABLE (-1765328163L) 2735 #define KRB5_FWD_BAD_PRINCIPAL (-1765328162L) 2736 #define KRB5_GET_IN_TKT_LOOP (-1765328161L) 2737 #define KRB5_CONFIG_NODEFREALM (-1765328160L) 2738 #define KRB5_SAM_UNSUPPORTED (-1765328159L) 2739 #define KRB5_SAM_INVALID_ETYPE (-1765328158L) 2740 #define KRB5_SAM_NO_CHECKSUM (-1765328157L) 2741 #define KRB5_SAM_BAD_CHECKSUM (-1765328156L) 2742 #define KRB5_KT_NAME_TOOLONG (-1765328155L) 2743 #define KRB5_KT_KVNONOTFOUND (-1765328154L) 2744 #define KRB5_APPL_EXPIRED (-1765328153L) 2745 #define KRB5_LIB_EXPIRED (-1765328152L) 2746 #define KRB5_CHPW_PWDNULL (-1765328151L) 2747 #define KRB5_CHPW_FAIL (-1765328150L) 2748 #define KRB5_KT_FORMAT (-1765328149L) 2749 #define KRB5_NOPERM_ETYPE (-1765328148L) 2750 #define KRB5_CONFIG_ETYPE_NOSUPP (-1765328147L) 2751 #define KRB5_OBSOLETE_FN (-1765328146L) 2752 #define KRB5_EAI_FAIL (-1765328145L) 2753 #define KRB5_EAI_NODATA (-1765328144L) 2754 #define KRB5_EAI_NONAME (-1765328143L) 2755 #define KRB5_EAI_SERVICE (-1765328142L) 2756 #define KRB5_ERR_NUMERIC_REALM (-1765328141L) 2757 #define KRB5_ERR_BAD_S2K_PARAMS (-1765328140L) 2758 #define KRB5_ERR_NO_SERVICE (-1765328139L) 2759 #define KRB5_CC_READONLY (-1765328138L) 2760 #define KRB5_CC_NOSUPP (-1765328137L) 2761 2762 /* NOTE! error values should not collide */ 2763 /* XXX Note KRB5_RC_BADNAME and KRB5_CONF_NOT_CONFIGURED are Solaris specific */ 2764 #define KRB5_RC_BADNAME (-1765328136L) 2765 #define KRB5_CONF_NOT_CONFIGURED (-1765328135L) 2766 #ifdef _KERNEL 2767 /* XXX Note KRB5_KEF_ERROR and PKCS_ERR are Solaris specific */ 2768 #define KRB5_KEF_ERROR (-1765328134L) 2769 #else 2770 #define PKCS_ERR (-1765328134L) 2771 #endif /* _KERNEL */ 2772 #define ERROR_TABLE_BASE_krb5 (-1765328384L) 2773 2774 /* for compatibility with older versions... */ 2775 #define krb5_err_base ERROR_TABLE_BASE_krb5 2776 /* 2777 * kdb5_err.h: 2778 * This file is automatically generated; please do not edit it. 2779 */ 2780 #define KRB5_KDB_RCSID (-1780008448L) 2781 #define KRB5_KDB_INUSE (-1780008447L) 2782 #define KRB5_KDB_UK_SERROR (-1780008446L) 2783 #define KRB5_KDB_UK_RERROR (-1780008445L) 2784 #define KRB5_KDB_UNAUTH (-1780008444L) 2785 #define KRB5_KDB_NOENTRY (-1780008443L) 2786 #define KRB5_KDB_ILL_WILDCARD (-1780008442L) 2787 #define KRB5_KDB_DB_INUSE (-1780008441L) 2788 #define KRB5_KDB_DB_CHANGED (-1780008440L) 2789 #define KRB5_KDB_TRUNCATED_RECORD (-1780008439L) 2790 #define KRB5_KDB_RECURSIVELOCK (-1780008438L) 2791 #define KRB5_KDB_NOTLOCKED (-1780008437L) 2792 #define KRB5_KDB_BADLOCKMODE (-1780008436L) 2793 #define KRB5_KDB_DBNOTINITED (-1780008435L) 2794 #define KRB5_KDB_DBINITED (-1780008434L) 2795 #define KRB5_KDB_ILLDIRECTION (-1780008433L) 2796 #define KRB5_KDB_NOMASTERKEY (-1780008432L) 2797 #define KRB5_KDB_BADMASTERKEY (-1780008431L) 2798 #define KRB5_KDB_INVALIDKEYSIZE (-1780008430L) 2799 #define KRB5_KDB_CANTREAD_STORED (-1780008429L) 2800 #define KRB5_KDB_BADSTORED_MKEY (-1780008428L) 2801 #define KRB5_KDB_CANTLOCK_DB (-1780008427L) 2802 #define KRB5_KDB_DB_CORRUPT (-1780008426L) 2803 #define KRB5_KDB_BAD_VERSION (-1780008425L) 2804 #define KRB5_KDB_BAD_SALTTYPE (-1780008424L) 2805 #define KRB5_KDB_BAD_ENCTYPE (-1780008423L) 2806 #define KRB5_KDB_BAD_CREATEFLAGS (-1780008422L) 2807 #define KRB5_KDB_NO_PERMITTED_KEY (-1780008421L) 2808 #define KRB5_KDB_NO_MATCHING_KEY (-1780008420L) 2809 + /* 2810 + * Incremental propagation error codes 2811 + */ 2812 + #define KRB5_LOG_CONV (-1780008419L) 2813 + #define KRB5_LOG_UNSTABLE (-1780008418L) 2814 + #define KRB5_LOG_CORRUPT (-1780008417L) 2815 + #define KRB5_LOG_ERROR (-1780008416L) 2816 #define ERROR_TABLE_BASE_kdb5 (-1780008448L) 2817 2818 /* for compatibility with older versions... */ 2819 #define kdb5_err_base ERROR_TABLE_BASE_kdb5 2820 /* 2821 * kv5m_err.h: 2822 * This file is automatically generated; please do not edit it. 2823 */ 2824 #define KV5M_NONE (-1760647424L) 2825 #define KV5M_PRINCIPAL (-1760647423L) 2826 #define KV5M_DATA (-1760647422L) 2827 #define KV5M_KEYBLOCK (-1760647421L) 2828 #define KV5M_CHECKSUM (-1760647420L) 2829 #define KV5M_ENCRYPT_BLOCK (-1760647419L) 2830 #define KV5M_ENC_DATA (-1760647418L) 2831 #define KV5M_CRYPTOSYSTEM_ENTRY (-1760647417L) 2832 #define KV5M_CS_TABLE_ENTRY (-1760647416L) 2833 #define KV5M_CHECKSUM_ENTRY (-1760647415L) 2834 #define KV5M_AUTHDATA (-1760647414L) 2835 #define KV5M_TRANSITED (-1760647413L) 2836 #define KV5M_ENC_TKT_PART (-1760647412L) 2837 #define KV5M_TICKET (-1760647411L) 2838 #define KV5M_AUTHENTICATOR (-1760647410L) 2839 #define KV5M_TKT_AUTHENT (-1760647409L) 2840 #define KV5M_CREDS (-1760647408L) 2841 #define KV5M_LAST_REQ_ENTRY (-1760647407L) 2842 #define KV5M_PA_DATA (-1760647406L) 2843 #define KV5M_KDC_REQ (-1760647405L) 2844 #define KV5M_ENC_KDC_REP_PART (-1760647404L) 2845 #define KV5M_KDC_REP (-1760647403L) 2846 #define KV5M_ERROR (-1760647402L) 2847 #define KV5M_AP_REQ (-1760647401L) 2848 #define KV5M_AP_REP (-1760647400L) 2849 #define KV5M_AP_REP_ENC_PART (-1760647399L) 2850 #define KV5M_RESPONSE (-1760647398L) 2851 #define KV5M_SAFE (-1760647397L) 2852 #define KV5M_PRIV (-1760647396L) 2853 #define KV5M_PRIV_ENC_PART (-1760647395L) 2854 #define KV5M_CRED (-1760647394L) 2855 #define KV5M_CRED_INFO (-1760647393L) 2856 #define KV5M_CRED_ENC_PART (-1760647392L) 2857 #define KV5M_PWD_DATA (-1760647391L) 2858 #define KV5M_ADDRESS (-1760647390L) 2859 #define KV5M_KEYTAB_ENTRY (-1760647389L) 2860 #define KV5M_CONTEXT (-1760647388L) 2861 #define KV5M_OS_CONTEXT (-1760647387L) 2862 #define KV5M_ALT_METHOD (-1760647386L) 2863 #define KV5M_ETYPE_INFO_ENTRY (-1760647385L) 2864 #define KV5M_DB_CONTEXT (-1760647384L) 2865 #define KV5M_AUTH_CONTEXT (-1760647383L) 2866 #define KV5M_KEYTAB (-1760647382L) 2867 #define KV5M_RCACHE (-1760647381L) 2868 #define KV5M_CCACHE (-1760647380L) 2869 #define KV5M_PREAUTH_OPS (-1760647379L) 2870 #define KV5M_SAM_CHALLENGE (-1760647378L) 2871 #define KV5M_SAM_KEY (-1760647377L) 2872 #define KV5M_ENC_SAM_RESPONSE_ENC (-1760647376L) 2873 #define KV5M_ENC_SAM_RESPONSE_ENC_2 (-1760647374L) 2874 #define KV5M_SAM_RESPONSE (-1760647373L) 2875 #define KV5M_SAM_RESPONSE_2 (-1760647372L) 2876 #define KV5M_PREDICTED_SAM_RESPONSE (-1760647371L) 2877 #define KV5M_PASSWD_PHRASE_ELEMENT (-1760647370L) 2878 #define KV5M_GSS_OID (-1760647369L) 2879 #define KV5M_GSS_QUEUE (-1760647368L) 2880 #define ERROR_TABLE_BASE_kv5m (-1760647424L) 2881 2882 /* for compatibility with older versions... */ 2883 #define kv5m_err_base ERROR_TABLE_BASE_kv5m 2884 /* 2885 * asn1_err.h: 2886 * This file is automatically generated; please do not edit it. 2887 */ 2888 #define ASN1_BAD_TIMEFORMAT (1859794432L) 2889 #define ASN1_MISSING_FIELD (1859794433L) 2890 #define ASN1_MISPLACED_FIELD (1859794434L) 2891 #define ASN1_TYPE_MISMATCH (1859794435L) 2892 #define ASN1_OVERFLOW (1859794436L) 2893 #define ASN1_OVERRUN (1859794437L) 2894 #define ASN1_BAD_ID (1859794438L) 2895 #define ASN1_BAD_LENGTH (1859794439L) 2896 #define ASN1_BAD_FORMAT (1859794440L) 2897 #define ASN1_PARSE_ERROR (1859794441L) 2898 #define ASN1_BAD_GMTIME (1859794442L) 2899 #define ASN1_MISMATCH_INDEF (1859794443L) 2900 #define ASN1_MISSING_EOC (1859794444L) 2901 #define ERROR_TABLE_BASE_asn1 (1859794432L) 2902 2903 /* for compatibility with older versions... */ 2904 #define asn1_err_base ERROR_TABLE_BASE_asn1 2905 #endif /* _KRB5_H */ 2906 2907 #ifdef __cplusplus 2908 } ----Unchanged portion omitted----