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