1/* 2 * This file is auto generated. Please do not edit it. 3 */ 4 5#ifndef __KERBEROS5__ 6#define __KERBEROS5__ 7 8/* This file is generated, please don't edit it directly. */ 9#ifndef KRB5_KRB5_H_INCLUDED 10#define KRB5_KRB5_H_INCLUDED 11/* -*- c -*- 12 * include/krb5.h 13 * 14 * Copyright 1989,1990,1995,2001, 2003, 2007 by the Massachusetts Institute of Technology. 15 * All Rights Reserved. 16 * 17 * Export of this software from the United States of America may 18 * require a specific license from the United States Government. 19 * It is the responsibility of any person or organization contemplating 20 * export to obtain such a license before exporting. 21 * 22 * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and 23 * distribute this software and its documentation for any purpose and 24 * without fee is hereby granted, provided that the above copyright 25 * notice appear in all copies and that both that copyright notice and 26 * this permission notice appear in supporting documentation, and that 27 * the name of M.I.T. not be used in advertising or publicity pertaining 28 * to distribution of the software without specific, written prior 29 * permission. Furthermore if you modify this software you must label 30 * your software as modified software and not distribute it in such a 31 * fashion that it might be confused with the original M.I.T. software. 32 * M.I.T. makes no representations about the suitability of 33 * this software for any purpose. It is provided "as is" without express 34 * or implied warranty. 35 * 36 * 37 * General definitions for Kerberos version 5. 38 */ 39 40/* 41 * Copyright (C) 1998 by the FundsXpress, INC. 42 * 43 * All rights reserved. 44 * 45 * Export of this software from the United States of America may require 46 * a specific license from the United States Government. It is the 47 * responsibility of any person or organization contemplating export to 48 * obtain such a license before exporting. 49 * 50 * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and 51 * distribute this software and its documentation for any purpose and 52 * without fee is hereby granted, provided that the above copyright 53 * notice appear in all copies and that both that copyright notice and 54 * this permission notice appear in supporting documentation, and that 55 * the name of FundsXpress. not be used in advertising or publicity pertaining 56 * to distribution of the software without specific, written prior 57 * permission. FundsXpress makes no representations about the suitability of 58 * this software for any purpose. It is provided "as is" without express 59 * or implied warranty. 60 * 61 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 62 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 63 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. 64 */ 65 66#ifndef __has_extension 67#define __has_extension(x) 0 68#endif 69 70#ifndef KERBEROS_APPLE_DEPRECATED 71#if __has_extension(attribute_deprecated_with_message) 72#define KERBEROS_APPLE_DEPRECATED(x) __attribute__((deprecated(x))) 73#else 74#if !defined(__GNUC__) && !defined(__attribute__) 75#define __attribute__(x) 76#endif 77#define KERBEROS_APPLE_DEPRECATED(x) __attribute__((deprecated)) 78#endif 79#endif 80 81#ifndef KRB5_GENERAL__ 82#define KRB5_GENERAL__ 83 84/* By default, do not expose deprecated interfaces. */ 85#ifndef KRB5_DEPRECATED 86#define KRB5_DEPRECATED 0 87#endif 88 89#if defined(__MACH__) && defined(__APPLE__) 90# include <TargetConditionals.h> 91# if TARGET_RT_MAC_CFM 92# error "Use KfM 4.0 SDK headers for CFM compilation." 93# endif 94#endif 95 96#if defined(_MSDOS) || defined(_WIN32) 97#include <win-mac.h> 98#endif 99 100#ifndef KRB5_CONFIG__ 101#ifndef KRB5_CALLCONV 102#define KRB5_CALLCONV 103#define KRB5_CALLCONV_C 104#endif /* !KRB5_CALLCONV */ 105#endif /* !KRB5_CONFIG__ */ 106 107#ifndef KRB5_CALLCONV_WRONG 108#define KRB5_CALLCONV_WRONG 109#endif 110 111#ifndef THREEPARAMOPEN 112#define THREEPARAMOPEN(x,y,z) open(x,y,z) 113#endif 114 115#define KRB5_OLD_CRYPTO 116 117#include <stdlib.h> 118#include <limits.h> /* for *_MAX */ 119#include <stdarg.h> 120 121#ifndef KRB5INT_BEGIN_DECLS 122#if defined(__cplusplus) 123#define KRB5INT_BEGIN_DECLS extern "C" { 124#define KRB5INT_END_DECLS } 125#else 126#define KRB5INT_BEGIN_DECLS 127#define KRB5INT_END_DECLS 128#endif 129#endif 130 131KRB5INT_BEGIN_DECLS 132 133#if TARGET_OS_MAC 134# pragma pack(push,2) 135#endif 136 137#if (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) >= 30203 138# define KRB5_ATTR_DEPRECATED __attribute__((deprecated)) 139#elif defined _WIN32 140# define KRB5_ATTR_DEPRECATED __declspec(deprecated) 141#else 142# define KRB5_ATTR_DEPRECATED 143#endif 144 145/* from profile.h */ 146struct _profile_t; 147/* typedef struct _profile_t *profile_t; */ 148 149/* 150 * begin wordsize.h 151 */ 152 153/* 154 * Word-size related definition. 155 */ 156 157typedef unsigned char krb5_octet; 158 159#if INT_MAX == 0x7fff 160typedef int krb5_int16; 161typedef unsigned int krb5_ui_2; 162#elif SHRT_MAX == 0x7fff 163typedef short krb5_int16; 164typedef unsigned short krb5_ui_2; 165#else 166#error undefined 16 bit type 167#endif 168 169#if INT_MAX == 0x7fffffffL 170typedef int krb5_int32; 171typedef unsigned int krb5_ui_4; 172#elif LONG_MAX == 0x7fffffffL 173typedef long krb5_int32; 174typedef unsigned long krb5_ui_4; 175#elif SHRT_MAX == 0x7fffffffL 176typedef short krb5_int32; 177typedef unsigned short krb5_ui_4; 178#else 179#error: undefined 32 bit type 180#endif 181 182#define VALID_INT_BITS INT_MAX 183#define VALID_UINT_BITS UINT_MAX 184 185#define KRB5_INT32_MAX 2147483647 186/* this strange form is necessary since - is a unary operator, not a sign 187 indicator */ 188#define KRB5_INT32_MIN (-KRB5_INT32_MAX-1) 189 190#define KRB5_INT16_MAX 65535 191/* this strange form is necessary since - is a unary operator, not a sign 192 indicator */ 193#define KRB5_INT16_MIN (-KRB5_INT16_MAX-1) 194 195/* 196 * end wordsize.h 197 */ 198 199/* 200 * begin "base-defs.h" 201 */ 202 203/* 204 * Basic definitions for Kerberos V5 library 205 */ 206 207#ifndef FALSE 208#define FALSE 0 209#endif 210#ifndef TRUE 211#define TRUE 1 212#endif 213 214typedef unsigned int krb5_boolean; 215typedef unsigned int krb5_msgtype; 216typedef unsigned int krb5_kvno; 217 218typedef krb5_int32 krb5_addrtype; 219typedef krb5_int32 krb5_enctype; 220typedef krb5_int32 krb5_cksumtype; 221typedef krb5_int32 krb5_authdatatype; 222typedef krb5_int32 krb5_keyusage; 223 224typedef krb5_int32 krb5_preauthtype; /* This may change, later on */ 225typedef krb5_int32 krb5_flags; 226typedef krb5_int32 krb5_timestamp; 227typedef krb5_int32 krb5_error_code; 228typedef krb5_int32 krb5_deltat; 229 230typedef krb5_error_code krb5_magic; 231 232typedef struct _krb5_data { 233 krb5_magic magic; 234 unsigned int length; 235 char *data; 236} krb5_data; 237 238typedef struct _krb5_octet_data { 239 krb5_magic magic; 240 unsigned int length; 241 krb5_octet *data; 242} krb5_octet_data; 243 244/* 245 * Hack length for crypto library to use the afs_string_to_key It is 246 * equivalent to -1 without possible sign extension 247 * We also overload for an unset salt type length - which is also -1, but 248 * hey, why not.... 249*/ 250#define SALT_TYPE_AFS_LENGTH UINT_MAX 251#define SALT_TYPE_NO_LENGTH UINT_MAX 252 253typedef void * krb5_pointer; 254typedef void const * krb5_const_pointer; 255 256typedef struct krb5_principal_data { 257 krb5_magic magic; 258 krb5_data realm; 259 krb5_data *data; /* An array of strings */ 260 krb5_int32 length; 261 krb5_int32 type; 262} krb5_principal_data; 263 264typedef krb5_principal_data * krb5_principal; 265 266/* 267 * Per V5 spec on definition of principal types 268 */ 269 270/* Name type not known */ 271#define KRB5_NT_UNKNOWN 0 272/* Just the name of the principal as in DCE, or for users */ 273#define KRB5_NT_PRINCIPAL 1 274/* Service and other unique instance (krbtgt) */ 275#define KRB5_NT_SRV_INST 2 276/* Service with host name as instance (telnet, rcommands) */ 277#define KRB5_NT_SRV_HST 3 278/* Service with host as remaining components */ 279#define KRB5_NT_SRV_XHST 4 280/* Unique ID */ 281#define KRB5_NT_UID 5 282/* PKINIT */ 283#define KRB5_NT_X500_PRINCIPAL 6 284/* Name in form of SMTP email name */ 285#define KRB5_NT_SMTP_NAME 7 286/* Windows 2000 UPN */ 287#define KRB5_NT_ENTERPRISE_PRINCIPAL 10 288/* Windows 2000 UPN and SID */ 289#define KRB5_NT_MS_PRINCIPAL -128 290/* NT 4 style name */ 291#define KRB5_NT_MS_PRINCIPAL_AND_ID -129 292/* NT 4 style name and SID */ 293#define KRB5_NT_ENT_PRINCIPAL_AND_ID -130 294 295/* constant version thereof: */ 296typedef const krb5_principal_data *krb5_const_principal; 297 298#define krb5_princ_realm(context, princ) (&(princ)->realm) 299#define krb5_princ_set_realm(context, princ,value) ((princ)->realm = *(value)) 300#define krb5_princ_set_realm_length(context, princ,value) (princ)->realm.length = (value) 301#define krb5_princ_set_realm_data(context, princ,value) (princ)->realm.data = (value) 302#define krb5_princ_size(context, princ) (princ)->length 303#define krb5_princ_type(context, princ) (princ)->type 304#define krb5_princ_name(context, princ) (princ)->data 305#define krb5_princ_component(context, princ,i) \ 306 (((i) < krb5_princ_size(context, princ)) \ 307 ? (princ)->data + (i) \ 308 : NULL) 309 310/* 311 * Constants for realm referrals. 312 */ 313#define KRB5_REFERRAL_REALM "" 314 315/* 316 * Referral-specific functions. 317 */ 318krb5_boolean KRB5_CALLCONV krb5_is_referral_realm(const krb5_data *) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 319 320/* 321 * end "base-defs.h" 322 */ 323 324/* 325 * begin "hostaddr.h" 326 */ 327 328/* structure for address */ 329typedef struct _krb5_address { 330 krb5_magic magic; 331 krb5_addrtype addrtype; 332 unsigned int length; 333 krb5_octet *contents; 334} krb5_address; 335 336/* per Kerberos v5 protocol spec */ 337#define ADDRTYPE_INET 0x0002 338#define ADDRTYPE_CHAOS 0x0005 339#define ADDRTYPE_XNS 0x0006 340#define ADDRTYPE_ISO 0x0007 341#define ADDRTYPE_DDP 0x0010 342#define ADDRTYPE_INET6 0x0018 343/* not yet in the spec... */ 344#define ADDRTYPE_ADDRPORT 0x0100 345#define ADDRTYPE_IPPORT 0x0101 346 347/* macros to determine if a type is a local type */ 348#define ADDRTYPE_IS_LOCAL(addrtype) (addrtype & 0x8000) 349 350/* 351 * end "hostaddr.h" 352 */ 353 354 355struct _krb5_context; 356typedef struct _krb5_context * krb5_context; 357 358struct _krb5_auth_context; 359typedef struct _krb5_auth_context * krb5_auth_context; 360 361struct _krb5_cryptosystem_entry; 362 363/* 364 * begin "encryption.h" 365 */ 366 367typedef struct _krb5_keyblock { 368 krb5_magic magic; 369 krb5_enctype enctype; 370 unsigned int length; 371 krb5_octet *contents; 372} krb5_keyblock; 373 374#ifdef KRB5_OLD_CRYPTO 375typedef struct _krb5_encrypt_block { 376 krb5_magic magic; 377 krb5_enctype crypto_entry; /* to call krb5_encrypt_size, you need 378 this. it was a pointer, but it 379 doesn't have to be. gross. */ 380 krb5_keyblock *key; 381} krb5_encrypt_block; 382#endif 383 384typedef struct _krb5_checksum { 385 krb5_magic magic; 386 krb5_cksumtype checksum_type; /* checksum type */ 387 unsigned int length; 388 krb5_octet *contents; 389} krb5_checksum; 390 391typedef struct _krb5_enc_data { 392 krb5_magic magic; 393 krb5_enctype enctype; 394 krb5_kvno kvno; 395 krb5_data ciphertext; 396} krb5_enc_data; 397 398/* per Kerberos v5 protocol spec */ 399#define ENCTYPE_NULL 0x0000 400#define ENCTYPE_DES_CBC_CRC 0x0001 /* DES cbc mode with CRC-32 */ 401#define ENCTYPE_DES_CBC_MD4 0x0002 /* DES cbc mode with RSA-MD4 */ 402#define ENCTYPE_DES_CBC_MD5 0x0003 /* DES cbc mode with RSA-MD5 */ 403#define ENCTYPE_DES_CBC_RAW 0x0004 /* DES cbc mode raw */ 404/* XXX deprecated? */ 405#define ENCTYPE_DES3_CBC_SHA 0x0005 /* DES-3 cbc mode with NIST-SHA */ 406#define ENCTYPE_DES3_CBC_RAW 0x0006 /* DES-3 cbc mode raw */ 407#define ENCTYPE_DES_HMAC_SHA1 0x0008 408/* PKINIT */ 409#define ENCTYPE_DSA_SHA1_CMS 0x0009 /* DSA with SHA1, CMS signature */ 410#define ENCTYPE_MD5_RSA_CMS 0x000a /* MD5 with RSA, CMS signature */ 411#define ENCTYPE_SHA1_RSA_CMS 0x000b /* SHA1 with RSA, CMS signature */ 412#define ENCTYPE_RC2_CBC_ENV 0x000c /* RC2 cbc mode, CMS enveloped data */ 413#define ENCTYPE_RSA_ENV 0x000d /* RSA encryption, CMS enveloped data */ 414#define ENCTYPE_RSA_ES_OAEP_ENV 0x000e /* RSA w/OEAP encryption, CMS enveloped data */ 415#define ENCTYPE_DES3_CBC_ENV 0x000f /* DES-3 cbc mode, CMS enveloped data */ 416 417#define ENCTYPE_DES3_CBC_SHA1 0x0010 418#define ENCTYPE_AES128_CTS_HMAC_SHA1_96 0x0011 419#define ENCTYPE_AES256_CTS_HMAC_SHA1_96 0x0012 420#define ENCTYPE_ARCFOUR_HMAC 0x0017 421#define ENCTYPE_ARCFOUR_HMAC_EXP 0x0018 422#define ENCTYPE_UNKNOWN 0x01ff 423 424#define CKSUMTYPE_CRC32 0x0001 425#define CKSUMTYPE_RSA_MD4 0x0002 426#define CKSUMTYPE_RSA_MD4_DES 0x0003 427#define CKSUMTYPE_DESCBC 0x0004 428/* des-mac-k */ 429/* rsa-md4-des-k */ 430#define CKSUMTYPE_RSA_MD5 0x0007 431#define CKSUMTYPE_RSA_MD5_DES 0x0008 432#define CKSUMTYPE_NIST_SHA 0x0009 433#define CKSUMTYPE_HMAC_SHA1_DES3 0x000c 434#define CKSUMTYPE_HMAC_SHA1_96_AES128 0x000f 435#define CKSUMTYPE_HMAC_SHA1_96_AES256 0x0010 436#define CKSUMTYPE_HMAC_MD5_ARCFOUR -138 /*Microsoft md5 hmac cksumtype*/ 437 438/* The following are entropy source designations. Whenever 439 * krb5_C_random_add_entropy is called, one of these source ids is passed 440 * in. This allows the library to better estimate bits of 441 * entropy in the sample and to keep track of what sources of entropy have 442 * contributed enough entropy. Sources marked internal MUST NOT be 443 * used by applications outside the Kerberos library 444*/ 445 446enum { 447 KRB5_C_RANDSOURCE_OLDAPI = 0, /*calls to krb5_C_RANDOM_SEED (INTERNAL)*/ 448 KRB5_C_RANDSOURCE_OSRAND = 1, /* /dev/random or equivalent (internal)*/ 449 KRB5_C_RANDSOURCE_TRUSTEDPARTY = 2, /* From KDC or other trusted party*/ 450 /*This source should be used carefully; data in this category 451 * should be from a third party trusted to give random bits 452 * For example keys issued by the KDC in the application server. 453 */ 454 KRB5_C_RANDSOURCE_TIMING = 3, /* Timing of operations*/ 455 KRB5_C_RANDSOURCE_EXTERNAL_PROTOCOL = 4, /*Protocol data possibly from attacker*/ 456 KRB5_C_RANDSOURCE_MAX = 5 /*Do not use; maximum source ID*/ 457}; 458 459#ifndef krb5_roundup 460/* round x up to nearest multiple of y */ 461#define krb5_roundup(x, y) ((((x) + (y) - 1)/(y))*(y)) 462#endif /* roundup */ 463 464/* macro function definitions to help clean up code */ 465 466#if 1 467#define krb5_x(ptr,args) ((ptr)?((*(ptr)) args):(abort(),1)) 468#define krb5_xc(ptr,args) ((ptr)?((*(ptr)) args):(abort(),(char*)0)) 469#else 470#define krb5_x(ptr,args) ((*(ptr)) args) 471#define krb5_xc(ptr,args) ((*(ptr)) args) 472#endif 473 474krb5_error_code KRB5_CALLCONV 475 krb5_c_encrypt 476 (krb5_context context, const krb5_keyblock *key, 477 krb5_keyusage usage, const krb5_data *cipher_state, 478 const krb5_data *input, krb5_enc_data *output) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 479 480krb5_error_code KRB5_CALLCONV 481 krb5_c_decrypt 482 (krb5_context context, const krb5_keyblock *key, 483 krb5_keyusage usage, const krb5_data *cipher_state, 484 const krb5_enc_data *input, krb5_data *output) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 485 486krb5_error_code KRB5_CALLCONV 487 krb5_c_encrypt_length 488 (krb5_context context, krb5_enctype enctype, 489 size_t inputlen, size_t *length) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 490 491krb5_error_code KRB5_CALLCONV 492 krb5_c_block_size 493 (krb5_context context, krb5_enctype enctype, 494 size_t *blocksize) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 495 496krb5_error_code KRB5_CALLCONV 497 krb5_c_keylengths 498 (krb5_context context, krb5_enctype enctype, 499 size_t *keybytes, size_t *keylength) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 500 501krb5_error_code KRB5_CALLCONV 502 krb5_c_init_state 503(krb5_context context, 504const krb5_keyblock *key, krb5_keyusage usage, 505krb5_data *new_state) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 506 507krb5_error_code KRB5_CALLCONV 508 krb5_c_free_state 509(krb5_context context, const krb5_keyblock *key, krb5_data *state) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 510 511krb5_error_code KRB5_CALLCONV 512 krb5_c_prf (krb5_context, const krb5_keyblock *, 513 krb5_data *in, krb5_data *out) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 514 515krb5_error_code KRB5_CALLCONV 516 krb5_c_prf_length (krb5_context, krb5_enctype, size_t *outlen) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 517 518krb5_error_code KRB5_CALLCONV 519 krb5_c_make_random_key 520 (krb5_context context, krb5_enctype enctype, 521 krb5_keyblock *k5_random_key) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 522 523krb5_error_code KRB5_CALLCONV 524 krb5_c_random_to_key 525 (krb5_context context, krb5_enctype enctype, 526 krb5_data *random_data, krb5_keyblock *k5_random_key) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 527 528/* Register a new entropy sample with the PRNG. may cause 529* the PRNG to be reseeded, although this is not guaranteed. See previous randsource definitions 530* for information on how each source should be used. 531*/ 532krb5_error_code KRB5_CALLCONV 533 krb5_c_random_add_entropy 534(krb5_context context, unsigned int randsource_id, const krb5_data *data) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 535 536 537krb5_error_code KRB5_CALLCONV 538 krb5_c_random_make_octets 539 (krb5_context context, krb5_data *data) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 540 541/* 542* Collect entropy from the OS if possible. strong requests that as strong 543* of a source of entropy as available be used. Setting strong may 544* increase the probability of blocking and should not be used for normal 545* applications. Good uses include seeding the PRNG for kadmind 546* and realm setup. 547* If successful is non-null, then successful is set to 1 if the OS provided 548* entropy else zero. 549*/ 550krb5_error_code KRB5_CALLCONV 551krb5_c_random_os_entropy 552(krb5_context context, int strong, int *success) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 553 554/*deprecated*/ krb5_error_code KRB5_CALLCONV 555 krb5_c_random_seed 556 (krb5_context context, krb5_data *data) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 557 558krb5_error_code KRB5_CALLCONV 559 krb5_c_string_to_key 560 (krb5_context context, krb5_enctype enctype, 561 const krb5_data *string, const krb5_data *salt, 562 krb5_keyblock *key) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 563krb5_error_code KRB5_CALLCONV 564krb5_c_string_to_key_with_params(krb5_context context, 565 krb5_enctype enctype, 566 const krb5_data *string, 567 const krb5_data *salt, 568 const krb5_data *params, 569 krb5_keyblock *key) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 570 571krb5_error_code KRB5_CALLCONV 572 krb5_c_enctype_compare 573 (krb5_context context, krb5_enctype e1, krb5_enctype e2, 574 krb5_boolean *similar) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 575 576krb5_error_code KRB5_CALLCONV 577 krb5_c_make_checksum 578 (krb5_context context, krb5_cksumtype cksumtype, 579 const krb5_keyblock *key, krb5_keyusage usage, 580 const krb5_data *input, krb5_checksum *cksum) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 581 582krb5_error_code KRB5_CALLCONV 583 krb5_c_verify_checksum 584 (krb5_context context, 585 const krb5_keyblock *key, krb5_keyusage usage, 586 const krb5_data *data, 587 const krb5_checksum *cksum, 588 krb5_boolean *valid) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 589 590krb5_error_code KRB5_CALLCONV 591 krb5_c_checksum_length 592 (krb5_context context, krb5_cksumtype cksumtype, 593 size_t *length) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 594 595krb5_error_code KRB5_CALLCONV 596 krb5_c_keyed_checksum_types 597 (krb5_context context, krb5_enctype enctype, 598 unsigned int *count, krb5_cksumtype **cksumtypes) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 599 600#define KRB5_KEYUSAGE_AS_REQ_PA_ENC_TS 1 601#define KRB5_KEYUSAGE_KDC_REP_TICKET 2 602#define KRB5_KEYUSAGE_AS_REP_ENCPART 3 603#define KRB5_KEYUSAGE_TGS_REQ_AD_SESSKEY 4 604#define KRB5_KEYUSAGE_TGS_REQ_AD_SUBKEY 5 605#define KRB5_KEYUSAGE_TGS_REQ_AUTH_CKSUM 6 606#define KRB5_KEYUSAGE_TGS_REQ_AUTH 7 607#define KRB5_KEYUSAGE_TGS_REP_ENCPART_SESSKEY 8 608#define KRB5_KEYUSAGE_TGS_REP_ENCPART_SUBKEY 9 609#define KRB5_KEYUSAGE_AP_REQ_AUTH_CKSUM 10 610#define KRB5_KEYUSAGE_AP_REQ_AUTH 11 611#define KRB5_KEYUSAGE_AP_REP_ENCPART 12 612#define KRB5_KEYUSAGE_KRB_PRIV_ENCPART 13 613#define KRB5_KEYUSAGE_KRB_CRED_ENCPART 14 614#define KRB5_KEYUSAGE_KRB_SAFE_CKSUM 15 615#define KRB5_KEYUSAGE_APP_DATA_ENCRYPT 16 616#define KRB5_KEYUSAGE_APP_DATA_CKSUM 17 617#define KRB5_KEYUSAGE_KRB_ERROR_CKSUM 18 618#define KRB5_KEYUSAGE_AD_KDCISSUED_CKSUM 19 619#define KRB5_KEYUSAGE_AD_MTE 20 620#define KRB5_KEYUSAGE_AD_ITE 21 621 622/* XXX need to register these */ 623 624#define KRB5_KEYUSAGE_GSS_TOK_MIC 22 625#define KRB5_KEYUSAGE_GSS_TOK_WRAP_INTEG 23 626#define KRB5_KEYUSAGE_GSS_TOK_WRAP_PRIV 24 627 628/* Defined in hardware preauth draft */ 629 630#define KRB5_KEYUSAGE_PA_SAM_CHALLENGE_CKSUM 25 631#define KRB5_KEYUSAGE_PA_SAM_CHALLENGE_TRACKID 26 632#define KRB5_KEYUSAGE_PA_SAM_RESPONSE 27 633 634/* Defined in KDC referrals draft */ 635#define KRB5_KEYUSAGE_PA_REFERRAL 26 /* XXX note conflict with above */ 636 637krb5_boolean KRB5_CALLCONV krb5_c_valid_enctype 638 (krb5_enctype ktype) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 639krb5_boolean KRB5_CALLCONV krb5_c_valid_cksumtype 640 (krb5_cksumtype ctype) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 641krb5_boolean KRB5_CALLCONV krb5_c_is_coll_proof_cksum 642 (krb5_cksumtype ctype) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 643krb5_boolean KRB5_CALLCONV krb5_c_is_keyed_cksum 644 (krb5_cksumtype ctype) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 645 646#ifdef KRB5_OLD_CRYPTO 647/* 648 * old cryptosystem routine prototypes. These are now layered 649 * on top of the functions above. 650 */ 651krb5_error_code KRB5_CALLCONV krb5_encrypt 652 (krb5_context context, 653 krb5_const_pointer inptr, 654 krb5_pointer outptr, 655 size_t size, 656 krb5_encrypt_block * eblock, 657 krb5_pointer ivec) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 658krb5_error_code KRB5_CALLCONV krb5_decrypt 659 (krb5_context context, 660 krb5_const_pointer inptr, 661 krb5_pointer outptr, 662 size_t size, 663 krb5_encrypt_block * eblock, 664 krb5_pointer ivec) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 665krb5_error_code KRB5_CALLCONV krb5_process_key 666 (krb5_context context, 667 krb5_encrypt_block * eblock, 668 const krb5_keyblock * key) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 669krb5_error_code KRB5_CALLCONV krb5_finish_key 670 (krb5_context context, 671 krb5_encrypt_block * eblock) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 672krb5_error_code KRB5_CALLCONV krb5_string_to_key 673 (krb5_context context, 674 const krb5_encrypt_block * eblock, 675 krb5_keyblock * keyblock, 676 const krb5_data * data, 677 const krb5_data * salt) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 678krb5_error_code KRB5_CALLCONV krb5_init_random_key 679 (krb5_context context, 680 const krb5_encrypt_block * eblock, 681 const krb5_keyblock * keyblock, 682 krb5_pointer * ptr) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 683krb5_error_code KRB5_CALLCONV krb5_finish_random_key 684 (krb5_context context, 685 const krb5_encrypt_block * eblock, 686 krb5_pointer * ptr) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 687krb5_error_code KRB5_CALLCONV krb5_random_key 688 (krb5_context context, 689 const krb5_encrypt_block * eblock, 690 krb5_pointer ptr, 691 krb5_keyblock ** keyblock) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 692krb5_enctype KRB5_CALLCONV krb5_eblock_enctype 693 (krb5_context context, 694 const krb5_encrypt_block * eblock) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 695krb5_error_code KRB5_CALLCONV krb5_use_enctype 696 (krb5_context context, 697 krb5_encrypt_block * eblock, 698 krb5_enctype enctype) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 699size_t KRB5_CALLCONV krb5_encrypt_size 700 (size_t length, 701 krb5_enctype crypto) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 702size_t KRB5_CALLCONV krb5_checksum_size 703 (krb5_context context, 704 krb5_cksumtype ctype) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 705krb5_error_code KRB5_CALLCONV krb5_calculate_checksum 706 (krb5_context context, 707 krb5_cksumtype ctype, 708 krb5_const_pointer in, size_t in_length, 709 krb5_const_pointer seed, size_t seed_length, 710 krb5_checksum * outcksum) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 711krb5_error_code KRB5_CALLCONV krb5_verify_checksum 712 (krb5_context context, 713 krb5_cksumtype ctype, 714 const krb5_checksum * cksum, 715 krb5_const_pointer in, size_t in_length, 716 krb5_const_pointer seed, size_t seed_length) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 717 718#endif /* KRB5_OLD_CRYPTO */ 719 720/* 721 * end "encryption.h" 722 */ 723 724/* 725 * begin "fieldbits.h" 726 */ 727 728/* kdc_options for kdc_request */ 729/* options is 32 bits; each host is responsible to put the 4 bytes 730 representing these bits into net order before transmission */ 731/* #define KDC_OPT_RESERVED 0x80000000 */ 732#define KDC_OPT_FORWARDABLE 0x40000000 733#define KDC_OPT_FORWARDED 0x20000000 734#define KDC_OPT_PROXIABLE 0x10000000 735#define KDC_OPT_PROXY 0x08000000 736#define KDC_OPT_ALLOW_POSTDATE 0x04000000 737#define KDC_OPT_POSTDATED 0x02000000 738/* #define KDC_OPT_UNUSED 0x01000000 */ 739#define KDC_OPT_RENEWABLE 0x00800000 740/* #define KDC_OPT_UNUSED 0x00400000 */ 741/* #define KDC_OPT_RESERVED 0x00200000 */ 742/* #define KDC_OPT_RESERVED 0x00100000 */ 743/* #define KDC_OPT_RESERVED 0x00080000 */ 744/* #define KDC_OPT_RESERVED 0x00040000 */ 745#define KDC_OPT_REQUEST_ANONYMOUS 0x00020000 746#define KDC_OPT_CANONICALIZE 0x00010000 747/* #define KDC_OPT_RESERVED 0x00008000 */ 748/* #define KDC_OPT_RESERVED 0x00004000 */ 749/* #define KDC_OPT_RESERVED 0x00002000 */ 750/* #define KDC_OPT_RESERVED 0x00001000 */ 751/* #define KDC_OPT_RESERVED 0x00000800 */ 752/* #define KDC_OPT_RESERVED 0x00000400 */ 753/* #define KDC_OPT_RESERVED 0x00000200 */ 754/* #define KDC_OPT_RESERVED 0x00000100 */ 755/* #define KDC_OPT_RESERVED 0x00000080 */ 756/* #define KDC_OPT_RESERVED 0x00000040 */ 757#define KDC_OPT_DISABLE_TRANSITED_CHECK 0x00000020 758#define KDC_OPT_RENEWABLE_OK 0x00000010 759#define KDC_OPT_ENC_TKT_IN_SKEY 0x00000008 760/* #define KDC_OPT_UNUSED 0x00000004 */ 761#define KDC_OPT_RENEW 0x00000002 762#define KDC_OPT_VALIDATE 0x00000001 763 764/* 765 * Mask of ticket flags in the TGT which should be converted into KDC 766 * options when using the TGT to get derivitive tickets. 767 * 768 * New mask = KDC_OPT_FORWARDABLE | KDC_OPT_PROXIABLE | 769 * KDC_OPT_ALLOW_POSTDATE | KDC_OPT_RENEWABLE 770 */ 771#define KDC_TKT_COMMON_MASK 0x54800000 772 773/* definitions for ap_options fields */ 774/* ap_options are 32 bits; each host is responsible to put the 4 bytes 775 representing these bits into net order before transmission */ 776#define AP_OPTS_RESERVED 0x80000000 777#define AP_OPTS_USE_SESSION_KEY 0x40000000 778#define AP_OPTS_MUTUAL_REQUIRED 0x20000000 779/* #define AP_OPTS_RESERVED 0x10000000 */ 780/* #define AP_OPTS_RESERVED 0x08000000 */ 781/* #define AP_OPTS_RESERVED 0x04000000 */ 782/* #define AP_OPTS_RESERVED 0x02000000 */ 783/* #define AP_OPTS_RESERVED 0x01000000 */ 784/* #define AP_OPTS_RESERVED 0x00800000 */ 785/* #define AP_OPTS_RESERVED 0x00400000 */ 786/* #define AP_OPTS_RESERVED 0x00200000 */ 787/* #define AP_OPTS_RESERVED 0x00100000 */ 788/* #define AP_OPTS_RESERVED 0x00080000 */ 789/* #define AP_OPTS_RESERVED 0x00040000 */ 790/* #define AP_OPTS_RESERVED 0x00020000 */ 791/* #define AP_OPTS_RESERVED 0x00010000 */ 792/* #define AP_OPTS_RESERVED 0x00008000 */ 793/* #define AP_OPTS_RESERVED 0x00004000 */ 794/* #define AP_OPTS_RESERVED 0x00002000 */ 795/* #define AP_OPTS_RESERVED 0x00001000 */ 796/* #define AP_OPTS_RESERVED 0x00000800 */ 797/* #define AP_OPTS_RESERVED 0x00000400 */ 798/* #define AP_OPTS_RESERVED 0x00000200 */ 799/* #define AP_OPTS_RESERVED 0x00000100 */ 800/* #define AP_OPTS_RESERVED 0x00000080 */ 801/* #define AP_OPTS_RESERVED 0x00000040 */ 802/* #define AP_OPTS_RESERVED 0x00000020 */ 803/* #define AP_OPTS_RESERVED 0x00000010 */ 804/* #define AP_OPTS_RESERVED 0x00000008 */ 805/* #define AP_OPTS_RESERVED 0x00000004 */ 806/* #define AP_OPTS_RESERVED 0x00000002 */ 807#define AP_OPTS_USE_SUBKEY 0x00000001 808 809#define AP_OPTS_WIRE_MASK 0xfffffff0 810 811/* definitions for ad_type fields. */ 812#define AD_TYPE_RESERVED 0x8000 813#define AD_TYPE_EXTERNAL 0x4000 814#define AD_TYPE_REGISTERED 0x2000 815 816#define AD_TYPE_FIELD_TYPE_MASK 0x1fff 817 818/* Ticket flags */ 819/* flags are 32 bits; each host is responsible to put the 4 bytes 820 representing these bits into net order before transmission */ 821/* #define TKT_FLG_RESERVED 0x80000000 */ 822#define TKT_FLG_FORWARDABLE 0x40000000 823#define TKT_FLG_FORWARDED 0x20000000 824#define TKT_FLG_PROXIABLE 0x10000000 825#define TKT_FLG_PROXY 0x08000000 826#define TKT_FLG_MAY_POSTDATE 0x04000000 827#define TKT_FLG_POSTDATED 0x02000000 828#define TKT_FLG_INVALID 0x01000000 829#define TKT_FLG_RENEWABLE 0x00800000 830#define TKT_FLG_INITIAL 0x00400000 831#define TKT_FLG_PRE_AUTH 0x00200000 832#define TKT_FLG_HW_AUTH 0x00100000 833#define TKT_FLG_TRANSIT_POLICY_CHECKED 0x00080000 834#define TKT_FLG_OK_AS_DELEGATE 0x00040000 835#define TKT_FLG_ANONYMOUS 0x00020000 836/* #define TKT_FLG_RESERVED 0x00010000 */ 837/* #define TKT_FLG_RESERVED 0x00008000 */ 838/* #define TKT_FLG_RESERVED 0x00004000 */ 839/* #define TKT_FLG_RESERVED 0x00002000 */ 840/* #define TKT_FLG_RESERVED 0x00001000 */ 841/* #define TKT_FLG_RESERVED 0x00000800 */ 842/* #define TKT_FLG_RESERVED 0x00000400 */ 843/* #define TKT_FLG_RESERVED 0x00000200 */ 844/* #define TKT_FLG_RESERVED 0x00000100 */ 845/* #define TKT_FLG_RESERVED 0x00000080 */ 846/* #define TKT_FLG_RESERVED 0x00000040 */ 847/* #define TKT_FLG_RESERVED 0x00000020 */ 848/* #define TKT_FLG_RESERVED 0x00000010 */ 849/* #define TKT_FLG_RESERVED 0x00000008 */ 850/* #define TKT_FLG_RESERVED 0x00000004 */ 851/* #define TKT_FLG_RESERVED 0x00000002 */ 852/* #define TKT_FLG_RESERVED 0x00000001 */ 853 854/* definitions for lr_type fields. */ 855#define LR_TYPE_THIS_SERVER_ONLY 0x8000 856 857#define LR_TYPE_INTERPRETATION_MASK 0x7fff 858 859/* definitions for ad_type fields. */ 860#define AD_TYPE_EXTERNAL 0x4000 861#define AD_TYPE_REGISTERED 0x2000 862 863#define AD_TYPE_FIELD_TYPE_MASK 0x1fff 864#define AD_TYPE_INTERNAL_MASK 0x3fff 865 866/* definitions for msec direction bit for KRB_SAFE, KRB_PRIV */ 867#define MSEC_DIRBIT 0x8000 868#define MSEC_VAL_MASK 0x7fff 869 870/* 871 * end "fieldbits.h" 872 */ 873 874/* 875 * begin "proto.h" 876 */ 877 878/* Protocol version number */ 879#define KRB5_PVNO 5 880 881/* Message types */ 882 883#define KRB5_AS_REQ ((krb5_msgtype)10) /* Req for initial authentication */ 884#define KRB5_AS_REP ((krb5_msgtype)11) /* Response to KRB_AS_REQ request */ 885#define KRB5_TGS_REQ ((krb5_msgtype)12) /* TGS request to server */ 886#define KRB5_TGS_REP ((krb5_msgtype)13) /* Response to KRB_TGS_REQ req */ 887#define KRB5_AP_REQ ((krb5_msgtype)14) /* application request to server */ 888#define KRB5_AP_REP ((krb5_msgtype)15) /* Response to KRB_AP_REQ_MUTUAL */ 889#define KRB5_SAFE ((krb5_msgtype)20) /* Safe application message */ 890#define KRB5_PRIV ((krb5_msgtype)21) /* Private application message */ 891#define KRB5_CRED ((krb5_msgtype)22) /* Credential forwarding message */ 892#define KRB5_ERROR ((krb5_msgtype)30) /* Error response */ 893 894/* LastReq types */ 895#define KRB5_LRQ_NONE 0 896#define KRB5_LRQ_ALL_LAST_TGT 1 897#define KRB5_LRQ_ONE_LAST_TGT (-1) 898#define KRB5_LRQ_ALL_LAST_INITIAL 2 899#define KRB5_LRQ_ONE_LAST_INITIAL (-2) 900#define KRB5_LRQ_ALL_LAST_TGT_ISSUED 3 901#define KRB5_LRQ_ONE_LAST_TGT_ISSUED (-3) 902#define KRB5_LRQ_ALL_LAST_RENEWAL 4 903#define KRB5_LRQ_ONE_LAST_RENEWAL (-4) 904#define KRB5_LRQ_ALL_LAST_REQ 5 905#define KRB5_LRQ_ONE_LAST_REQ (-5) 906#define KRB5_LRQ_ALL_PW_EXPTIME 6 907#define KRB5_LRQ_ONE_PW_EXPTIME (-6) 908 909/* PADATA types */ 910#define KRB5_PADATA_NONE 0 911#define KRB5_PADATA_AP_REQ 1 912#define KRB5_PADATA_TGS_REQ KRB5_PADATA_AP_REQ 913#define KRB5_PADATA_ENC_TIMESTAMP 2 914#define KRB5_PADATA_PW_SALT 3 915#if 0 /* Not used */ 916#define KRB5_PADATA_ENC_ENCKEY 4 /* Key encrypted within itself */ 917#endif 918#define KRB5_PADATA_ENC_UNIX_TIME 5 /* timestamp encrypted in key */ 919#define KRB5_PADATA_ENC_SANDIA_SECURID 6 /* SecurId passcode */ 920#define KRB5_PADATA_SESAME 7 /* Sesame project */ 921#define KRB5_PADATA_OSF_DCE 8 /* OSF DCE */ 922#define KRB5_CYBERSAFE_SECUREID 9 /* Cybersafe */ 923#define KRB5_PADATA_AFS3_SALT 10 /* Cygnus */ 924#define KRB5_PADATA_ETYPE_INFO 11 /* Etype info for preauth */ 925#define KRB5_PADATA_SAM_CHALLENGE 12 /* draft challenge system */ 926#define KRB5_PADATA_SAM_RESPONSE 13 /* draft challenge system response */ 927#define KRB5_PADATA_PK_AS_REQ_OLD 14 /* PKINIT */ 928#define KRB5_PADATA_PK_AS_REP_OLD 15 /* PKINIT */ 929#define KRB5_PADATA_PK_AS_REQ 16 /* PKINIT */ 930#define KRB5_PADATA_PK_AS_REP 17 /* PKINIT */ 931#define KRB5_PADATA_ETYPE_INFO2 19 932#define KRB5_PADATA_USE_SPECIFIED_KVNO 20 933#define KRB5_PADATA_SAM_REDIRECT 21 934#define KRB5_PADATA_GET_FROM_TYPED_DATA 22 935#define KRB5_PADATA_REFERRAL 25 /* draft referral system */ 936#define KRB5_PADATA_SAM_CHALLENGE_2 30 /* draft challenge system, updated */ 937#define KRB5_PADATA_SAM_RESPONSE_2 31 /* draft challenge system, updated */ 938#define KRB5_PADATA_PK_AS_09_BINDING 132 939 940#define KRB5_SAM_USE_SAD_AS_KEY 0x80000000 941#define KRB5_SAM_SEND_ENCRYPTED_SAD 0x40000000 942#define KRB5_SAM_MUST_PK_ENCRYPT_SAD 0x20000000 /* currently must be zero */ 943 944/* Reserved for SPX pre-authentication. */ 945#define KRB5_PADATA_DASS 16 946 947/* Transited encoding types */ 948#define KRB5_DOMAIN_X500_COMPRESS 1 949 950/* alternate authentication types */ 951#define KRB5_ALTAUTH_ATT_CHALLENGE_RESPONSE 64 952 953/* authorization data types */ 954#define KRB5_AUTHDATA_IF_RELEVANT 1 955#define KRB5_AUTHDATA_KDC_ISSUED 4 956#define KRB5_AUTHDATA_AND_OR 5 957#define KRB5_AUTHDATA_MANDATORY_FOR_KDC 8 958#define KRB5_AUTHDATA_INITIAL_VERIFIED_CAS 9 959#define KRB5_AUTHDATA_OSF_DCE 64 960#define KRB5_AUTHDATA_SESAME 65 961 962/* password change constants */ 963 964#define KRB5_KPASSWD_SUCCESS 0 965#define KRB5_KPASSWD_MALFORMED 1 966#define KRB5_KPASSWD_HARDERROR 2 967#define KRB5_KPASSWD_AUTHERROR 3 968#define KRB5_KPASSWD_SOFTERROR 4 969/* These are Microsoft's extensions in RFC 3244, and it looks like 970 they'll become standardized, possibly with other additions. */ 971#define KRB5_KPASSWD_ACCESSDENIED 5 /* unused */ 972#define KRB5_KPASSWD_BAD_VERSION 6 973#define KRB5_KPASSWD_INITIAL_FLAG_NEEDED 7 /* unused */ 974 975/* 976 * end "proto.h" 977 */ 978 979/* Time set */ 980typedef struct _krb5_ticket_times { 981 krb5_timestamp authtime; /* XXX ? should ktime in KDC_REP == authtime 982 in ticket? otherwise client can't get this */ 983 krb5_timestamp starttime; /* optional in ticket, if not present, 984 use authtime */ 985 krb5_timestamp endtime; 986 krb5_timestamp renew_till; 987} krb5_ticket_times; 988 989/* structure for auth data */ 990typedef struct _krb5_authdata { 991 krb5_magic magic; 992 krb5_authdatatype ad_type; 993 unsigned int length; 994 krb5_octet *contents; 995} krb5_authdata; 996 997/* structure for transited encoding */ 998typedef struct _krb5_transited { 999 krb5_magic magic; 1000 krb5_octet tr_type; 1001 krb5_data tr_contents; 1002} krb5_transited; 1003 1004typedef struct _krb5_enc_tkt_part { 1005 krb5_magic magic; 1006 /* to-be-encrypted portion */ 1007 krb5_flags flags; /* flags */ 1008 krb5_keyblock *session; /* session key: includes enctype */ 1009 krb5_principal client; /* client name/realm */ 1010 krb5_transited transited; /* list of transited realms */ 1011 krb5_ticket_times times; /* auth, start, end, renew_till */ 1012 krb5_address **caddrs; /* array of ptrs to addresses */ 1013 krb5_authdata **authorization_data; /* auth data */ 1014} krb5_enc_tkt_part; 1015 1016typedef struct _krb5_ticket { 1017 krb5_magic magic; 1018 /* cleartext portion */ 1019 krb5_principal server; /* server name/realm */ 1020 krb5_enc_data enc_part; /* encryption type, kvno, encrypted 1021 encoding */ 1022 krb5_enc_tkt_part *enc_part2; /* ptr to decrypted version, if 1023 available */ 1024} krb5_ticket; 1025 1026/* the unencrypted version */ 1027typedef struct _krb5_authenticator { 1028 krb5_magic magic; 1029 krb5_principal client; /* client name/realm */ 1030 krb5_checksum *checksum; /* checksum, includes type, optional */ 1031 krb5_int32 cusec; /* client usec portion */ 1032 krb5_timestamp ctime; /* client sec portion */ 1033 krb5_keyblock *subkey; /* true session key, optional */ 1034 krb5_ui_4 seq_number; /* sequence #, optional */ 1035 krb5_authdata **authorization_data; /* New add by Ari, auth data */ 1036} krb5_authenticator; 1037 1038typedef struct _krb5_tkt_authent { 1039 krb5_magic magic; 1040 krb5_ticket *ticket; 1041 krb5_authenticator *authenticator; 1042 krb5_flags ap_options; 1043} krb5_tkt_authent; 1044 1045/* credentials: Ticket, session key, etc. */ 1046typedef struct _krb5_creds { 1047 krb5_magic magic; 1048 krb5_principal client; /* client's principal identifier */ 1049 krb5_principal server; /* server's principal identifier */ 1050 krb5_keyblock keyblock; /* session encryption key info */ 1051 krb5_ticket_times times; /* lifetime info */ 1052 krb5_boolean is_skey; /* true if ticket is encrypted in 1053 another ticket's skey */ 1054 krb5_flags ticket_flags; /* flags in ticket */ 1055 krb5_address **addresses; /* addrs in ticket */ 1056 krb5_data ticket; /* ticket string itself */ 1057 krb5_data second_ticket; /* second ticket, if related to 1058 ticket (via DUPLICATE-SKEY or 1059 ENC-TKT-IN-SKEY) */ 1060 krb5_authdata **authdata; /* authorization data */ 1061} krb5_creds; 1062 1063/* Last request fields */ 1064typedef struct _krb5_last_req_entry { 1065 krb5_magic magic; 1066 krb5_int32 lr_type; 1067 krb5_timestamp value; 1068} krb5_last_req_entry; 1069 1070/* pre-authentication data */ 1071typedef struct _krb5_pa_data { 1072 krb5_magic magic; 1073 krb5_preauthtype pa_type; 1074 unsigned int length; 1075 krb5_octet *contents; 1076} krb5_pa_data; 1077 1078typedef struct _krb5_kdc_req { 1079 krb5_magic magic; 1080 krb5_msgtype msg_type; /* AS_REQ or TGS_REQ? */ 1081 krb5_pa_data **padata; /* e.g. encoded AP_REQ */ 1082 /* real body */ 1083 krb5_flags kdc_options; /* requested options */ 1084 krb5_principal client; /* includes realm; optional */ 1085 krb5_principal server; /* includes realm (only used if no 1086 client) */ 1087 krb5_timestamp from; /* requested starttime */ 1088 krb5_timestamp till; /* requested endtime */ 1089 krb5_timestamp rtime; /* (optional) requested renew_till */ 1090 krb5_int32 nonce; /* nonce to match request/response */ 1091 int nktypes; /* # of ktypes, must be positive */ 1092 krb5_enctype *ktype; /* requested enctype(s) */ 1093 krb5_address **addresses; /* requested addresses, optional */ 1094 krb5_enc_data authorization_data; /* encrypted auth data; OPTIONAL */ 1095 krb5_authdata **unenc_authdata; /* unencrypted auth data, 1096 if available */ 1097 krb5_ticket **second_ticket;/* second ticket array; OPTIONAL */ 1098} krb5_kdc_req; 1099 1100typedef struct _krb5_enc_kdc_rep_part { 1101 krb5_magic magic; 1102 /* encrypted part: */ 1103 krb5_msgtype msg_type; /* krb5 message type */ 1104 krb5_keyblock *session; /* session key */ 1105 krb5_last_req_entry **last_req; /* array of ptrs to entries */ 1106 krb5_int32 nonce; /* nonce from request */ 1107 krb5_timestamp key_exp; /* expiration date */ 1108 krb5_flags flags; /* ticket flags */ 1109 krb5_ticket_times times; /* lifetime info */ 1110 krb5_principal server; /* server's principal identifier */ 1111 krb5_address **caddrs; /* array of ptrs to addresses, 1112 optional */ 1113} krb5_enc_kdc_rep_part; 1114 1115typedef struct _krb5_kdc_rep { 1116 krb5_magic magic; 1117 /* cleartext part: */ 1118 krb5_msgtype msg_type; /* AS_REP or KDC_REP? */ 1119 krb5_pa_data **padata; /* preauthentication data from KDC */ 1120 krb5_principal client; /* client's principal identifier */ 1121 krb5_ticket *ticket; /* ticket */ 1122 krb5_enc_data enc_part; /* encryption type, kvno, encrypted 1123 encoding */ 1124 krb5_enc_kdc_rep_part *enc_part2;/* unencrypted version, if available */ 1125} krb5_kdc_rep; 1126 1127/* error message structure */ 1128typedef struct _krb5_error { 1129 krb5_magic magic; 1130 /* some of these may be meaningless in certain contexts */ 1131 krb5_timestamp ctime; /* client sec portion; optional */ 1132 krb5_int32 cusec; /* client usec portion; optional */ 1133 krb5_int32 susec; /* server usec portion */ 1134 krb5_timestamp stime; /* server sec portion */ 1135 krb5_ui_4 error; /* error code (protocol error #'s) */ 1136 krb5_principal client; /* client's principal identifier; 1137 optional */ 1138 krb5_principal server; /* server's principal identifier */ 1139 krb5_data text; /* descriptive text */ 1140 krb5_data e_data; /* additional error-describing data */ 1141} krb5_error; 1142 1143typedef struct _krb5_ap_req { 1144 krb5_magic magic; 1145 krb5_flags ap_options; /* requested options */ 1146 krb5_ticket *ticket; /* ticket */ 1147 krb5_enc_data authenticator; /* authenticator (already encrypted) */ 1148} krb5_ap_req; 1149 1150typedef struct _krb5_ap_rep { 1151 krb5_magic magic; 1152 krb5_enc_data enc_part; 1153} krb5_ap_rep; 1154 1155typedef struct _krb5_ap_rep_enc_part { 1156 krb5_magic magic; 1157 krb5_timestamp ctime; /* client time, seconds portion */ 1158 krb5_int32 cusec; /* client time, microseconds portion */ 1159 krb5_keyblock *subkey; /* true session key, optional */ 1160 krb5_ui_4 seq_number; /* sequence #, optional */ 1161} krb5_ap_rep_enc_part; 1162 1163typedef struct _krb5_response { 1164 krb5_magic magic; 1165 krb5_octet message_type; 1166 krb5_data response; 1167 krb5_int32 expected_nonce; /* The expected nonce for KDC_REP messages */ 1168 krb5_timestamp request_time; /* When we made the request */ 1169} krb5_response; 1170 1171typedef struct _krb5_cred_info { 1172 krb5_magic magic; 1173 krb5_keyblock *session; /* session key used to encrypt */ 1174 /* ticket */ 1175 krb5_principal client; /* client name/realm, optional */ 1176 krb5_principal server; /* server name/realm, optional */ 1177 krb5_flags flags; /* ticket flags, optional */ 1178 krb5_ticket_times times; /* auth, start, end, renew_till, */ 1179 /* optional */ 1180 krb5_address **caddrs; /* array of ptrs to addresses */ 1181} krb5_cred_info; 1182 1183typedef struct _krb5_cred_enc_part { 1184 krb5_magic magic; 1185 krb5_int32 nonce; /* nonce, optional */ 1186 krb5_timestamp timestamp; /* client time */ 1187 krb5_int32 usec; /* microsecond portion of time */ 1188 krb5_address *s_address; /* sender address, optional */ 1189 krb5_address *r_address; /* recipient address, optional */ 1190 krb5_cred_info **ticket_info; 1191} krb5_cred_enc_part; 1192 1193typedef struct _krb5_cred { 1194 krb5_magic magic; 1195 krb5_ticket **tickets; /* tickets */ 1196 krb5_enc_data enc_part; /* encrypted part */ 1197 krb5_cred_enc_part *enc_part2; /* unencrypted version, if available*/ 1198} krb5_cred; 1199 1200/* Sandia password generation structures */ 1201typedef struct _passwd_phrase_element { 1202 krb5_magic magic; 1203 krb5_data *passwd; 1204 krb5_data *phrase; 1205} passwd_phrase_element; 1206 1207typedef struct _krb5_pwd_data { 1208 krb5_magic magic; 1209 int sequence_count; 1210 passwd_phrase_element **element; 1211} krb5_pwd_data; 1212 1213/* these need to be here so the typedefs are available for the prototypes */ 1214 1215/* 1216 * begin "safepriv.h" 1217 */ 1218 1219#define KRB5_AUTH_CONTEXT_DO_TIME 0x00000001 1220#define KRB5_AUTH_CONTEXT_RET_TIME 0x00000002 1221#define KRB5_AUTH_CONTEXT_DO_SEQUENCE 0x00000004 1222#define KRB5_AUTH_CONTEXT_RET_SEQUENCE 0x00000008 1223#define KRB5_AUTH_CONTEXT_PERMIT_ALL 0x00000010 1224#define KRB5_AUTH_CONTEXT_USE_SUBKEY 0x00000020 1225 1226typedef struct krb5_replay_data { 1227 krb5_timestamp timestamp; 1228 krb5_int32 usec; 1229 krb5_ui_4 seq; 1230} krb5_replay_data; 1231 1232/* flags for krb5_auth_con_genaddrs() */ 1233#define KRB5_AUTH_CONTEXT_GENERATE_LOCAL_ADDR 0x00000001 1234#define KRB5_AUTH_CONTEXT_GENERATE_REMOTE_ADDR 0x00000002 1235#define KRB5_AUTH_CONTEXT_GENERATE_LOCAL_FULL_ADDR 0x00000004 1236#define KRB5_AUTH_CONTEXT_GENERATE_REMOTE_FULL_ADDR 0x00000008 1237 1238/* type of function used as a callback to generate checksum data for 1239 * mk_req */ 1240 1241typedef krb5_error_code 1242(KRB5_CALLCONV * krb5_mk_req_checksum_func) (krb5_context, krb5_auth_context , void *, 1243 krb5_data **) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1244 1245/* 1246 * end "safepriv.h" 1247 */ 1248 1249 1250/* 1251 * begin "ccache.h" 1252 */ 1253 1254typedef krb5_pointer krb5_cc_cursor; /* cursor for sequential lookup */ 1255 1256struct _krb5_ccache; 1257typedef struct _krb5_ccache *krb5_ccache; 1258struct _krb5_cc_ops; 1259typedef struct _krb5_cc_ops krb5_cc_ops; 1260 1261/* 1262 * Cursor for iterating over all ccaches 1263 */ 1264struct _krb5_cccol_cursor; 1265typedef struct _krb5_cccol_cursor *krb5_cccol_cursor; 1266 1267/* for retrieve_cred */ 1268#define KRB5_TC_MATCH_TIMES 0x00000001 1269#define KRB5_TC_MATCH_IS_SKEY 0x00000002 1270#define KRB5_TC_MATCH_FLAGS 0x00000004 1271#define KRB5_TC_MATCH_TIMES_EXACT 0x00000008 1272#define KRB5_TC_MATCH_FLAGS_EXACT 0x00000010 1273#define KRB5_TC_MATCH_AUTHDATA 0x00000020 1274#define KRB5_TC_MATCH_SRV_NAMEONLY 0x00000040 1275#define KRB5_TC_MATCH_2ND_TKT 0x00000080 1276#define KRB5_TC_MATCH_KTYPE 0x00000100 1277#define KRB5_TC_SUPPORTED_KTYPES 0x00000200 1278 1279/* for set_flags and other functions */ 1280#define KRB5_TC_OPENCLOSE 0x00000001 1281#define KRB5_TC_NOTICKET 0x00000002 1282 1283const char * KRB5_CALLCONV 1284krb5_cc_get_name (krb5_context context, krb5_ccache cache) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1285 1286krb5_error_code KRB5_CALLCONV 1287krb5_cc_gen_new (krb5_context context, krb5_ccache *cache) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1288 1289krb5_error_code KRB5_CALLCONV 1290krb5_cc_initialize(krb5_context context, krb5_ccache cache, 1291 krb5_principal principal) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1292 1293krb5_error_code KRB5_CALLCONV 1294krb5_cc_destroy (krb5_context context, krb5_ccache cache) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1295 1296krb5_error_code KRB5_CALLCONV 1297krb5_cc_close (krb5_context context, krb5_ccache cache) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1298 1299krb5_error_code KRB5_CALLCONV 1300krb5_cc_store_cred (krb5_context context, krb5_ccache cache, 1301 krb5_creds *creds) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1302 1303krb5_error_code KRB5_CALLCONV 1304krb5_cc_retrieve_cred (krb5_context context, krb5_ccache cache, 1305 krb5_flags flags, krb5_creds *mcreds, 1306 krb5_creds *creds) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1307 1308krb5_error_code KRB5_CALLCONV 1309krb5_cc_get_principal (krb5_context context, krb5_ccache cache, 1310 krb5_principal *principal) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1311 1312krb5_error_code KRB5_CALLCONV 1313krb5_cc_start_seq_get (krb5_context context, krb5_ccache cache, 1314 krb5_cc_cursor *cursor) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1315 1316krb5_error_code KRB5_CALLCONV 1317krb5_cc_next_cred (krb5_context context, krb5_ccache cache, 1318 krb5_cc_cursor *cursor, krb5_creds *creds) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1319 1320krb5_error_code KRB5_CALLCONV 1321krb5_cc_end_seq_get (krb5_context context, krb5_ccache cache, 1322 krb5_cc_cursor *cursor) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1323 1324krb5_error_code KRB5_CALLCONV 1325krb5_cc_remove_cred (krb5_context context, krb5_ccache cache, krb5_flags flags, 1326 krb5_creds *creds) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1327 1328krb5_error_code KRB5_CALLCONV 1329krb5_cc_set_flags (krb5_context context, krb5_ccache cache, krb5_flags flags) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1330 1331krb5_error_code KRB5_CALLCONV 1332krb5_cc_get_flags (krb5_context context, krb5_ccache cache, krb5_flags *flags) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1333 1334const char * KRB5_CALLCONV 1335krb5_cc_get_type (krb5_context context, krb5_ccache cache) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1336 1337krb5_error_code KRB5_CALLCONV 1338krb5_cc_move (krb5_context context, krb5_ccache src, krb5_ccache dst) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1339 1340krb5_error_code KRB5_CALLCONV 1341krb5_cc_last_change_time ( 1342 krb5_context context, 1343 krb5_ccache ccache, 1344 krb5_timestamp *change_time) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1345 1346krb5_error_code KRB5_CALLCONV 1347krb5_cc_lock (krb5_context context, krb5_ccache ccache) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1348 1349krb5_error_code KRB5_CALLCONV 1350krb5_cc_unlock (krb5_context context, krb5_ccache ccache) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1351 1352krb5_error_code KRB5_CALLCONV 1353krb5_cc_cache_match (krb5_context context, 1354 krb5_principal client, 1355 krb5_ccache *id) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1356 1357krb5_error_code KRB5_CALLCONV 1358krb5_cccol_cursor_new(krb5_context context, krb5_cccol_cursor *cursor) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1359 1360krb5_error_code KRB5_CALLCONV 1361krb5_cccol_cursor_next( 1362 krb5_context context, 1363 krb5_cccol_cursor cursor, 1364 krb5_ccache *ccache) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1365 1366krb5_error_code KRB5_CALLCONV 1367krb5_cccol_cursor_free(krb5_context context, krb5_cccol_cursor *cursor) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1368 1369krb5_error_code KRB5_CALLCONV 1370krb5_cccol_last_change_time(krb5_context context, krb5_timestamp *change_time) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1371 1372krb5_error_code KRB5_CALLCONV 1373krb5_cccol_lock(krb5_context context) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1374 1375krb5_error_code KRB5_CALLCONV 1376krb5_cccol_unlock(krb5_context context) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1377 1378krb5_error_code KRB5_CALLCONV 1379krb5_cc_new_unique( 1380 krb5_context context, 1381 const char *type, 1382 const char *hint, 1383 krb5_ccache *id) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1384 1385/* 1386 * end "ccache.h" 1387 */ 1388 1389/* 1390 * begin "rcache.h" 1391 */ 1392 1393struct krb5_rc_st; 1394typedef struct krb5_rc_st *krb5_rcache; 1395 1396/* 1397 * end "rcache.h" 1398 */ 1399 1400/* 1401 * begin "keytab.h" 1402 */ 1403 1404 1405/* XXX */ 1406#define MAX_KEYTAB_NAME_LEN 1100 /* Long enough for MAXPATHLEN + some extra */ 1407 1408typedef krb5_pointer krb5_kt_cursor; /* XXX */ 1409 1410typedef struct krb5_keytab_entry_st { 1411 krb5_magic magic; 1412 krb5_principal principal; /* principal of this key */ 1413 krb5_timestamp timestamp; /* time entry written to keytable */ 1414 krb5_kvno vno; /* key version number */ 1415 krb5_keyblock key; /* the secret key */ 1416} krb5_keytab_entry; 1417 1418struct _krb5_kt; 1419typedef struct _krb5_kt *krb5_keytab; 1420 1421const char * KRB5_CALLCONV 1422krb5_kt_get_type (krb5_context, krb5_keytab keytab) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1423krb5_error_code KRB5_CALLCONV 1424krb5_kt_get_name(krb5_context context, krb5_keytab keytab, char *name, 1425 unsigned int namelen) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1426krb5_error_code KRB5_CALLCONV 1427krb5_kt_close(krb5_context context, krb5_keytab keytab) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1428krb5_error_code KRB5_CALLCONV 1429krb5_kt_get_entry(krb5_context context, krb5_keytab keytab, 1430 krb5_const_principal principal, krb5_kvno vno, 1431 krb5_enctype enctype, krb5_keytab_entry *entry) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1432krb5_error_code KRB5_CALLCONV 1433krb5_kt_start_seq_get(krb5_context context, krb5_keytab keytab, 1434 krb5_kt_cursor *cursor) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1435krb5_error_code KRB5_CALLCONV 1436krb5_kt_next_entry(krb5_context context, krb5_keytab keytab, 1437 krb5_keytab_entry *entry, krb5_kt_cursor *cursor) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1438krb5_error_code KRB5_CALLCONV 1439krb5_kt_end_seq_get(krb5_context context, krb5_keytab keytab, 1440 krb5_kt_cursor *cursor) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1441 1442/* 1443 * end "keytab.h" 1444 */ 1445 1446/* 1447 * begin "func-proto.h" 1448 */ 1449 1450krb5_error_code KRB5_CALLCONV krb5_init_context 1451 (krb5_context *) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1452krb5_error_code KRB5_CALLCONV krb5_init_secure_context 1453 (krb5_context *) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1454void KRB5_CALLCONV krb5_free_context 1455 (krb5_context) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1456krb5_error_code KRB5_CALLCONV krb5_copy_context 1457 (krb5_context, krb5_context *) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1458 1459krb5_error_code KRB5_CALLCONV 1460krb5_set_default_tgs_enctypes 1461 (krb5_context, 1462 const krb5_enctype *) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1463 1464krb5_error_code KRB5_CALLCONV krb5_get_permitted_enctypes 1465 (krb5_context, krb5_enctype **) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1466 1467krb5_boolean KRB5_CALLCONV krb5_is_thread_safe(void) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1468 1469/* libkrb.spec */ 1470 1471krb5_error_code KRB5_CALLCONV 1472krb5_server_decrypt_ticket_keytab 1473 (krb5_context context, 1474 const krb5_keytab kt, 1475 krb5_ticket *ticket) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1476 1477void KRB5_CALLCONV krb5_free_tgt_creds 1478 (krb5_context, 1479 krb5_creds **) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); /* XXX too hard to do with const */ 1480 1481#define KRB5_GC_USER_USER 1 /* want user-user ticket */ 1482#define KRB5_GC_CACHED 2 /* want cached ticket only */ 1483 1484krb5_error_code KRB5_CALLCONV krb5_get_credentials 1485 (krb5_context, 1486 krb5_flags, 1487 krb5_ccache, 1488 krb5_creds *, 1489 krb5_creds **) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1490krb5_error_code KRB5_CALLCONV krb5_get_credentials_validate 1491 (krb5_context, 1492 krb5_flags, 1493 krb5_ccache, 1494 krb5_creds *, 1495 krb5_creds **) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1496krb5_error_code KRB5_CALLCONV krb5_get_credentials_renew 1497 (krb5_context, 1498 krb5_flags, 1499 krb5_ccache, 1500 krb5_creds *, 1501 krb5_creds **) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1502krb5_error_code KRB5_CALLCONV krb5_mk_req 1503 (krb5_context, 1504 krb5_auth_context *, 1505 krb5_flags, 1506 char *, 1507 char *, 1508 krb5_data *, 1509 krb5_ccache, 1510 krb5_data * ) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1511krb5_error_code KRB5_CALLCONV krb5_mk_req_extended 1512 (krb5_context, 1513 krb5_auth_context *, 1514 krb5_flags, 1515 krb5_data *, 1516 krb5_creds *, 1517 krb5_data * ) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1518krb5_error_code KRB5_CALLCONV krb5_mk_rep 1519 (krb5_context, 1520 krb5_auth_context, 1521 krb5_data *) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1522krb5_error_code KRB5_CALLCONV krb5_rd_rep 1523 (krb5_context, 1524 krb5_auth_context, 1525 const krb5_data *, 1526 krb5_ap_rep_enc_part **) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1527krb5_error_code KRB5_CALLCONV krb5_mk_error 1528 (krb5_context, 1529 const krb5_error *, 1530 krb5_data * ) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1531krb5_error_code KRB5_CALLCONV krb5_rd_error 1532 (krb5_context, 1533 const krb5_data *, 1534 krb5_error ** ) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1535krb5_error_code KRB5_CALLCONV krb5_rd_safe 1536 (krb5_context, 1537 krb5_auth_context, 1538 const krb5_data *, 1539 krb5_data *, 1540 krb5_replay_data *) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1541krb5_error_code KRB5_CALLCONV krb5_rd_priv 1542 (krb5_context, 1543 krb5_auth_context, 1544 const krb5_data *, 1545 krb5_data *, 1546 krb5_replay_data *) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1547krb5_error_code KRB5_CALLCONV krb5_parse_name 1548 (krb5_context, 1549 const char *, 1550 krb5_principal * ) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1551#define KRB5_PRINCIPAL_PARSE_NO_REALM 0x1 1552#define KRB5_PRINCIPAL_PARSE_REQUIRE_REALM 0x2 1553#define KRB5_PRINCIPAL_PARSE_ENTERPRISE 0x4 1554krb5_error_code KRB5_CALLCONV krb5_parse_name_flags 1555 (krb5_context, 1556 const char *, 1557 int, 1558 krb5_principal * ) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1559krb5_error_code KRB5_CALLCONV krb5_unparse_name 1560 (krb5_context, 1561 krb5_const_principal, 1562 char ** ) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1563krb5_error_code KRB5_CALLCONV krb5_unparse_name_ext 1564 (krb5_context, 1565 krb5_const_principal, 1566 char **, 1567 unsigned int *) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1568#define KRB5_PRINCIPAL_UNPARSE_SHORT 0x1 1569#define KRB5_PRINCIPAL_UNPARSE_NO_REALM 0x2 1570#define KRB5_PRINCIPAL_UNPARSE_DISPLAY 0x4 1571krb5_error_code KRB5_CALLCONV krb5_unparse_name_flags 1572 (krb5_context, 1573 krb5_const_principal, 1574 int, 1575 char **) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1576krb5_error_code KRB5_CALLCONV krb5_unparse_name_flags_ext 1577 (krb5_context, 1578 krb5_const_principal, 1579 int, 1580 char **, 1581 unsigned int *) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1582 1583krb5_error_code KRB5_CALLCONV krb5_set_principal_realm 1584 (krb5_context, krb5_principal, const char *) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1585 1586krb5_boolean KRB5_CALLCONV_WRONG krb5_address_search 1587 (krb5_context, 1588 const krb5_address *, 1589 krb5_address * const *) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1590krb5_boolean KRB5_CALLCONV krb5_address_compare 1591 (krb5_context, 1592 const krb5_address *, 1593 const krb5_address *) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1594int KRB5_CALLCONV krb5_address_order 1595 (krb5_context, 1596 const krb5_address *, 1597 const krb5_address *) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1598krb5_boolean KRB5_CALLCONV krb5_realm_compare 1599 (krb5_context, 1600 krb5_const_principal, 1601 krb5_const_principal) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1602krb5_boolean KRB5_CALLCONV krb5_principal_compare 1603 (krb5_context, 1604 krb5_const_principal, 1605 krb5_const_principal) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1606krb5_error_code KRB5_CALLCONV krb5_init_keyblock 1607 (krb5_context, krb5_enctype enctype, 1608 size_t length, krb5_keyblock **out) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1609 /* Initialize a new keyblock and allocate storage 1610 * for the contents of the key, which will be freed along 1611 * with the keyblock when krb5_free_keyblock is called. 1612 * It is legal to pass in a length of 0, in which 1613 * case contents are left unallocated. 1614 */ 1615krb5_error_code KRB5_CALLCONV krb5_copy_keyblock 1616 (krb5_context, 1617 const krb5_keyblock *, 1618 krb5_keyblock **) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1619krb5_error_code KRB5_CALLCONV krb5_copy_keyblock_contents 1620 (krb5_context, 1621 const krb5_keyblock *, 1622 krb5_keyblock *) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1623krb5_error_code KRB5_CALLCONV krb5_copy_creds 1624 (krb5_context, 1625 const krb5_creds *, 1626 krb5_creds **) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1627krb5_error_code KRB5_CALLCONV krb5_copy_data 1628 (krb5_context, 1629 const krb5_data *, 1630 krb5_data **) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1631krb5_error_code KRB5_CALLCONV krb5_copy_principal 1632 (krb5_context, 1633 krb5_const_principal, 1634 krb5_principal *) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1635krb5_error_code KRB5_CALLCONV krb5_copy_addresses 1636 (krb5_context, 1637 krb5_address * const *, 1638 krb5_address ***) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1639krb5_error_code KRB5_CALLCONV krb5_copy_ticket 1640 (krb5_context, 1641 const krb5_ticket *, 1642 krb5_ticket **) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1643krb5_error_code KRB5_CALLCONV krb5_copy_authdata 1644 (krb5_context, 1645 krb5_authdata * const *, 1646 krb5_authdata ***) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1647krb5_error_code KRB5_CALLCONV krb5_copy_authenticator 1648 (krb5_context, 1649 const krb5_authenticator *, 1650 krb5_authenticator **) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1651krb5_error_code KRB5_CALLCONV krb5_copy_checksum 1652 (krb5_context, 1653 const krb5_checksum *, 1654 krb5_checksum **) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1655krb5_error_code KRB5_CALLCONV krb5_get_server_rcache 1656 (krb5_context, 1657 const krb5_data *, krb5_rcache *) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1658krb5_error_code KRB5_CALLCONV_C krb5_build_principal_ext 1659 (krb5_context, krb5_principal *, unsigned int, const char *, ...) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1660krb5_error_code KRB5_CALLCONV_C krb5_build_principal 1661 (krb5_context, krb5_principal *, unsigned int, const char *, ...) 1662#if __GNUC__ >= 4 1663 __attribute__ ((sentinel)) 1664#endif 1665 ; 1666#if KRB5_DEPRECATED 1667KRB5_ATTR_DEPRECATED krb5_error_code KRB5_CALLCONV krb5_build_principal_va 1668 (krb5_context, 1669 krb5_principal, unsigned int, const char *, va_list) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1670#endif 1671 1672/* Version of krb5_build_principal_va which allocates krb5_principal_data */ 1673krb5_error_code KRB5_CALLCONV krb5_build_principal_alloc_va 1674 (krb5_context, krb5_principal *, unsigned int, const char *, va_list) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1675 1676krb5_error_code KRB5_CALLCONV krb5_425_conv_principal 1677 (krb5_context, 1678 const char *name, 1679 const char *instance, const char *realm, 1680 krb5_principal *princ) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1681 1682krb5_error_code KRB5_CALLCONV krb5_524_conv_principal 1683 (krb5_context context, krb5_const_principal princ, 1684 char *name, char *inst, char *realm) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1685 1686struct credentials; 1687int KRB5_CALLCONV krb5_524_convert_creds 1688 (krb5_context context, krb5_creds *v5creds, 1689 struct credentials *v4creds) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1690#if KRB5_DEPRECATED 1691#define krb524_convert_creds_kdc krb5_524_convert_creds 1692#define krb524_init_ets(x) (0) 1693#endif 1694 1695/* libkt.spec */ 1696krb5_error_code KRB5_CALLCONV krb5_kt_resolve 1697 (krb5_context, 1698 const char *, 1699 krb5_keytab * ) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1700krb5_error_code KRB5_CALLCONV krb5_kt_default_name 1701 (krb5_context, 1702 char *, 1703 int ) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1704krb5_error_code KRB5_CALLCONV krb5_kt_default 1705 (krb5_context, 1706 krb5_keytab * ) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1707krb5_error_code KRB5_CALLCONV krb5_free_keytab_entry_contents 1708 (krb5_context, 1709 krb5_keytab_entry * ) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1710/* remove and add are functions, so that they can return NOWRITE 1711 if not a writable keytab */ 1712krb5_error_code KRB5_CALLCONV krb5_kt_remove_entry 1713 (krb5_context, 1714 krb5_keytab, 1715 krb5_keytab_entry * ) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1716krb5_error_code KRB5_CALLCONV krb5_kt_add_entry 1717 (krb5_context, 1718 krb5_keytab, 1719 krb5_keytab_entry * ) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1720krb5_error_code KRB5_CALLCONV_WRONG krb5_principal2salt 1721 (krb5_context, 1722 krb5_const_principal, krb5_data *) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1723/* librc.spec--see rcache.h */ 1724 1725/* libcc.spec */ 1726krb5_error_code KRB5_CALLCONV krb5_cc_resolve 1727 (krb5_context, 1728 const char *, 1729 krb5_ccache * ) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1730const char * KRB5_CALLCONV krb5_cc_default_name 1731 (krb5_context) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1732krb5_error_code KRB5_CALLCONV krb5_cc_set_default_name 1733 (krb5_context, const char *) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1734krb5_error_code KRB5_CALLCONV krb5_cc_default 1735 (krb5_context, 1736 krb5_ccache *) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1737 1738krb5_error_code KRB5_CALLCONV krb5_cc_copy_creds 1739 (krb5_context context, 1740 krb5_ccache incc, 1741 krb5_ccache outcc) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1742 1743krb5_error_code KRB5_CALLCONV 1744krb5_cc_get_config(krb5_context, krb5_ccache, 1745 krb5_const_principal, 1746 const char *, krb5_data *) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1747 1748krb5_error_code KRB5_CALLCONV 1749krb5_cc_set_config(krb5_context, krb5_ccache, 1750 krb5_const_principal, 1751 const char *, krb5_data *) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1752 1753krb5_boolean KRB5_CALLCONV 1754krb5_is_config_principal(krb5_context, 1755 krb5_const_principal) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1756 1757/* krb5_free.c */ 1758void KRB5_CALLCONV krb5_free_principal 1759 (krb5_context, krb5_principal ) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1760void KRB5_CALLCONV krb5_free_authenticator 1761 (krb5_context, krb5_authenticator * ) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1762void KRB5_CALLCONV krb5_free_addresses 1763 (krb5_context, krb5_address ** ) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1764void KRB5_CALLCONV krb5_free_authdata 1765 (krb5_context, krb5_authdata ** ) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1766void KRB5_CALLCONV krb5_free_ticket 1767 (krb5_context, krb5_ticket * ) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1768void KRB5_CALLCONV krb5_free_error 1769 (krb5_context, krb5_error * ) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1770void KRB5_CALLCONV krb5_free_creds 1771 (krb5_context, krb5_creds *) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1772void KRB5_CALLCONV krb5_free_cred_contents 1773 (krb5_context, krb5_creds *) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1774void KRB5_CALLCONV krb5_free_checksum 1775 (krb5_context, krb5_checksum *) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1776void KRB5_CALLCONV krb5_free_checksum_contents 1777 (krb5_context, krb5_checksum *) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1778void KRB5_CALLCONV krb5_free_keyblock 1779 (krb5_context, krb5_keyblock *) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1780void KRB5_CALLCONV krb5_free_keyblock_contents 1781 (krb5_context, krb5_keyblock *) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1782void KRB5_CALLCONV krb5_free_ap_rep_enc_part 1783 (krb5_context, krb5_ap_rep_enc_part *) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1784void KRB5_CALLCONV krb5_free_data 1785 (krb5_context, krb5_data *) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1786void KRB5_CALLCONV krb5_free_data_contents 1787 (krb5_context, krb5_data *) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1788void KRB5_CALLCONV krb5_free_unparsed_name 1789 (krb5_context, char *) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1790void KRB5_CALLCONV krb5_free_cksumtypes 1791 (krb5_context, krb5_cksumtype *) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1792 1793/* From krb5/os but needed but by the outside world */ 1794krb5_error_code KRB5_CALLCONV krb5_us_timeofday 1795 (krb5_context, 1796 krb5_timestamp *, 1797 krb5_int32 * ) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1798krb5_error_code KRB5_CALLCONV krb5_timeofday 1799 (krb5_context, 1800 krb5_timestamp * ) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1801 /* get all the addresses of this host */ 1802krb5_error_code KRB5_CALLCONV krb5_os_localaddr 1803 (krb5_context, 1804 krb5_address ***) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1805krb5_error_code KRB5_CALLCONV krb5_get_default_realm 1806 (krb5_context, 1807 char ** ) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1808krb5_error_code KRB5_CALLCONV krb5_set_default_realm 1809 (krb5_context, 1810 const char * ) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1811void KRB5_CALLCONV krb5_free_default_realm 1812 (krb5_context, 1813 char * ) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1814krb5_error_code KRB5_CALLCONV krb5_sname_to_principal 1815 (krb5_context, 1816 const char *, 1817 const char *, 1818 krb5_int32, 1819 krb5_principal *) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1820krb5_error_code KRB5_CALLCONV 1821krb5_change_password 1822 (krb5_context context, krb5_creds *creds, char *newpw, 1823 int *result_code, krb5_data *result_code_string, 1824 krb5_data *result_string) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1825krb5_error_code KRB5_CALLCONV 1826krb5_set_password 1827 (krb5_context context, krb5_creds *creds, char *newpw, krb5_principal change_password_for, 1828 int *result_code, krb5_data *result_code_string, krb5_data *result_string) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1829krb5_error_code KRB5_CALLCONV 1830krb5_set_password_using_ccache 1831 (krb5_context context, krb5_ccache ccache, char *newpw, krb5_principal change_password_for, 1832 int *result_code, krb5_data *result_code_string, krb5_data *result_string) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1833 1834krb5_error_code KRB5_CALLCONV 1835krb5_get_profile 1836 (krb5_context, struct _profile_t * /* profile_t */ *) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1837 1838#if KRB5_DEPRECATED 1839KRB5_ATTR_DEPRECATED krb5_error_code KRB5_CALLCONV krb5_get_in_tkt 1840 (krb5_context, 1841 krb5_flags, 1842 krb5_address * const *, 1843 krb5_enctype *, 1844 krb5_preauthtype *, 1845 krb5_error_code ( * )(krb5_context, 1846 krb5_enctype, 1847 krb5_data *, 1848 krb5_const_pointer, 1849 krb5_keyblock **), 1850 krb5_const_pointer, 1851 krb5_error_code ( * )(krb5_context, 1852 const krb5_keyblock *, 1853 krb5_const_pointer, 1854 krb5_kdc_rep * ), 1855 krb5_const_pointer, 1856 krb5_creds *, 1857 krb5_ccache, 1858 krb5_kdc_rep ** ) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1859 1860KRB5_ATTR_DEPRECATED krb5_error_code KRB5_CALLCONV krb5_get_in_tkt_with_password 1861 (krb5_context, 1862 krb5_flags, 1863 krb5_address * const *, 1864 krb5_enctype *, 1865 krb5_preauthtype *, 1866 const char *, 1867 krb5_ccache, 1868 krb5_creds *, 1869 krb5_kdc_rep ** ) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1870 1871KRB5_ATTR_DEPRECATED krb5_error_code KRB5_CALLCONV krb5_get_in_tkt_with_skey 1872 (krb5_context, 1873 krb5_flags, 1874 krb5_address * const *, 1875 krb5_enctype *, 1876 krb5_preauthtype *, 1877 const krb5_keyblock *, 1878 krb5_ccache, 1879 krb5_creds *, 1880 krb5_kdc_rep ** ) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1881 1882KRB5_ATTR_DEPRECATED krb5_error_code KRB5_CALLCONV krb5_get_in_tkt_with_keytab 1883 (krb5_context, 1884 krb5_flags, 1885 krb5_address * const *, 1886 krb5_enctype *, 1887 krb5_preauthtype *, 1888 krb5_keytab, 1889 krb5_ccache, 1890 krb5_creds *, 1891 krb5_kdc_rep ** ) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1892#endif /* KRB5_DEPRECATED */ 1893 1894krb5_error_code KRB5_CALLCONV krb5_rd_req 1895 (krb5_context, 1896 krb5_auth_context *, 1897 const krb5_data *, 1898 krb5_const_principal, 1899 krb5_keytab, 1900 krb5_flags *, 1901 krb5_ticket **) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1902 1903krb5_error_code KRB5_CALLCONV krb5_kt_read_service_key 1904 (krb5_context, 1905 krb5_pointer, 1906 krb5_principal, 1907 krb5_kvno, 1908 krb5_enctype, 1909 krb5_keyblock **) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1910krb5_error_code KRB5_CALLCONV krb5_mk_safe 1911 (krb5_context, 1912 krb5_auth_context, 1913 const krb5_data *, 1914 krb5_data *, 1915 krb5_replay_data *) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1916krb5_error_code KRB5_CALLCONV krb5_mk_priv 1917 (krb5_context, 1918 krb5_auth_context, 1919 const krb5_data *, 1920 krb5_data *, 1921 krb5_replay_data *) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1922 1923krb5_error_code KRB5_CALLCONV krb5_sendauth 1924 (krb5_context, 1925 krb5_auth_context *, 1926 krb5_pointer, 1927 char *, 1928 krb5_principal, 1929 krb5_principal, 1930 krb5_flags, 1931 krb5_data *, 1932 krb5_creds *, 1933 krb5_ccache, 1934 krb5_error **, 1935 krb5_ap_rep_enc_part **, 1936 krb5_creds **) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1937 1938krb5_error_code KRB5_CALLCONV krb5_recvauth 1939 (krb5_context, 1940 krb5_auth_context *, 1941 krb5_pointer, 1942 char *, 1943 krb5_principal, 1944 krb5_int32, 1945 krb5_keytab, 1946 krb5_ticket **) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1947krb5_error_code KRB5_CALLCONV krb5_recvauth_version 1948 (krb5_context, 1949 krb5_auth_context *, 1950 krb5_pointer, 1951 krb5_principal, 1952 krb5_int32, 1953 krb5_keytab, 1954 krb5_ticket **, 1955 krb5_data *) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1956 1957krb5_error_code KRB5_CALLCONV krb5_mk_ncred 1958 (krb5_context, 1959 krb5_auth_context, 1960 krb5_creds **, 1961 krb5_data **, 1962 krb5_replay_data *) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1963 1964krb5_error_code KRB5_CALLCONV krb5_mk_1cred 1965 (krb5_context, 1966 krb5_auth_context, 1967 krb5_creds *, 1968 krb5_data **, 1969 krb5_replay_data *) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1970 1971krb5_error_code KRB5_CALLCONV krb5_rd_cred 1972 (krb5_context, 1973 krb5_auth_context, 1974 krb5_data *, 1975 krb5_creds ***, 1976 krb5_replay_data *) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1977 1978krb5_error_code KRB5_CALLCONV krb5_fwd_tgt_creds 1979 (krb5_context, 1980 krb5_auth_context, 1981 char *, 1982 krb5_principal, 1983 krb5_principal, 1984 krb5_ccache, 1985 int forwardable, 1986 krb5_data *) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1987 1988krb5_error_code KRB5_CALLCONV krb5_auth_con_init 1989 (krb5_context, 1990 krb5_auth_context *) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1991 1992krb5_error_code KRB5_CALLCONV krb5_auth_con_free 1993 (krb5_context, 1994 krb5_auth_context) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 1995 1996krb5_error_code KRB5_CALLCONV krb5_auth_con_setflags 1997 (krb5_context, 1998 krb5_auth_context, 1999 krb5_int32) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 2000 2001krb5_error_code KRB5_CALLCONV krb5_auth_con_getflags 2002 (krb5_context, 2003 krb5_auth_context, 2004 krb5_int32 *) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 2005 2006krb5_error_code KRB5_CALLCONV 2007krb5_auth_con_set_checksum_func (krb5_context, krb5_auth_context, 2008 krb5_mk_req_checksum_func, void *) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 2009 2010krb5_error_code KRB5_CALLCONV 2011krb5_auth_con_get_checksum_func( krb5_context, krb5_auth_context, 2012 krb5_mk_req_checksum_func *, void **) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 2013 2014krb5_error_code KRB5_CALLCONV_WRONG krb5_auth_con_setaddrs 2015 (krb5_context, 2016 krb5_auth_context, 2017 krb5_address *, 2018 krb5_address *) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 2019 2020krb5_error_code KRB5_CALLCONV krb5_auth_con_getaddrs 2021 (krb5_context, 2022 krb5_auth_context, 2023 krb5_address **, 2024 krb5_address **) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 2025 2026krb5_error_code KRB5_CALLCONV krb5_auth_con_setports 2027 (krb5_context, 2028 krb5_auth_context, 2029 krb5_address *, 2030 krb5_address *) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 2031 2032krb5_error_code KRB5_CALLCONV krb5_auth_con_setuseruserkey 2033 (krb5_context, 2034 krb5_auth_context, 2035 krb5_keyblock *) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 2036 2037krb5_error_code KRB5_CALLCONV krb5_auth_con_getkey 2038 (krb5_context, 2039 krb5_auth_context, 2040 krb5_keyblock **) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 2041 2042krb5_error_code KRB5_CALLCONV krb5_auth_con_getsendsubkey( 2043 krb5_context, krb5_auth_context, krb5_keyblock **) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 2044 2045krb5_error_code KRB5_CALLCONV krb5_auth_con_getrecvsubkey( 2046 krb5_context, krb5_auth_context, krb5_keyblock **) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 2047 2048krb5_error_code KRB5_CALLCONV krb5_auth_con_setsendsubkey( 2049 krb5_context, krb5_auth_context, krb5_keyblock *) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 2050 2051krb5_error_code KRB5_CALLCONV krb5_auth_con_setrecvsubkey( 2052 krb5_context, krb5_auth_context, krb5_keyblock *) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 2053 2054#if KRB5_DEPRECATED 2055KRB5_ATTR_DEPRECATED krb5_error_code KRB5_CALLCONV krb5_auth_con_getlocalsubkey 2056 (krb5_context, 2057 krb5_auth_context, 2058 krb5_keyblock **) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 2059 2060KRB5_ATTR_DEPRECATED krb5_error_code KRB5_CALLCONV krb5_auth_con_getremotesubkey 2061 (krb5_context, 2062 krb5_auth_context, 2063 krb5_keyblock **) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 2064#endif 2065 2066krb5_error_code KRB5_CALLCONV krb5_auth_con_getlocalseqnumber 2067 (krb5_context, 2068 krb5_auth_context, 2069 krb5_int32 *) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 2070 2071krb5_error_code KRB5_CALLCONV krb5_auth_con_getremoteseqnumber 2072 (krb5_context, 2073 krb5_auth_context, 2074 krb5_int32 *) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 2075 2076#if KRB5_DEPRECATED 2077KRB5_ATTR_DEPRECATED krb5_error_code KRB5_CALLCONV krb5_auth_con_initivector 2078 (krb5_context, 2079 krb5_auth_context) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 2080#endif 2081 2082krb5_error_code KRB5_CALLCONV krb5_auth_con_setrcache 2083 (krb5_context, 2084 krb5_auth_context, 2085 krb5_rcache) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 2086 2087krb5_error_code KRB5_CALLCONV_WRONG krb5_auth_con_getrcache 2088 (krb5_context, 2089 krb5_auth_context, 2090 krb5_rcache *) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 2091 2092krb5_error_code KRB5_CALLCONV krb5_auth_con_getauthenticator 2093 (krb5_context, 2094 krb5_auth_context, 2095 krb5_authenticator **) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 2096 2097#define KRB5_REALM_BRANCH_CHAR '.' 2098 2099/* 2100 * end "func-proto.h" 2101 */ 2102 2103/* 2104 * begin stuff from libos.h 2105 */ 2106 2107krb5_error_code KRB5_CALLCONV krb5_read_password 2108 (krb5_context, 2109 const char *, 2110 const char *, 2111 char *, 2112 unsigned int * ) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 2113krb5_error_code KRB5_CALLCONV krb5_aname_to_localname 2114 (krb5_context, 2115 krb5_const_principal, 2116 int, 2117 char * ) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 2118krb5_error_code KRB5_CALLCONV krb5_get_host_realm 2119 (krb5_context, 2120 const char *, 2121 char *** ) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 2122krb5_error_code KRB5_CALLCONV krb5_get_fallback_host_realm 2123 (krb5_context, 2124 krb5_data *, 2125 char *** ) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 2126krb5_error_code KRB5_CALLCONV krb5_free_host_realm 2127 (krb5_context, 2128 char * const * ) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 2129krb5_boolean KRB5_CALLCONV krb5_kuserok 2130 (krb5_context, 2131 krb5_principal, const char *) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 2132krb5_error_code KRB5_CALLCONV krb5_auth_con_genaddrs 2133 (krb5_context, 2134 krb5_auth_context, 2135 int, int) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 2136krb5_error_code KRB5_CALLCONV krb5_set_real_time 2137 (krb5_context, krb5_timestamp, krb5_int32) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 2138 2139krb5_error_code KRB5_CALLCONV krb5_get_time_offsets 2140 (krb5_context, krb5_timestamp *, krb5_int32 *) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 2141 2142/* str_conv.c */ 2143krb5_error_code KRB5_CALLCONV krb5_string_to_enctype 2144 (char *, krb5_enctype *) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 2145krb5_error_code KRB5_CALLCONV krb5_string_to_salttype 2146 (char *, krb5_int32 *) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 2147krb5_error_code KRB5_CALLCONV krb5_string_to_cksumtype 2148 (char *, krb5_cksumtype *) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 2149krb5_error_code KRB5_CALLCONV krb5_string_to_timestamp 2150 (char *, krb5_timestamp *) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 2151krb5_error_code KRB5_CALLCONV krb5_string_to_deltat 2152 (char *, krb5_deltat *) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 2153krb5_error_code KRB5_CALLCONV krb5_enctype_to_string 2154 (krb5_enctype, char *, size_t) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 2155krb5_error_code KRB5_CALLCONV krb5_salttype_to_string 2156 (krb5_int32, char *, size_t) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 2157krb5_error_code KRB5_CALLCONV krb5_cksumtype_to_string 2158 (krb5_cksumtype, char *, size_t) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 2159krb5_error_code KRB5_CALLCONV krb5_timestamp_to_string 2160 (krb5_timestamp, char *, size_t) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 2161krb5_error_code KRB5_CALLCONV krb5_timestamp_to_sfstring 2162 (krb5_timestamp, char *, size_t, char *) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 2163krb5_error_code KRB5_CALLCONV krb5_deltat_to_string 2164 (krb5_deltat, char *, size_t) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 2165 2166 2167 2168/* The name of the Kerberos ticket granting service... and its size */ 2169#define KRB5_TGS_NAME "krbtgt" 2170#define KRB5_TGS_NAME_SIZE 6 2171 2172/* flags for recvauth */ 2173#define KRB5_RECVAUTH_SKIP_VERSION 0x0001 2174#define KRB5_RECVAUTH_BADAUTHVERS 0x0002 2175/* initial ticket api functions */ 2176 2177typedef struct _krb5_prompt { 2178 char *prompt; 2179 int hidden; 2180 krb5_data *reply; 2181} krb5_prompt; 2182 2183typedef krb5_error_code (KRB5_CALLCONV *krb5_prompter_fct)(krb5_context context, 2184 void *data, 2185 const char *name, 2186 const char *banner, 2187 int num_prompts, 2188 krb5_prompt prompts[]) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 2189 2190 2191krb5_error_code KRB5_CALLCONV 2192krb5_prompter_posix (krb5_context context, 2193 void *data, 2194 const char *name, 2195 const char *banner, 2196 int num_prompts, 2197 krb5_prompt prompts[]) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 2198 2199typedef struct _krb5_get_init_creds_opt { 2200 krb5_flags flags; 2201 krb5_deltat tkt_life; 2202 krb5_deltat renew_life; 2203 int forwardable; 2204 int proxiable; 2205 krb5_enctype *etype_list; 2206 int etype_list_length; 2207 krb5_address **address_list; 2208 krb5_preauthtype *preauth_list; 2209 int preauth_list_length; 2210 krb5_data *salt; 2211} krb5_get_init_creds_opt; 2212 2213#define KRB5_GET_INIT_CREDS_OPT_TKT_LIFE 0x0001 2214#define KRB5_GET_INIT_CREDS_OPT_RENEW_LIFE 0x0002 2215#define KRB5_GET_INIT_CREDS_OPT_FORWARDABLE 0x0004 2216#define KRB5_GET_INIT_CREDS_OPT_PROXIABLE 0x0008 2217#define KRB5_GET_INIT_CREDS_OPT_ETYPE_LIST 0x0010 2218#define KRB5_GET_INIT_CREDS_OPT_ADDRESS_LIST 0x0020 2219#define KRB5_GET_INIT_CREDS_OPT_PREAUTH_LIST 0x0040 2220#define KRB5_GET_INIT_CREDS_OPT_SALT 0x0080 2221#define KRB5_GET_INIT_CREDS_OPT_CHG_PWD_PRMPT 0x0100 2222#define KRB5_GET_INIT_CREDS_OPT_CANONICALIZE 0x0200 2223 2224 2225krb5_error_code KRB5_CALLCONV 2226krb5_get_init_creds_opt_alloc 2227(krb5_context context, 2228 krb5_get_init_creds_opt **opt) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 2229 2230void KRB5_CALLCONV 2231krb5_get_init_creds_opt_free 2232(krb5_context context, 2233 krb5_get_init_creds_opt *opt) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 2234 2235void KRB5_CALLCONV 2236krb5_get_init_creds_opt_init 2237(krb5_get_init_creds_opt *opt) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 2238 2239void KRB5_CALLCONV 2240krb5_get_init_creds_opt_set_tkt_life 2241(krb5_get_init_creds_opt *opt, 2242 krb5_deltat tkt_life) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 2243 2244void KRB5_CALLCONV 2245krb5_get_init_creds_opt_set_renew_life 2246(krb5_get_init_creds_opt *opt, 2247 krb5_deltat renew_life) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 2248 2249void KRB5_CALLCONV 2250krb5_get_init_creds_opt_set_forwardable 2251(krb5_get_init_creds_opt *opt, 2252 int forwardable) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 2253 2254void KRB5_CALLCONV 2255krb5_get_init_creds_opt_set_proxiable 2256(krb5_get_init_creds_opt *opt, 2257 int proxiable) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 2258 2259void KRB5_CALLCONV 2260krb5_get_init_creds_opt_set_canonicalize 2261(krb5_get_init_creds_opt *opt, 2262 int canonicalize) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 2263 2264void KRB5_CALLCONV 2265krb5_get_init_creds_opt_set_etype_list 2266(krb5_get_init_creds_opt *opt, 2267 krb5_enctype *etype_list, 2268 int etype_list_length) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 2269 2270void KRB5_CALLCONV 2271krb5_get_init_creds_opt_set_address_list 2272(krb5_get_init_creds_opt *opt, 2273 krb5_address **addresses) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 2274 2275void KRB5_CALLCONV 2276krb5_get_init_creds_opt_set_preauth_list 2277(krb5_get_init_creds_opt *opt, 2278 krb5_preauthtype *preauth_list, 2279 int preauth_list_length) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 2280 2281void KRB5_CALLCONV 2282krb5_get_init_creds_opt_set_salt 2283(krb5_get_init_creds_opt *opt, 2284 krb5_data *salt) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 2285 2286void KRB5_CALLCONV 2287krb5_get_init_creds_opt_set_change_password_prompt 2288(krb5_get_init_creds_opt *opt, 2289 int prompt) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 2290 2291/* Generic preauth option attribute/value pairs */ 2292typedef struct _krb5_gic_opt_pa_data { 2293 char *attr; 2294 char *value; 2295} krb5_gic_opt_pa_data; 2296 2297/* 2298 * This function allows the caller to supply options to preauth 2299 * plugins. Preauth plugin modules are given a chance to look 2300 * at each option at the time this function is called in ordre 2301 * to check the validity of the option. 2302 * The 'opt' pointer supplied to this function must have been 2303 * obtained using krb5_get_init_creds_opt_alloc() 2304 */ 2305krb5_error_code KRB5_CALLCONV 2306krb5_get_init_creds_opt_set_pa 2307 (krb5_context context, 2308 krb5_get_init_creds_opt *opt, 2309 const char *attr, 2310 const char *value) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 2311 2312typedef krb5_error_code 2313(*krb5_gic_process_last_req)(krb5_context, krb5_last_req_entry **, void *) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 2314 2315krb5_error_code KRB5_CALLCONV 2316krb5_get_init_creds_opt_set_process_last_req(krb5_context, 2317 krb5_get_init_creds_opt *, 2318 krb5_gic_process_last_req, 2319 void *) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 2320 2321 2322krb5_error_code KRB5_CALLCONV 2323krb5_get_init_creds_password 2324(krb5_context context, 2325 krb5_creds *creds, 2326 krb5_principal client, 2327 char *password, 2328 krb5_prompter_fct prompter, 2329 void *data, 2330 krb5_deltat start_time, 2331 char *in_tkt_service, 2332 krb5_get_init_creds_opt *k5_gic_options) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 2333 2334krb5_error_code KRB5_CALLCONV 2335krb5_get_init_creds_keytab 2336(krb5_context context, 2337 krb5_creds *creds, 2338 krb5_principal client, 2339 krb5_keytab arg_keytab, 2340 krb5_deltat start_time, 2341 char *in_tkt_service, 2342 krb5_get_init_creds_opt *k5_gic_options) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 2343 2344typedef struct _krb5_verify_init_creds_opt { 2345 krb5_flags flags; 2346 int ap_req_nofail; 2347} krb5_verify_init_creds_opt; 2348 2349#define KRB5_VERIFY_INIT_CREDS_OPT_AP_REQ_NOFAIL 0x0001 2350 2351void KRB5_CALLCONV 2352krb5_verify_init_creds_opt_init 2353(krb5_verify_init_creds_opt *k5_vic_options) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 2354void KRB5_CALLCONV 2355krb5_verify_init_creds_opt_set_ap_req_nofail 2356(krb5_verify_init_creds_opt *k5_vic_options, 2357 int ap_req_nofail) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 2358 2359krb5_error_code KRB5_CALLCONV 2360krb5_verify_init_creds 2361(krb5_context context, 2362 krb5_creds *creds, 2363 krb5_principal ap_req_server, 2364 krb5_keytab ap_req_keytab, 2365 krb5_ccache *ccache, 2366 krb5_verify_init_creds_opt *k5_vic_options) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 2367 2368krb5_error_code KRB5_CALLCONV 2369krb5_get_validated_creds 2370(krb5_context context, 2371 krb5_creds *creds, 2372 krb5_principal client, 2373 krb5_ccache ccache, 2374 char *in_tkt_service) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 2375 2376krb5_error_code KRB5_CALLCONV 2377krb5_get_renewed_creds 2378(krb5_context context, 2379 krb5_creds *creds, 2380 krb5_principal client, 2381 krb5_ccache ccache, 2382 char *in_tkt_service) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 2383 2384krb5_error_code KRB5_CALLCONV 2385krb5_decode_ticket 2386(const krb5_data *code, 2387 krb5_ticket **rep) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 2388 2389void KRB5_CALLCONV 2390krb5_appdefault_string 2391(krb5_context context, 2392 const char *appname, 2393 const krb5_data *realm, 2394 const char *option, 2395 const char *default_value, 2396 char ** ret_value) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 2397 2398void KRB5_CALLCONV 2399krb5_appdefault_boolean 2400(krb5_context context, 2401 const char *appname, 2402 const krb5_data *realm, 2403 const char *option, 2404 int default_value, 2405 int *ret_value) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 2406 2407/* 2408 * Prompter enhancements 2409 */ 2410 2411#define KRB5_PROMPT_TYPE_PASSWORD 0x1 2412#define KRB5_PROMPT_TYPE_NEW_PASSWORD 0x2 2413#define KRB5_PROMPT_TYPE_NEW_PASSWORD_AGAIN 0x3 2414#define KRB5_PROMPT_TYPE_PREAUTH 0x4 2415 2416typedef krb5_int32 krb5_prompt_type; 2417 2418krb5_prompt_type* KRB5_CALLCONV krb5_get_prompt_types 2419 (krb5_context context) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 2420 2421/* Error reporting */ 2422void KRB5_CALLCONV_C 2423krb5_set_error_message (krb5_context, krb5_error_code, const char *, ...) 2424#if !defined(__cplusplus) && (__GNUC__ > 2) 2425 __attribute__((__format__(__printf__, 3, 4))) 2426#endif 2427 ; 2428void KRB5_CALLCONV 2429krb5_vset_error_message (krb5_context, krb5_error_code, const char *, va_list) 2430#if !defined(__cplusplus) && (__GNUC__ > 2) 2431 __attribute__((__format__(__printf__, 3, 0))) 2432#endif 2433 ; 2434/* 2435 * The behavior of krb5_get_error_message is only defined the first 2436 * time it is called after a failed call to a krb5 function using the 2437 * same context, and only when the error code passed in is the same as 2438 * that returned by the krb5 function. Future versions may return the 2439 * same string for the second and following calls. 2440 * 2441 * The string returned by this function must be freed using 2442 * krb5_free_error_message. 2443 */ 2444const char * KRB5_CALLCONV 2445krb5_get_error_message (krb5_context, krb5_error_code) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 2446void KRB5_CALLCONV 2447krb5_free_error_message (krb5_context, const char *) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 2448void KRB5_CALLCONV 2449krb5_clear_error_message (krb5_context) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); 2450 2451 2452#if TARGET_OS_MAC 2453# pragma pack(pop) 2454#endif 2455 2456KRB5INT_END_DECLS 2457 2458/* Don't use this! We're going to phase it out. It's just here to keep 2459 applications from breaking right away. */ 2460#define krb5_const const 2461 2462#undef KRB5_ATTR_DEPRECATED 2463 2464#endif /* KRB5_GENERAL__ */ 2465/* 2466 * et-h-krb5_err.h: 2467 * This file is automatically generated; please do not edit it. 2468 */ 2469 2470#include <Kerberos/com_err.h> 2471 2472#define KRB5KDC_ERR_NONE (-1765328384L) 2473#define KRB5KDC_ERR_NAME_EXP (-1765328383L) 2474#define KRB5KDC_ERR_SERVICE_EXP (-1765328382L) 2475#define KRB5KDC_ERR_BAD_PVNO (-1765328381L) 2476#define KRB5KDC_ERR_C_OLD_MAST_KVNO (-1765328380L) 2477#define KRB5KDC_ERR_S_OLD_MAST_KVNO (-1765328379L) 2478#define KRB5KDC_ERR_C_PRINCIPAL_UNKNOWN (-1765328378L) 2479#define KRB5KDC_ERR_S_PRINCIPAL_UNKNOWN (-1765328377L) 2480#define KRB5KDC_ERR_PRINCIPAL_NOT_UNIQUE (-1765328376L) 2481#define KRB5KDC_ERR_NULL_KEY (-1765328375L) 2482#define KRB5KDC_ERR_CANNOT_POSTDATE (-1765328374L) 2483#define KRB5KDC_ERR_NEVER_VALID (-1765328373L) 2484#define KRB5KDC_ERR_POLICY (-1765328372L) 2485#define KRB5KDC_ERR_BADOPTION (-1765328371L) 2486#define KRB5KDC_ERR_ETYPE_NOSUPP (-1765328370L) 2487#define KRB5KDC_ERR_SUMTYPE_NOSUPP (-1765328369L) 2488#define KRB5KDC_ERR_PADATA_TYPE_NOSUPP (-1765328368L) 2489#define KRB5KDC_ERR_TRTYPE_NOSUPP (-1765328367L) 2490#define KRB5KDC_ERR_CLIENT_REVOKED (-1765328366L) 2491#define KRB5KDC_ERR_SERVICE_REVOKED (-1765328365L) 2492#define KRB5KDC_ERR_TGT_REVOKED (-1765328364L) 2493#define KRB5KDC_ERR_CLIENT_NOTYET (-1765328363L) 2494#define KRB5KDC_ERR_SERVICE_NOTYET (-1765328362L) 2495#define KRB5KDC_ERR_KEY_EXP (-1765328361L) 2496#define KRB5KDC_ERR_PREAUTH_FAILED (-1765328360L) 2497#define KRB5KDC_ERR_PREAUTH_REQUIRED (-1765328359L) 2498#define KRB5KDC_ERR_SERVER_NOMATCH (-1765328358L) 2499#define KRB5KDC_ERR_MUST_USE_USER2USER (-1765328357L) 2500#define KRB5KDC_ERR_PATH_NOT_ACCEPTED (-1765328356L) 2501#define KRB5KDC_ERR_SVC_UNAVAILABLE (-1765328355L) 2502#define KRB5PLACEHOLD_30 (-1765328354L) 2503#define KRB5KRB_AP_ERR_BAD_INTEGRITY (-1765328353L) 2504#define KRB5KRB_AP_ERR_TKT_EXPIRED (-1765328352L) 2505#define KRB5KRB_AP_ERR_TKT_NYV (-1765328351L) 2506#define KRB5KRB_AP_ERR_REPEAT (-1765328350L) 2507#define KRB5KRB_AP_ERR_NOT_US (-1765328349L) 2508#define KRB5KRB_AP_ERR_BADMATCH (-1765328348L) 2509#define KRB5KRB_AP_ERR_SKEW (-1765328347L) 2510#define KRB5KRB_AP_ERR_BADADDR (-1765328346L) 2511#define KRB5KRB_AP_ERR_BADVERSION (-1765328345L) 2512#define KRB5KRB_AP_ERR_MSG_TYPE (-1765328344L) 2513#define KRB5KRB_AP_ERR_MODIFIED (-1765328343L) 2514#define KRB5KRB_AP_ERR_BADORDER (-1765328342L) 2515#define KRB5KRB_AP_ERR_ILL_CR_TKT (-1765328341L) 2516#define KRB5KRB_AP_ERR_BADKEYVER (-1765328340L) 2517#define KRB5KRB_AP_ERR_NOKEY (-1765328339L) 2518#define KRB5KRB_AP_ERR_MUT_FAIL (-1765328338L) 2519#define KRB5KRB_AP_ERR_BADDIRECTION (-1765328337L) 2520#define KRB5KRB_AP_ERR_METHOD (-1765328336L) 2521#define KRB5KRB_AP_ERR_BADSEQ (-1765328335L) 2522#define KRB5KRB_AP_ERR_INAPP_CKSUM (-1765328334L) 2523#define KRB5KRB_AP_PATH_NOT_ACCEPTED (-1765328333L) 2524#define KRB5KRB_ERR_RESPONSE_TOO_BIG (-1765328332L) 2525#define KRB5PLACEHOLD_53 (-1765328331L) 2526#define KRB5PLACEHOLD_54 (-1765328330L) 2527#define KRB5PLACEHOLD_55 (-1765328329L) 2528#define KRB5PLACEHOLD_56 (-1765328328L) 2529#define KRB5PLACEHOLD_57 (-1765328327L) 2530#define KRB5PLACEHOLD_58 (-1765328326L) 2531#define KRB5PLACEHOLD_59 (-1765328325L) 2532#define KRB5KRB_ERR_GENERIC (-1765328324L) 2533#define KRB5KRB_ERR_FIELD_TOOLONG (-1765328323L) 2534#define KRB5KDC_ERR_CLIENT_NOT_TRUSTED (-1765328322L) 2535#define KRB5KDC_ERR_KDC_NOT_TRUSTED (-1765328321L) 2536#define KRB5KDC_ERR_INVALID_SIG (-1765328320L) 2537#define KRB5KDC_ERR_DH_KEY_PARAMETERS_NOT_ACCEPTED (-1765328319L) 2538#define KRB5KDC_ERR_CERTIFICATE_MISMATCH (-1765328318L) 2539#define KRB5KRB_AP_ERR_NO_TGT (-1765328317L) 2540#define KRB5KDC_ERR_WRONG_REALM (-1765328316L) 2541#define KRB5KRB_AP_ERR_USER_TO_USER_REQUIRED (-1765328315L) 2542#define KRB5KDC_ERR_CANT_VERIFY_CERTIFICATE (-1765328314L) 2543#define KRB5KDC_ERR_INVALID_CERTIFICATE (-1765328313L) 2544#define KRB5KDC_ERR_REVOKED_CERTIFICATE (-1765328312L) 2545#define KRB5KDC_ERR_REVOCATION_STATUS_UNKNOWN (-1765328311L) 2546#define KRB5KDC_ERR_REVOCATION_STATUS_UNAVAILABLE (-1765328310L) 2547#define KRB5KDC_ERR_CLIENT_NAME_MISMATCH (-1765328309L) 2548#define KRB5KDC_ERR_KDC_NAME_MISMATCH (-1765328308L) 2549#define KRB5KDC_ERR_INCONSISTENT_KEY_PURPOSE (-1765328307L) 2550#define KRB5KDC_ERR_DIGEST_IN_CERT_NOT_ACCEPTED (-1765328306L) 2551#define KRB5KDC_ERR_PA_CHECKSUM_MUST_BE_INCLUDED (-1765328305L) 2552#define KRB5KDC_ERR_DIGEST_IN_SIGNED_DATA_NOT_ACCEPTED (-1765328304L) 2553#define KRB5KDC_ERR_PUBLIC_KEY_ENCRYPTION_NOT_SUPPORTED (-1765328303L) 2554#define KRB5PLACEHOLD_82 (-1765328302L) 2555#define KRB5PLACEHOLD_83 (-1765328301L) 2556#define KRB5PLACEHOLD_84 (-1765328300L) 2557#define KRB5PLACEHOLD_85 (-1765328299L) 2558#define KRB5PLACEHOLD_86 (-1765328298L) 2559#define KRB5PLACEHOLD_87 (-1765328297L) 2560#define KRB5PLACEHOLD_88 (-1765328296L) 2561#define KRB5PLACEHOLD_89 (-1765328295L) 2562#define KRB5PLACEHOLD_90 (-1765328294L) 2563#define KRB5PLACEHOLD_91 (-1765328293L) 2564#define KRB5PLACEHOLD_92 (-1765328292L) 2565#define KRB5PLACEHOLD_93 (-1765328291L) 2566#define KRB5PLACEHOLD_94 (-1765328290L) 2567#define KRB5PLACEHOLD_95 (-1765328289L) 2568#define KRB5PLACEHOLD_96 (-1765328288L) 2569#define KRB5PLACEHOLD_97 (-1765328287L) 2570#define KRB5PLACEHOLD_98 (-1765328286L) 2571#define KRB5PLACEHOLD_99 (-1765328285L) 2572#define KRB5PLACEHOLD_100 (-1765328284L) 2573#define KRB5PLACEHOLD_101 (-1765328283L) 2574#define KRB5PLACEHOLD_102 (-1765328282L) 2575#define KRB5PLACEHOLD_103 (-1765328281L) 2576#define KRB5PLACEHOLD_104 (-1765328280L) 2577#define KRB5PLACEHOLD_105 (-1765328279L) 2578#define KRB5PLACEHOLD_106 (-1765328278L) 2579#define KRB5PLACEHOLD_107 (-1765328277L) 2580#define KRB5PLACEHOLD_108 (-1765328276L) 2581#define KRB5PLACEHOLD_109 (-1765328275L) 2582#define KRB5PLACEHOLD_110 (-1765328274L) 2583#define KRB5PLACEHOLD_111 (-1765328273L) 2584#define KRB5PLACEHOLD_112 (-1765328272L) 2585#define KRB5PLACEHOLD_113 (-1765328271L) 2586#define KRB5PLACEHOLD_114 (-1765328270L) 2587#define KRB5PLACEHOLD_115 (-1765328269L) 2588#define KRB5PLACEHOLD_116 (-1765328268L) 2589#define KRB5PLACEHOLD_117 (-1765328267L) 2590#define KRB5PLACEHOLD_118 (-1765328266L) 2591#define KRB5PLACEHOLD_119 (-1765328265L) 2592#define KRB5PLACEHOLD_120 (-1765328264L) 2593#define KRB5PLACEHOLD_121 (-1765328263L) 2594#define KRB5PLACEHOLD_122 (-1765328262L) 2595#define KRB5PLACEHOLD_123 (-1765328261L) 2596#define KRB5PLACEHOLD_124 (-1765328260L) 2597#define KRB5PLACEHOLD_125 (-1765328259L) 2598#define KRB5PLACEHOLD_126 (-1765328258L) 2599#define KRB5PLACEHOLD_127 (-1765328257L) 2600#define KRB5_ERR_RCSID (-1765328256L) 2601#define KRB5_LIBOS_BADLOCKFLAG (-1765328255L) 2602#define KRB5_LIBOS_CANTREADPWD (-1765328254L) 2603#define KRB5_LIBOS_BADPWDMATCH (-1765328253L) 2604#define KRB5_LIBOS_PWDINTR (-1765328252L) 2605#define KRB5_PARSE_ILLCHAR (-1765328251L) 2606#define KRB5_PARSE_MALFORMED (-1765328250L) 2607#define KRB5_CONFIG_CANTOPEN (-1765328249L) 2608#define KRB5_CONFIG_BADFORMAT (-1765328248L) 2609#define KRB5_CONFIG_NOTENUFSPACE (-1765328247L) 2610#define KRB5_BADMSGTYPE (-1765328246L) 2611#define KRB5_CC_BADNAME (-1765328245L) 2612#define KRB5_CC_UNKNOWN_TYPE (-1765328244L) 2613#define KRB5_CC_NOTFOUND (-1765328243L) 2614#define KRB5_CC_END (-1765328242L) 2615#define KRB5_NO_TKT_SUPPLIED (-1765328241L) 2616#define KRB5KRB_AP_WRONG_PRINC (-1765328240L) 2617#define KRB5KRB_AP_ERR_TKT_INVALID (-1765328239L) 2618#define KRB5_PRINC_NOMATCH (-1765328238L) 2619#define KRB5_KDCREP_MODIFIED (-1765328237L) 2620#define KRB5_KDCREP_SKEW (-1765328236L) 2621#define KRB5_IN_TKT_REALM_MISMATCH (-1765328235L) 2622#define KRB5_PROG_ETYPE_NOSUPP (-1765328234L) 2623#define KRB5_PROG_KEYTYPE_NOSUPP (-1765328233L) 2624#define KRB5_WRONG_ETYPE (-1765328232L) 2625#define KRB5_PROG_SUMTYPE_NOSUPP (-1765328231L) 2626#define KRB5_REALM_UNKNOWN (-1765328230L) 2627#define KRB5_SERVICE_UNKNOWN (-1765328229L) 2628#define KRB5_KDC_UNREACH (-1765328228L) 2629#define KRB5_NO_LOCALNAME (-1765328227L) 2630#define KRB5_MUTUAL_FAILED (-1765328226L) 2631#define KRB5_RC_TYPE_EXISTS (-1765328225L) 2632#define KRB5_RC_MALLOC (-1765328224L) 2633#define KRB5_RC_TYPE_NOTFOUND (-1765328223L) 2634#define KRB5_RC_UNKNOWN (-1765328222L) 2635#define KRB5_RC_REPLAY (-1765328221L) 2636#define KRB5_RC_IO (-1765328220L) 2637#define KRB5_RC_NOIO (-1765328219L) 2638#define KRB5_RC_PARSE (-1765328218L) 2639#define KRB5_RC_IO_EOF (-1765328217L) 2640#define KRB5_RC_IO_MALLOC (-1765328216L) 2641#define KRB5_RC_IO_PERM (-1765328215L) 2642#define KRB5_RC_IO_IO (-1765328214L) 2643#define KRB5_RC_IO_UNKNOWN (-1765328213L) 2644#define KRB5_RC_IO_SPACE (-1765328212L) 2645#define KRB5_TRANS_CANTOPEN (-1765328211L) 2646#define KRB5_TRANS_BADFORMAT (-1765328210L) 2647#define KRB5_LNAME_CANTOPEN (-1765328209L) 2648#define KRB5_LNAME_NOTRANS (-1765328208L) 2649#define KRB5_LNAME_BADFORMAT (-1765328207L) 2650#define KRB5_CRYPTO_INTERNAL (-1765328206L) 2651#define KRB5_KT_BADNAME (-1765328205L) 2652#define KRB5_KT_UNKNOWN_TYPE (-1765328204L) 2653#define KRB5_KT_NOTFOUND (-1765328203L) 2654#define KRB5_KT_END (-1765328202L) 2655#define KRB5_KT_NOWRITE (-1765328201L) 2656#define KRB5_KT_IOERR (-1765328200L) 2657#define KRB5_NO_TKT_IN_RLM (-1765328199L) 2658#define KRB5DES_BAD_KEYPAR (-1765328198L) 2659#define KRB5DES_WEAK_KEY (-1765328197L) 2660#define KRB5_BAD_ENCTYPE (-1765328196L) 2661#define KRB5_BAD_KEYSIZE (-1765328195L) 2662#define KRB5_BAD_MSIZE (-1765328194L) 2663#define KRB5_CC_TYPE_EXISTS (-1765328193L) 2664#define KRB5_KT_TYPE_EXISTS (-1765328192L) 2665#define KRB5_CC_IO (-1765328191L) 2666#define KRB5_FCC_PERM (-1765328190L) 2667#define KRB5_FCC_NOFILE (-1765328189L) 2668#define KRB5_FCC_INTERNAL (-1765328188L) 2669#define KRB5_CC_WRITE (-1765328187L) 2670#define KRB5_CC_NOMEM (-1765328186L) 2671#define KRB5_CC_FORMAT (-1765328185L) 2672#define KRB5_CC_NOT_KTYPE (-1765328184L) 2673#define KRB5_INVALID_FLAGS (-1765328183L) 2674#define KRB5_NO_2ND_TKT (-1765328182L) 2675#define KRB5_NOCREDS_SUPPLIED (-1765328181L) 2676#define KRB5_SENDAUTH_BADAUTHVERS (-1765328180L) 2677#define KRB5_SENDAUTH_BADAPPLVERS (-1765328179L) 2678#define KRB5_SENDAUTH_BADRESPONSE (-1765328178L) 2679#define KRB5_SENDAUTH_REJECTED (-1765328177L) 2680#define KRB5_PREAUTH_BAD_TYPE (-1765328176L) 2681#define KRB5_PREAUTH_NO_KEY (-1765328175L) 2682#define KRB5_PREAUTH_FAILED (-1765328174L) 2683#define KRB5_RCACHE_BADVNO (-1765328173L) 2684#define KRB5_CCACHE_BADVNO (-1765328172L) 2685#define KRB5_KEYTAB_BADVNO (-1765328171L) 2686#define KRB5_PROG_ATYPE_NOSUPP (-1765328170L) 2687#define KRB5_RC_REQUIRED (-1765328169L) 2688#define KRB5_ERR_BAD_HOSTNAME (-1765328168L) 2689#define KRB5_ERR_HOST_REALM_UNKNOWN (-1765328167L) 2690#define KRB5_SNAME_UNSUPP_NAMETYPE (-1765328166L) 2691#define KRB5KRB_AP_ERR_V4_REPLY (-1765328165L) 2692#define KRB5_REALM_CANT_RESOLVE (-1765328164L) 2693#define KRB5_TKT_NOT_FORWARDABLE (-1765328163L) 2694#define KRB5_FWD_BAD_PRINCIPAL (-1765328162L) 2695#define KRB5_GET_IN_TKT_LOOP (-1765328161L) 2696#define KRB5_CONFIG_NODEFREALM (-1765328160L) 2697#define KRB5_SAM_UNSUPPORTED (-1765328159L) 2698#define KRB5_SAM_INVALID_ETYPE (-1765328158L) 2699#define KRB5_SAM_NO_CHECKSUM (-1765328157L) 2700#define KRB5_SAM_BAD_CHECKSUM (-1765328156L) 2701#define KRB5_KT_NAME_TOOLONG (-1765328155L) 2702#define KRB5_KT_KVNONOTFOUND (-1765328154L) 2703#define KRB5_APPL_EXPIRED (-1765328153L) 2704#define KRB5_LIB_EXPIRED (-1765328152L) 2705#define KRB5_CHPW_PWDNULL (-1765328151L) 2706#define KRB5_CHPW_FAIL (-1765328150L) 2707#define KRB5_KT_FORMAT (-1765328149L) 2708#define KRB5_NOPERM_ETYPE (-1765328148L) 2709#define KRB5_CONFIG_ETYPE_NOSUPP (-1765328147L) 2710#define KRB5_OBSOLETE_FN (-1765328146L) 2711#define KRB5_EAI_FAIL (-1765328145L) 2712#define KRB5_EAI_NODATA (-1765328144L) 2713#define KRB5_EAI_NONAME (-1765328143L) 2714#define KRB5_EAI_SERVICE (-1765328142L) 2715#define KRB5_ERR_NUMERIC_REALM (-1765328141L) 2716#define KRB5_ERR_BAD_S2K_PARAMS (-1765328140L) 2717#define KRB5_ERR_NO_SERVICE (-1765328139L) 2718#define KRB5_CC_READONLY (-1765328138L) 2719#define KRB5_CC_NOSUPP (-1765328137L) 2720#define KRB5_DELTAT_BADFORMAT (-1765328136L) 2721#define KRB5_PLUGIN_NO_HANDLE (-1765328135L) 2722#define KRB5_PLUGIN_OP_NOTSUPP (-1765328134L) 2723#define ERROR_TABLE_BASE_krb5 (-1765328384L) 2724 2725extern const struct error_table et_krb5_error_table; 2726 2727#if !defined(_WIN32) 2728/* for compatibility with older versions... */ 2729extern void initialize_krb5_error_table (void) /*@modifies internalState@*/; 2730#else 2731#define initialize_krb5_error_table() 2732#endif 2733 2734#if !defined(_WIN32) 2735#define init_krb5_err_tbl initialize_krb5_error_table 2736#define krb5_err_base ERROR_TABLE_BASE_krb5 2737#endif 2738/* 2739 * et-h-kdb5_err.h: 2740 * This file is automatically generated; please do not edit it. 2741 */ 2742 2743#include <Kerberos/com_err.h> 2744 2745#define KRB5_KDB_RCSID (-1780008448L) 2746#define KRB5_KDB_INUSE (-1780008447L) 2747#define KRB5_KDB_UK_SERROR (-1780008446L) 2748#define KRB5_KDB_UK_RERROR (-1780008445L) 2749#define KRB5_KDB_UNAUTH (-1780008444L) 2750#define KRB5_KDB_NOENTRY (-1780008443L) 2751#define KRB5_KDB_ILL_WILDCARD (-1780008442L) 2752#define KRB5_KDB_DB_INUSE (-1780008441L) 2753#define KRB5_KDB_DB_CHANGED (-1780008440L) 2754#define KRB5_KDB_TRUNCATED_RECORD (-1780008439L) 2755#define KRB5_KDB_RECURSIVELOCK (-1780008438L) 2756#define KRB5_KDB_NOTLOCKED (-1780008437L) 2757#define KRB5_KDB_BADLOCKMODE (-1780008436L) 2758#define KRB5_KDB_DBNOTINITED (-1780008435L) 2759#define KRB5_KDB_DBINITED (-1780008434L) 2760#define KRB5_KDB_ILLDIRECTION (-1780008433L) 2761#define KRB5_KDB_NOMASTERKEY (-1780008432L) 2762#define KRB5_KDB_BADMASTERKEY (-1780008431L) 2763#define KRB5_KDB_INVALIDKEYSIZE (-1780008430L) 2764#define KRB5_KDB_CANTREAD_STORED (-1780008429L) 2765#define KRB5_KDB_BADSTORED_MKEY (-1780008428L) 2766#define KRB5_KDB_CANTLOCK_DB (-1780008427L) 2767#define KRB5_KDB_DB_CORRUPT (-1780008426L) 2768#define KRB5_KDB_BAD_VERSION (-1780008425L) 2769#define KRB5_KDB_BAD_SALTTYPE (-1780008424L) 2770#define KRB5_KDB_BAD_ENCTYPE (-1780008423L) 2771#define KRB5_KDB_BAD_CREATEFLAGS (-1780008422L) 2772#define KRB5_KDB_NO_PERMITTED_KEY (-1780008421L) 2773#define KRB5_KDB_NO_MATCHING_KEY (-1780008420L) 2774#define KRB5_KDB_DBTYPE_NOTFOUND (-1780008419L) 2775#define KRB5_KDB_DBTYPE_NOSUP (-1780008418L) 2776#define KRB5_KDB_DBTYPE_INIT (-1780008417L) 2777#define KRB5_KDB_SERVER_INTERNAL_ERR (-1780008416L) 2778#define KRB5_KDB_ACCESS_ERROR (-1780008415L) 2779#define KRB5_KDB_INTERNAL_ERROR (-1780008414L) 2780#define KRB5_KDB_CONSTRAINT_VIOLATION (-1780008413L) 2781#define KRB5_LOG_CONV (-1780008412L) 2782#define KRB5_LOG_UNSTABLE (-1780008411L) 2783#define KRB5_LOG_CORRUPT (-1780008410L) 2784#define KRB5_LOG_ERROR (-1780008409L) 2785#define ERROR_TABLE_BASE_kdb5 (-1780008448L) 2786 2787extern const struct error_table et_kdb5_error_table; 2788 2789#if !defined(_WIN32) 2790/* for compatibility with older versions... */ 2791extern void initialize_kdb5_error_table (void) /*@modifies internalState@*/; 2792#else 2793#define initialize_kdb5_error_table() 2794#endif 2795 2796#if !defined(_WIN32) 2797#define init_kdb5_err_tbl initialize_kdb5_error_table 2798#define kdb5_err_base ERROR_TABLE_BASE_kdb5 2799#endif 2800/* 2801 * et-h-kv5m_err.h: 2802 * This file is automatically generated; please do not edit it. 2803 */ 2804 2805#include <Kerberos/com_err.h> 2806 2807#define KV5M_NONE (-1760647424L) 2808#define KV5M_PRINCIPAL (-1760647423L) 2809#define KV5M_DATA (-1760647422L) 2810#define KV5M_KEYBLOCK (-1760647421L) 2811#define KV5M_CHECKSUM (-1760647420L) 2812#define KV5M_ENCRYPT_BLOCK (-1760647419L) 2813#define KV5M_ENC_DATA (-1760647418L) 2814#define KV5M_CRYPTOSYSTEM_ENTRY (-1760647417L) 2815#define KV5M_CS_TABLE_ENTRY (-1760647416L) 2816#define KV5M_CHECKSUM_ENTRY (-1760647415L) 2817#define KV5M_AUTHDATA (-1760647414L) 2818#define KV5M_TRANSITED (-1760647413L) 2819#define KV5M_ENC_TKT_PART (-1760647412L) 2820#define KV5M_TICKET (-1760647411L) 2821#define KV5M_AUTHENTICATOR (-1760647410L) 2822#define KV5M_TKT_AUTHENT (-1760647409L) 2823#define KV5M_CREDS (-1760647408L) 2824#define KV5M_LAST_REQ_ENTRY (-1760647407L) 2825#define KV5M_PA_DATA (-1760647406L) 2826#define KV5M_KDC_REQ (-1760647405L) 2827#define KV5M_ENC_KDC_REP_PART (-1760647404L) 2828#define KV5M_KDC_REP (-1760647403L) 2829#define KV5M_ERROR (-1760647402L) 2830#define KV5M_AP_REQ (-1760647401L) 2831#define KV5M_AP_REP (-1760647400L) 2832#define KV5M_AP_REP_ENC_PART (-1760647399L) 2833#define KV5M_RESPONSE (-1760647398L) 2834#define KV5M_SAFE (-1760647397L) 2835#define KV5M_PRIV (-1760647396L) 2836#define KV5M_PRIV_ENC_PART (-1760647395L) 2837#define KV5M_CRED (-1760647394L) 2838#define KV5M_CRED_INFO (-1760647393L) 2839#define KV5M_CRED_ENC_PART (-1760647392L) 2840#define KV5M_PWD_DATA (-1760647391L) 2841#define KV5M_ADDRESS (-1760647390L) 2842#define KV5M_KEYTAB_ENTRY (-1760647389L) 2843#define KV5M_CONTEXT (-1760647388L) 2844#define KV5M_OS_CONTEXT (-1760647387L) 2845#define KV5M_ALT_METHOD (-1760647386L) 2846#define KV5M_ETYPE_INFO_ENTRY (-1760647385L) 2847#define KV5M_DB_CONTEXT (-1760647384L) 2848#define KV5M_AUTH_CONTEXT (-1760647383L) 2849#define KV5M_KEYTAB (-1760647382L) 2850#define KV5M_RCACHE (-1760647381L) 2851#define KV5M_CCACHE (-1760647380L) 2852#define KV5M_PREAUTH_OPS (-1760647379L) 2853#define KV5M_SAM_CHALLENGE (-1760647378L) 2854#define KV5M_SAM_CHALLENGE_2 (-1760647377L) 2855#define KV5M_SAM_KEY (-1760647376L) 2856#define KV5M_ENC_SAM_RESPONSE_ENC (-1760647375L) 2857#define KV5M_ENC_SAM_RESPONSE_ENC_2 (-1760647374L) 2858#define KV5M_SAM_RESPONSE (-1760647373L) 2859#define KV5M_SAM_RESPONSE_2 (-1760647372L) 2860#define KV5M_PREDICTED_SAM_RESPONSE (-1760647371L) 2861#define KV5M_PASSWD_PHRASE_ELEMENT (-1760647370L) 2862#define KV5M_GSS_OID (-1760647369L) 2863#define KV5M_GSS_QUEUE (-1760647368L) 2864#define ERROR_TABLE_BASE_kv5m (-1760647424L) 2865 2866extern const struct error_table et_kv5m_error_table; 2867 2868#if !defined(_WIN32) 2869/* for compatibility with older versions... */ 2870extern void initialize_kv5m_error_table (void) /*@modifies internalState@*/; 2871#else 2872#define initialize_kv5m_error_table() 2873#endif 2874 2875#if !defined(_WIN32) 2876#define init_kv5m_err_tbl initialize_kv5m_error_table 2877#define kv5m_err_base ERROR_TABLE_BASE_kv5m 2878#endif 2879/* 2880 * et-h-krb524_err.h: 2881 * This file is automatically generated; please do not edit it. 2882 */ 2883 2884#include <Kerberos/com_err.h> 2885 2886#define KRB524_BADKEY (-1750206208L) 2887#define KRB524_BADADDR (-1750206207L) 2888#define KRB524_BADPRINC (-1750206206L) 2889#define KRB524_BADREALM (-1750206205L) 2890#define KRB524_V4ERR (-1750206204L) 2891#define KRB524_ENCFULL (-1750206203L) 2892#define KRB524_DECEMPTY (-1750206202L) 2893#define KRB524_NOTRESP (-1750206201L) 2894#define KRB524_KRB4_DISABLED (-1750206200L) 2895#define ERROR_TABLE_BASE_k524 (-1750206208L) 2896 2897extern const struct error_table et_k524_error_table; 2898 2899#if !defined(_WIN32) 2900/* for compatibility with older versions... */ 2901extern void initialize_k524_error_table (void) /*@modifies internalState@*/; 2902#else 2903#define initialize_k524_error_table() 2904#endif 2905 2906#if !defined(_WIN32) 2907#define init_k524_err_tbl initialize_k524_error_table 2908#define k524_err_base ERROR_TABLE_BASE_k524 2909#endif 2910/* 2911 * et-h-asn1_err.h: 2912 * This file is automatically generated; please do not edit it. 2913 */ 2914 2915#include <Kerberos/com_err.h> 2916 2917#define ASN1_BAD_TIMEFORMAT (1859794432L) 2918#define ASN1_MISSING_FIELD (1859794433L) 2919#define ASN1_MISPLACED_FIELD (1859794434L) 2920#define ASN1_TYPE_MISMATCH (1859794435L) 2921#define ASN1_OVERFLOW (1859794436L) 2922#define ASN1_OVERRUN (1859794437L) 2923#define ASN1_BAD_ID (1859794438L) 2924#define ASN1_BAD_LENGTH (1859794439L) 2925#define ASN1_BAD_FORMAT (1859794440L) 2926#define ASN1_PARSE_ERROR (1859794441L) 2927#define ASN1_BAD_GMTIME (1859794442L) 2928#define ASN1_MISMATCH_INDEF (1859794443L) 2929#define ASN1_MISSING_EOC (1859794444L) 2930#define ERROR_TABLE_BASE_asn1 (1859794432L) 2931 2932extern const struct error_table et_asn1_error_table; 2933 2934#if !defined(_WIN32) 2935/* for compatibility with older versions... */ 2936extern void initialize_asn1_error_table (void) /*@modifies internalState@*/; 2937#else 2938#define initialize_asn1_error_table() 2939#endif 2940 2941#if !defined(_WIN32) 2942#define init_asn1_err_tbl initialize_asn1_error_table 2943#define asn1_err_base ERROR_TABLE_BASE_asn1 2944#endif 2945#endif /* KRB5_KRB5_H_INCLUDED */ 2946 2947#endif /* __KERBEROS5__ */ 2948