#ifndef KRB_DEFS
#define KRB_DEFS
#if defined(__MACH__) && defined(__APPLE__)
#include <TargetConditionals.h>
#include <AvailabilityMacros.h>
#if TARGET_RT_MAC_CFM
#error "Use KfM 4.0 SDK headers for CFM compilation."
#endif
#ifndef KRB_PRIVATE
#define KRB_PRIVATE 0
#endif
#if defined(DEPRECATED_IN_MAC_OS_X_VERSION_10_5) && !defined(KRB5_SUPRESS_DEPRECATED_WARNINGS)
#define KRB5INT_KRB4_DEPRECATED DEPRECATED_IN_MAC_OS_X_VERSION_10_5
#endif
#else
#ifndef KRB_PRIVATE
#define KRB_PRIVATE 1
#endif
#endif
#ifndef KRB5INT_KRB4_DEPRECATED
#define KRB5INT_KRB4_DEPRECATED
#endif
#include <sys/types.h>
#include <kerberosIV/des.h>
#include <kerberosIV/krb_err.h>
#include <profile.h>
#ifdef _WIN32
#include <time.h>
#endif
#ifdef __cplusplus
#ifndef KRBINT_BEGIN_DECLS
#define KRBINT_BEGIN_DECLS extern "C" {
#define KRBINT_END_DECLS }
#endif
#else
#define KRBINT_BEGIN_DECLS
#define KRBINT_END_DECLS
#endif
KRBINT_BEGIN_DECLS
#if TARGET_OS_MAC
# pragma pack(push,2)
#endif
#define KRB4_32 DES_INT32
#define KRB_INT32 DES_INT32
#define KRB_UINT32 DES_UINT32
#define MAX_KRB_ERRORS 256
#if TARGET_OS_MAC
extern const char * const * const krb_err_txt
KRB5INT_KRB4_DEPRECATED;
#else
extern const char * const krb_err_txt[MAX_KRB_ERRORS]
KRB5INT_KRB4_DEPRECATED;
#endif
#define KSUCCESS 0
#define KFAILURE 255
#define KRB_CONF "/etc/krb.conf"
#define KRB_RLM_TRANS "/etc/krb.realms"
#define KRB_MASTER "kerberos"
#define KRB_HOST KRB_MASTER
#define KRB_REALM "ATHENA.MIT.EDU"
#define ANAME_SZ 40
#define REALM_SZ 40
#define SNAME_SZ 40
#define INST_SZ 40
#define ADDR_SZ 40
#define MAX_K_NAME_SZ (ANAME_SZ + INST_SZ + REALM_SZ + 2)
#define KKEY_SZ 100
#define VERSION_SZ 1
#define MSG_TYPE_SZ 1
#define DATE_SZ 26
#define MAX_HSTNM 100
#ifndef DEFAULT_TKT_LIFE
#define DEFAULT_TKT_LIFE 120
#endif
#define KRB_TICKET_GRANTING_TICKET "krbtgt"
#define MAX_KTXT_LEN 1250
struct ktext {
int length;
unsigned char dat[MAX_KTXT_LEN];
unsigned long mbz;
} KRB5INT_KRB4_DEPRECATED;
typedef struct ktext *KTEXT KRB5INT_KRB4_DEPRECATED;
typedef struct ktext KTEXT_ST KRB5INT_KRB4_DEPRECATED;
#define CLIENT_KRB_TIMEOUT 4
#define CLIENT_KRB_RETRY 5
#define CLIENT_KRB_BUFLEN 512
#define R_TKT_FIL 0
#define W_TKT_FIL 1
#ifdef PC
#define CL_GTGT_INIT_FILE "\\kerberos\\k_in_tkts"
#else
#define CL_GTGT_INIT_FILE "/etc/k_in_tkts"
#endif
#define CLOCK_SKEW 5*60
#define KEYFILE ((char*)krb__get_srvtabname("/etc/srvtab"))
struct auth_dat {
unsigned char k_flags;
char pname[ANAME_SZ];
char pinst[INST_SZ];
char prealm[REALM_SZ];
unsigned KRB4_32 checksum;
C_Block session;
int life;
unsigned KRB4_32 time_sec;
unsigned KRB4_32 address;
KTEXT_ST reply;
} KRB5INT_KRB4_DEPRECATED;
typedef struct auth_dat AUTH_DAT KRB5INT_KRB4_DEPRECATED;
struct credentials {
char service[ANAME_SZ];
char instance[INST_SZ];
char realm[REALM_SZ];
C_Block session;
int lifetime;
int kvno;
KTEXT_ST ticket_st;
KRB4_32 issue_date;
char pname[ANAME_SZ];
char pinst[INST_SZ];
#if TARGET_OS_MAC
KRB_UINT32 address;
KRB_UINT32 stk_type;
#endif
#ifdef _WIN32
char address[ADDR_SZ];
#endif
} KRB5INT_KRB4_DEPRECATED;
typedef struct credentials CREDENTIALS KRB5INT_KRB4_DEPRECATED;
struct msg_dat {
unsigned char *app_data;
unsigned KRB4_32 app_length;
unsigned KRB4_32 hash;
int swap;
KRB4_32 time_sec;
unsigned char time_5ms;
} KRB5INT_KRB4_DEPRECATED;
typedef struct msg_dat MSG_DAT KRB5INT_KRB4_DEPRECATED;
#ifdef _WIN32
#define TKT_FILE "\\kerberos\\ticket.ses"
#else
#define TKT_FILE tkt_string()
#define TKT_ROOT "/tmp/tkt"
#endif
#define KRB_ET(x) ((KRBET_ ## x) - ERROR_TABLE_BASE_krb)
#define KDC_OK KRB_ET(KSUCCESS)
#define KDC_NAME_EXP KRB_ET(KDC_NAME_EXP)
#define KDC_SERVICE_EXP KRB_ET(KDC_SERVICE_EXP)
#define KDC_AUTH_EXP KRB_ET(KDC_AUTH_EXP)
#define KDC_PKT_VER KRB_ET(KDC_PKT_VER)
#define KDC_P_MKEY_VER KRB_ET(KDC_P_MKEY_VER)
#define KDC_S_MKEY_VER KRB_ET(KDC_S_MKEY_VER)
#define KDC_BYTE_ORDER KRB_ET(KDC_BYTE_ORDER)
#define KDC_PR_UNKNOWN KRB_ET(KDC_PR_UNKNOWN)
#define KDC_PR_N_UNIQUE KRB_ET(KDC_PR_N_UNIQUE)
#define KDC_NULL_KEY KRB_ET(KDC_NULL_KEY)
#define KDC_GEN_ERR KRB_ET(KDC_GEN_ERR)
#define GC_OK KRB_ET(KSUCCESS)
#define RET_OK KRB_ET(KSUCCESS)
#define GC_TKFIL KRB_ET(GC_TKFIL)
#define RET_TKFIL KRB_ET(GC_TKFIL)
#define GC_NOTKT KRB_ET(GC_NOTKT)
#define RET_NOTKT KRB_ET(GC_NOTKT)
#define MK_AP_OK KRB_ET(KSUCCESS)
#define MK_AP_TGTEXP KRB_ET(MK_AP_TGTEXP)
#define RD_AP_OK KRB_ET(KSUCCESS)
#define RD_AP_UNDEC KRB_ET(RD_AP_UNDEC)
#define RD_AP_EXP KRB_ET(RD_AP_EXP)
#define RD_AP_NYV KRB_ET(RD_AP_NYV)
#define RD_AP_REPEAT KRB_ET(RD_AP_REPEAT)
#define RD_AP_NOT_US KRB_ET(RD_AP_NOT_US)
#define RD_AP_INCON KRB_ET(RD_AP_INCON)
#define RD_AP_TIME KRB_ET(RD_AP_TIME)
#define RD_AP_BADD KRB_ET(RD_AP_BADD)
#define RD_AP_VERSION KRB_ET(RD_AP_VERSION)
#define RD_AP_MSG_TYPE KRB_ET(RD_AP_MSG_TYPE)
#define RD_AP_MODIFIED KRB_ET(RD_AP_MODIFIED)
#define RD_AP_ORDER KRB_ET(RD_AP_ORDER)
#define RD_AP_UNAUTHOR KRB_ET(RD_AP_UNAUTHOR)
#define GT_PW_OK KRB_ET(KSUCCESS)
#define GT_PW_NULL KRB_ET(GT_PW_NULL)
#define GT_PW_BADPW KRB_ET(GT_PW_BADPW)
#define GT_PW_PROT KRB_ET(GT_PW_PROT)
#define GT_PW_KDCERR KRB_ET(GT_PW_KDCERR)
#define GT_PW_NULLTKT KRB_ET(GT_PW_NULLTKT)
#define SKDC_OK KRB_ET(KSUCCESS)
#define SKDC_RETRY KRB_ET(SKDC_RETRY)
#define SKDC_CANT KRB_ET(SKDC_CANT)
#define INTK_OK KRB_ET(KSUCCESS)
#define INTK_PW_NULL KRB_ET(GT_PW_NULL)
#define INTK_W_NOTALL KRB_ET(INTK_W_NOTALL)
#define INTK_BADPW KRB_ET(INTK_BADPW)
#define INTK_PROT KRB_ET(INTK_PROT)
#define INTK_ERR KRB_ET(INTK_ERR)
#define AD_OK KRB_ET(KSUCCESS)
#define AD_NOTGT KRB_ET(AD_NOTGT)
#define NO_TKT_FIL KRB_ET(NO_TKT_FIL)
#define TKT_FIL_ACC KRB_ET(TKT_FIL_ACC)
#define TKT_FIL_LCK KRB_ET(TKT_FIL_LCK)
#define TKT_FIL_FMT KRB_ET(TKT_FIL_FMT)
#define TKT_FIL_INI KRB_ET(TKT_FIL_INI)
#define KNAME_FMT KRB_ET(KNAME_FMT)
#define SAFE_PRIV_ERROR (-1)
#define K_FLAG_ORDER 0
#define K_FLAG_1
#define K_FLAG_2
#define K_FLAG_3
#define K_FLAG_4
#define K_FLAG_5
#define K_FLAG_6
#define K_FLAG_7
#ifdef OLDNAMES
#define krb_mk_req mk_ap_req
#define krb_rd_req rd_ap_req
#define krb_kntoln an_to_ln
#define krb_set_key set_serv_key
#define krb_get_cred get_credentials
#define krb_mk_priv mk_private_msg
#define krb_rd_priv rd_private_msg
#define krb_mk_safe mk_safe_msg
#define krb_rd_safe rd_safe_msg
#define krb_mk_err mk_appl_err_msg
#define krb_rd_err rd_appl_err_msg
#define krb_ck_repl check_replay
#define krb_get_pw_in_tkt get_in_tkt
#define krb_get_svc_in_tkt get_svc_in_tkt
#define krb_get_pw_tkt get_pw_tkt
#define krb_realmofhost krb_getrealm
#define krb_get_phost get_phost
#define krb_get_krbhst get_krbhst
#define krb_get_lrealm get_krbrlm
#endif
#define KOPT_DONT_MK_REQ 0x00000001
#define KOPT_DO_MUTUAL 0x00000002
#define KOPT_DONT_CANON 0x00000004
#define KRB_SENDAUTH_VLEN 8
#ifdef ATHENA_COMPAT
#define KOPT_DO_OLDSTYLE 0x00000008
#endif
#ifdef _WIN32
#define TIME_GMT_UNIXSEC win_time_gmt_unixsec((unsigned KRB4_32 *)0)
#define TIME_GMT_UNIXSEC_US(us) win_time_gmt_unixsec((us))
#define CONVERT_TIME_EPOCH win_time_get_epoch()
#else
#define _fmemcpy memcpy
#define _fstrncpy strncpy
#define far_fputs fputs
#define TIME_GMT_UNIXSEC unix_time_gmt_unixsec((unsigned KRB4_32 *)0)
#define TIME_GMT_UNIXSEC_US(us) unix_time_gmt_unixsec((us))
#define CONVERT_TIME_EPOCH ((long)0)
#endif
#define REALMS_V4_PROF_REALMS_SECTION "v4 realms"
#define REALMS_V4_PROF_KDC "kdc"
#define REALMS_V4_PROF_ADMIN_KDC "admin_server"
#define REALMS_V4_PROF_KPASSWD_KDC "kpasswd_server"
#define REALMS_V4_PROF_DOMAIN_SECTION "v4 domain_realm"
#define REALMS_V4_PROF_LIBDEFAULTS_SECTION "libdefaults"
#define REALMS_V4_PROF_LOCAL_REALM "default_realm"
#define REALMS_V4_PROF_STK "string_to_key_type"
#define REALMS_V4_MIT_STK "mit_string_to_key"
#define REALMS_V4_AFS_STK "afs_string_to_key"
#define REALMS_V4_COLUMBIA_STK "columbia_string_to_key"
#define REALMS_V4_DEFAULT_REALM "default_realm"
#define REALMS_V4_NO_ADDRESSES "noaddresses"
extern int krb_ignore_ip_address;
#ifdef DEBUG
#define DEB(x) if (krb_debug) printf x
extern int krb_debug;
#else
#define DEB(x)
#endif
typedef int (KRB5_CALLCONV *key_proc_type)
(char *, char *, char *,
char *, C_Block)
KRB5INT_KRB4_DEPRECATED;
#define KEY_PROC_TYPE_DEFINED
typedef int (KRB5_CALLCONV *decrypt_tkt_type)
(char *, char *, char *,
char *, key_proc_type, KTEXT *)
KRB5INT_KRB4_DEPRECATED;
#define DECRYPT_TKT_TYPE_DEFINED
extern struct _krb5_context * krb5__krb4_context;
struct sockaddr_in;
int KRB5_CALLCONV dest_tkt
(void)
KRB5INT_KRB4_DEPRECATED;
const char * KRB5_CALLCONV krb_get_err_text
(int errnum)
KRB5INT_KRB4_DEPRECATED;
int KRB5_CALLCONV get_ad_tkt
(char *service, char *sinst, char *realm, int lifetime)
KRB5INT_KRB4_DEPRECATED;
int KRB5_CALLCONV krb_get_admhst
(char *host, char *realm, int idx)
KRB5INT_KRB4_DEPRECATED;
int KRB5_CALLCONV krb_get_cred
(char *service, char *instance, char *realm,
CREDENTIALS *c)
KRB5INT_KRB4_DEPRECATED;
int KRB5_CALLCONV krb_get_in_tkt
(char *k_user, char *instance, char *realm,
char *service, char *sinst, int life,
key_proc_type, decrypt_tkt_type, char *arg)
KRB5INT_KRB4_DEPRECATED;
#if KRB_PRIVATE
int KRB5_CALLCONV krb_get_in_tkt_preauth
(char *k_user, char *instance, char *realm,
char *service, char *sinst, int life,
key_proc_type, decrypt_tkt_type, char *arg,
char *preauth_p, int preauth_len)
KRB5INT_KRB4_DEPRECATED;
#endif
int KRB5_CALLCONV krb_get_in_tkt_creds(char *, char *, char *, char *, char *,
int, key_proc_type, decrypt_tkt_type, char *, CREDENTIALS *)
KRB5INT_KRB4_DEPRECATED;
int KRB5_CALLCONV krb_get_krbhst
(char *host, const char *realm, int idx)
KRB5INT_KRB4_DEPRECATED;
int KRB5_CALLCONV krb_get_lrealm
(char *realm, int idx)
KRB5INT_KRB4_DEPRECATED;
char * KRB5_CALLCONV krb_get_phost
(char * alias)
KRB5INT_KRB4_DEPRECATED;
int KRB5_CALLCONV get_pw_tkt
(char *, char *, char *, char *)
KRB5INT_KRB4_DEPRECATED;
int KRB5_CALLCONV krb_get_pw_in_tkt
(char *k_user, char *instance, char *realm,
char *service, char *sinstance,
int life, char *password)
KRB5INT_KRB4_DEPRECATED;
#if KRB_PRIVATE
int KRB5_CALLCONV krb_get_pw_in_tkt_preauth
(char *k_user, char *instance, char *realm,
char *service, char *sinstance,
int life, char *password)
KRB5INT_KRB4_DEPRECATED;
#endif
int KRB5_CALLCONV
krb_get_pw_in_tkt_creds(char *, char *, char *,
char *, char *, int, char *, CREDENTIALS *)
KRB5INT_KRB4_DEPRECATED;
int KRB5_CALLCONV krb_get_svc_in_tkt
(char *k_user, char *instance, char *realm,
char *service, char *sinstance,
int life, char *srvtab)
KRB5INT_KRB4_DEPRECATED;
int KRB5_CALLCONV krb_get_tf_fullname
(const char *ticket_file, char *name, char *inst, char *realm)
KRB5INT_KRB4_DEPRECATED;
int KRB5_CALLCONV krb_get_tf_realm
(const char *ticket_file, char *realm)
KRB5INT_KRB4_DEPRECATED;
int KRB5_CALLCONV krb_get_ticket_for_service
(char *serviceName,
char *buf, unsigned KRB4_32 *buflen,
int checksum, des_cblock, Key_schedule,
char *version, int includeVersion)
KRB5INT_KRB4_DEPRECATED;
#if KRB_PRIVATE
int KRB5_CALLCONV in_tkt
(char *name, char *inst)
KRB5INT_KRB4_DEPRECATED;
int KRB5_CALLCONV krb_in_tkt
(char *pname, char *pinst, char *realm)
KRB5INT_KRB4_DEPRECATED;
#endif
int KRB5_CALLCONV kname_parse
(char *name, char *inst, char *realm,
char *fullname)
KRB5INT_KRB4_DEPRECATED;
int KRB5_CALLCONV kname_unparse
(char *, const char *, const char *, const char *)
KRB5INT_KRB4_DEPRECATED;
int KRB5_CALLCONV k_isname
(char *)
KRB5INT_KRB4_DEPRECATED;
int KRB5_CALLCONV k_isinst
(char *)
KRB5INT_KRB4_DEPRECATED;
int KRB5_CALLCONV k_isrealm
(char *)
KRB5INT_KRB4_DEPRECATED;
int KRB5_CALLCONV kuserok
(AUTH_DAT *kdata, char *luser)
KRB5INT_KRB4_DEPRECATED;
KRB4_32 KRB5_CALLCONV krb_life_to_time
(KRB4_32 start, int life)
KRB5INT_KRB4_DEPRECATED;
int KRB5_CALLCONV krb_time_to_life
(KRB4_32 start, KRB4_32 end)
KRB5INT_KRB4_DEPRECATED;
int KRB5_CALLCONV krb_check_auth
(KTEXT, unsigned KRB4_32 cksum, MSG_DAT *,
C_Block, Key_schedule,
struct sockaddr_in * local_addr,
struct sockaddr_in * foreign_addr)
KRB5INT_KRB4_DEPRECATED;
int KRB5_CALLCONV krb_mk_auth
(long k4_options, KTEXT ticket,
char *service, char *inst, char *realm,
unsigned KRB4_32 checksum, char *version, KTEXT buf)
KRB5INT_KRB4_DEPRECATED;
long KRB5_CALLCONV krb_mk_err
(u_char *out, KRB4_32 k4_code, char *text)
KRB5INT_KRB4_DEPRECATED;
#if KRB_PRIVATE
int krb_mk_preauth
(char **preauth_p, int *preauth_len, key_proc_type,
char *name, char *inst, char *realm, char *password,
C_Block)
KRB5INT_KRB4_DEPRECATED;
void krb_free_preauth
(char * preauth_p, int len)
KRB5INT_KRB4_DEPRECATED;
#endif
long KRB5_CALLCONV krb_mk_priv
(u_char *in, u_char *out,
unsigned KRB4_32 length,
Key_schedule, C_Block *,
struct sockaddr_in * sender,
struct sockaddr_in * receiver)
KRB5INT_KRB4_DEPRECATED;
int KRB5_CALLCONV krb_mk_req
(KTEXT authent,
char *service, char *instance, char *realm,
KRB4_32 checksum)
KRB5INT_KRB4_DEPRECATED;
int KRB5_CALLCONV krb_mk_req_creds(KTEXT, CREDENTIALS *, KRB_INT32)
KRB5INT_KRB4_DEPRECATED;
int KRB5_CALLCONV krb_set_lifetime(int newval)
KRB5INT_KRB4_DEPRECATED;
long KRB5_CALLCONV krb_mk_safe
(u_char *in, u_char *out, unsigned KRB4_32 length,
C_Block *,
struct sockaddr_in *sender,
struct sockaddr_in *receiver)
KRB5INT_KRB4_DEPRECATED;
#if KRB_PRIVATE
int krb_net_read
(int fd, char *buf, int len)
KRB5INT_KRB4_DEPRECATED;
int krb_net_write
(int fd, char *buf, int len)
KRB5INT_KRB4_DEPRECATED;
int pkt_clen
(KTEXT)
KRB5INT_KRB4_DEPRECATED;
#endif
int KRB5_CALLCONV put_svc_key
(char *sfile,
char *name, char *inst, char *realm,
int newvno, char *key)
KRB5INT_KRB4_DEPRECATED;
int KRB5_CALLCONV krb_rd_err
(u_char *in, u_long in_length,
long *k4_code, MSG_DAT *m_data)
KRB5INT_KRB4_DEPRECATED;
long KRB5_CALLCONV krb_rd_priv
(u_char *in,unsigned KRB4_32 in_length,
Key_schedule, C_Block *,
struct sockaddr_in *sender,
struct sockaddr_in *receiver,
MSG_DAT *m_data)
KRB5INT_KRB4_DEPRECATED;
int KRB5_CALLCONV krb_rd_req
(KTEXT, char *service, char *inst,
unsigned KRB4_32 from_addr, AUTH_DAT *,
char *srvtab)
KRB5INT_KRB4_DEPRECATED;
int KRB5_CALLCONV
krb_rd_req_int(KTEXT, char *, char *, KRB_UINT32, AUTH_DAT *, C_Block)
KRB5INT_KRB4_DEPRECATED;
long KRB5_CALLCONV krb_rd_safe
(u_char *in, unsigned KRB4_32 in_length,
C_Block *,
struct sockaddr_in *sender,
struct sockaddr_in *receiver,
MSG_DAT *m_data)
KRB5INT_KRB4_DEPRECATED;
int KRB5_CALLCONV read_service_key
(char *service, char *instance, char *realm,
int kvno, char *file, char *key)
KRB5INT_KRB4_DEPRECATED;
int KRB5_CALLCONV get_service_key
(char *service, char *instance, char *realm,
int *kvno, char *file, char *key)
KRB5INT_KRB4_DEPRECATED;
char * KRB5_CALLCONV krb_realmofhost
(char *host)
KRB5INT_KRB4_DEPRECATED;
int KRB5_CALLCONV krb_recvauth
(long k4_options, int fd, KTEXT ticket,
char *service, char *instance,
struct sockaddr_in *foreign_addr,
struct sockaddr_in *local_addr,
AUTH_DAT *kdata, char *srvtab,
Key_schedule schedule, char *version)
KRB5INT_KRB4_DEPRECATED;
int KRB5_CALLCONV krb_sendauth
(long k4_options, int fd, KTEXT ticket,
char *service, char *inst, char *realm,
unsigned KRB4_32 checksum, MSG_DAT *msg_data,
CREDENTIALS *cred, Key_schedule schedule,
struct sockaddr_in *laddr, struct sockaddr_in *faddr,
char *version)
KRB5INT_KRB4_DEPRECATED;
#if KRB_PRIVATE
int KRB5_CALLCONV krb_save_credentials
(char *service, char *instance, char *realm,
C_Block session, int lifetime, int kvno,
KTEXT ticket, long issue_date)
KRB5INT_KRB4_DEPRECATED;
int send_to_kdc
(KTEXT pkt, KTEXT rpkt, char *realm)
KRB5INT_KRB4_DEPRECATED;
#endif
const char * KRB5_CALLCONV tkt_string
(void)
KRB5INT_KRB4_DEPRECATED;
void KRB5_CALLCONV krb_set_tkt_string
(const char *)
KRB5INT_KRB4_DEPRECATED;
#if KRB_PRIVATE
int KRB5_CALLCONV tf_init (const char *tf_name, int rw)
KRB5INT_KRB4_DEPRECATED;
int KRB5_CALLCONV tf_get_pname (char *p)
KRB5INT_KRB4_DEPRECATED;
int KRB5_CALLCONV tf_get_pinst (char *p)
KRB5INT_KRB4_DEPRECATED;
int KRB5_CALLCONV tf_get_cred (CREDENTIALS *c)
KRB5INT_KRB4_DEPRECATED;
void KRB5_CALLCONV tf_close (void)
KRB5INT_KRB4_DEPRECATED;
#endif
#if KRB_PRIVATE
unsigned KRB4_32 KRB5_CALLCONV unix_time_gmt_unixsec
(unsigned KRB4_32 *)
KRB5INT_KRB4_DEPRECATED;
extern int krb_set_key
(char *key, int cvt)
KRB5INT_KRB4_DEPRECATED;
extern int KRB5_CALLCONV decomp_ticket
(KTEXT tkt, unsigned char *flags, char *pname,
char *pinstance, char *prealm, unsigned KRB4_32 *paddress,
C_Block session, int *life, unsigned KRB4_32 *time_sec,
char *sname, char *sinstance, C_Block,
Key_schedule key_s)
KRB5INT_KRB4_DEPRECATED;
extern void cr_err_reply(KTEXT pkt, char *pname, char *pinst, char *prealm,
u_long time_ws, u_long e, char *e_string)
KRB5INT_KRB4_DEPRECATED;
extern int create_ciph(KTEXT c, C_Block session, char *service,
char *instance, char *realm, unsigned long life,
int kvno, KTEXT tkt, unsigned long kdc_time,
C_Block key)
KRB5INT_KRB4_DEPRECATED;
extern int krb_create_ticket(KTEXT tkt, unsigned int flags, char *pname,
char *pinstance, char *prealm, long paddress,
char *session, int life, long time_sec,
char *sname, char *sinstance, C_Block key)
KRB5INT_KRB4_DEPRECATED;
#endif
extern char * krb__get_srvtabname(const char *)
KRB5INT_KRB4_DEPRECATED;
#if KRB_PRIVATE
extern int krb_kntoln(AUTH_DAT *, char *)
KRB5INT_KRB4_DEPRECATED;
#ifdef KRB5_GENERAL__
extern int krb_cr_tkt_krb5(KTEXT tkt, unsigned int flags, char *pname,
char *pinstance, char *prealm, long paddress,
char *session, int life, long time_sec,
char *sname, char *sinstance,
krb5_keyblock *k5key)
KRB5INT_KRB4_DEPRECATED;
extern int krb_set_key_krb5(krb5_context ctx, krb5_keyblock *key)
KRB5INT_KRB4_DEPRECATED;
#endif
#endif
int KRB5_CALLCONV krb_change_password(char *, char *, char *, char *, char *)
KRB5INT_KRB4_DEPRECATED;
int KRB5_CALLCONV krb_get_profile(profile_t *)
KRB5INT_KRB4_DEPRECATED;
#ifdef _WIN32
HINSTANCE get_lib_instance(void)
KRB5INT_KRB4_DEPRECATED;
unsigned int krb_get_notification_message(void)
KRB5INT_KRB4_DEPRECATED;
char * KRB5_CALLCONV krb_get_default_user(void)
KRB5INT_KRB4_DEPRECATED;
int KRB5_CALLCONV krb_set_default_user(char *)
KRB5INT_KRB4_DEPRECATED;
unsigned KRB4_32 win_time_gmt_unixsec(unsigned KRB4_32 *)
KRB5INT_KRB4_DEPRECATED;
long win_time_get_epoch(void)
KRB5INT_KRB4_DEPRECATED;
#endif
#if TARGET_OS_MAC
# pragma pack(pop)
#endif
KRBINT_END_DECLS
#endif