require '_h2ph_pre.ph';

if(!defined ( &__STDC__)  && !defined( &_MSC_VER)) {
    eval 'sub const () {1;}' unless defined(&const);
    eval 'sub signed () {1;}' unless defined(&signed);
}
require 'sys/types.ph';
require 'inttypes.ph';
require 'time.ph';
unless(defined(&__KRB_H__)) {
    eval 'sub __KRB_H__ () {1;}' unless defined(&__KRB_H__);
    unless(defined(&__BEGIN_DECLS)) {
	if(defined( &__cplusplus)) {
	    eval 'sub __BEGIN_DECLS () { &extern "C" {;}' unless defined(&__BEGIN_DECLS);
	    eval 'sub __END_DECLS () {};}' unless defined(&__END_DECLS);
	} else {
	    eval 'sub __BEGIN_DECLS () {1;}' unless defined(&__BEGIN_DECLS);
	    eval 'sub __END_DECLS () {1;}' unless defined(&__END_DECLS);
	}
    }
    if(defined ( &__STDC__) || defined ( &_MSC_VER)) {
	unless(defined(&__P)) {
	    eval 'sub __P {
	        local($x) = @_;
    		eval q($x);
	    }' unless defined(&__P);
	}
    } else {
	unless(defined(&__P)) {
	    eval 'sub __P {
	        local($x) = @_;
    		eval q(());
	    }' unless defined(&__P);
	}
    }
    if(!defined( &NOPROTO)  && !defined( &__STDC__)) {
	eval 'sub NOPROTO () {1;}' unless defined(&NOPROTO);
    }
    require 'des.ph';
    unless(defined(&KRB_INT32)) {
	eval 'sub KRB_INT32 () { &int32_t;}' unless defined(&KRB_INT32);
    }
    unless(defined(&KRB_UINT32)) {
	eval 'sub KRB_UINT32 () { &u_int32_t;}' unless defined(&KRB_UINT32);
    }
    eval 'sub HOST_BYTE_ORDER () {(*   &krbONE);}' unless defined(&HOST_BYTE_ORDER);
    eval 'sub MAX_KRB_ERRORS () {256;}' unless defined(&MAX_KRB_ERRORS);
    eval 'sub KSUCCESS () {0;}' unless defined(&KSUCCESS);
    eval 'sub KFAILURE () {255;}' unless defined(&KFAILURE);
    unless(defined(&KRB_CONF)) {
	eval 'sub KRB_CONF () {"/etc/krb.conf";}' unless defined(&KRB_CONF);
    }
    unless(defined(&KRB_RLM_TRANS)) {
	eval 'sub KRB_RLM_TRANS () {"/etc/krb.realms";}' unless defined(&KRB_RLM_TRANS);
    }
    unless(defined(&KRB_CNF_FILES)) {
	eval 'sub KRB_CNF_FILES () {{  &KRB_CONF, "/etc/kerberosIV/krb.conf", 0};}' unless defined(&KRB_CNF_FILES);
    }
    unless(defined(&KRB_RLM_FILES)) {
	eval 'sub KRB_RLM_FILES () {{  &KRB_RLM_TRANS, "/etc/kerberosIV/krb.realms", 0};}' unless defined(&KRB_RLM_FILES);
    }
    unless(defined(&KRB_EQUIV)) {
	eval 'sub KRB_EQUIV () {"/etc/kerberosIV/krb.equiv";}' unless defined(&KRB_EQUIV);
    }
    eval 'sub KRB_MASTER () {"kerberos";}' unless defined(&KRB_MASTER);
    unless(defined(&KRB_REALM)) {
	eval 'sub KRB_REALM () {( &krb_get_default_realm());}' unless defined(&KRB_REALM);
    }
    eval 'sub ANAME_SZ () {40;}' unless defined(&ANAME_SZ);
    eval 'sub REALM_SZ () {40;}' unless defined(&REALM_SZ);
    eval 'sub SNAME_SZ () {40;}' unless defined(&SNAME_SZ);
    eval 'sub INST_SZ () {40;}' unless defined(&INST_SZ);
    eval 'sub MAX_K_NAME_SZ () {(2* &ANAME_SZ + 2* &INST_SZ + 2* &REALM_SZ - 3);}' unless defined(&MAX_K_NAME_SZ);
    eval 'sub KKEY_SZ () {100;}' unless defined(&KKEY_SZ);
    eval 'sub VERSION_SZ () {1;}' unless defined(&VERSION_SZ);
    eval 'sub MSG_TYPE_SZ () {1;}' unless defined(&MSG_TYPE_SZ);
    eval 'sub DATE_SZ () {26;}' unless defined(&DATE_SZ);
    eval 'sub MAX_HSTNM () {100;}' unless defined(&MAX_HSTNM);
    unless(defined(&DEFAULT_TKT_LIFE)) {
	eval 'sub DEFAULT_TKT_LIFE () {120;}' unless defined(&DEFAULT_TKT_LIFE);
    }
    eval 'sub KRB_TICKET_GRANTING_TICKET () {"krbtgt";}' unless defined(&KRB_TICKET_GRANTING_TICKET);
    eval 'sub MAX_KTXT_LEN () {1250;}' unless defined(&MAX_KTXT_LEN);
    eval 'sub CLIENT_KRB_TIMEOUT () {4;}' unless defined(&CLIENT_KRB_TIMEOUT);
    eval 'sub CLIENT_KRB_RETRY () {5;}' unless defined(&CLIENT_KRB_RETRY);
    eval 'sub CLIENT_KRB_BUFLEN () {512;}' unless defined(&CLIENT_KRB_BUFLEN);
    eval 'sub R_TKT_FIL () {0;}' unless defined(&R_TKT_FIL);
    eval 'sub W_TKT_FIL () {1;}' unless defined(&W_TKT_FIL);
    eval 'sub CLOCK_SKEW () {5*60;}' unless defined(&CLOCK_SKEW);
    unless(defined(&KEYFILE)) {
	eval 'sub KEYFILE () {( &krb_get_default_keyfile());}' unless defined(&KEYFILE);
    }
    eval("sub PROTO_UDP () { 0; }") unless defined(&PROTO_UDP);
    eval("sub PROTO_TCP () { 1; }") unless defined(&PROTO_TCP);
    eval("sub PROTO_HTTP () { 2; }") unless defined(&PROTO_HTTP);
    eval 'sub TKT_FILE () { &tkt_string();}' unless defined(&TKT_FILE);
    unless(defined(&TKT_ROOT)) {
	eval 'sub TKT_ROOT () {( &krb_get_default_tkt_root());}' unless defined(&TKT_ROOT);
    }
    eval 'sub KDC_OK () {0;}' unless defined(&KDC_OK);
    eval 'sub KDC_NAME_EXP () {1;}' unless defined(&KDC_NAME_EXP);
    eval 'sub KDC_SERVICE_EXP () {2;}' unless defined(&KDC_SERVICE_EXP);
    eval 'sub KDC_AUTH_EXP () {3;}' unless defined(&KDC_AUTH_EXP);
    eval 'sub KDC_PKT_VER () {4;}' unless defined(&KDC_PKT_VER);
    eval 'sub KDC_P_MKEY_VER () {5;}' unless defined(&KDC_P_MKEY_VER);
    eval 'sub KDC_S_MKEY_VER () {6;}' unless defined(&KDC_S_MKEY_VER);
    eval 'sub KDC_BYTE_ORDER () {7;}' unless defined(&KDC_BYTE_ORDER);
    eval 'sub KDC_PR_UNKNOWN () {8;}' unless defined(&KDC_PR_UNKNOWN);
    eval 'sub KDC_PR_N_UNIQUE () {9;}' unless defined(&KDC_PR_N_UNIQUE);
    eval 'sub KDC_NULL_KEY () {10;}' unless defined(&KDC_NULL_KEY);
    eval 'sub KDC_GEN_ERR () {20;}' unless defined(&KDC_GEN_ERR);
    eval 'sub GC_OK () {0;}' unless defined(&GC_OK);
    eval 'sub RET_OK () {0;}' unless defined(&RET_OK);
    eval 'sub GC_TKFIL () {21;}' unless defined(&GC_TKFIL);
    eval 'sub RET_TKFIL () {21;}' unless defined(&RET_TKFIL);
    eval 'sub GC_NOTKT () {22;}' unless defined(&GC_NOTKT);
    eval 'sub RET_NOTKT () {22;}' unless defined(&RET_NOTKT);
    eval 'sub MK_AP_OK () {0;}' unless defined(&MK_AP_OK);
    eval 'sub MK_AP_TGTEXP () {26;}' unless defined(&MK_AP_TGTEXP);
    eval 'sub RD_AP_OK () {0;}' unless defined(&RD_AP_OK);
    eval 'sub RD_AP_UNDEC () {31;}' unless defined(&RD_AP_UNDEC);
    eval 'sub RD_AP_EXP () {32;}' unless defined(&RD_AP_EXP);
    eval 'sub RD_AP_NYV () {33;}' unless defined(&RD_AP_NYV);
    eval 'sub RD_AP_REPEAT () {34;}' unless defined(&RD_AP_REPEAT);
    eval 'sub RD_AP_NOT_US () {35;}' unless defined(&RD_AP_NOT_US);
    eval 'sub RD_AP_INCON () {36;}' unless defined(&RD_AP_INCON);
    eval 'sub RD_AP_TIME () {37;}' unless defined(&RD_AP_TIME);
    eval 'sub RD_AP_BADD () {38;}' unless defined(&RD_AP_BADD);
    eval 'sub RD_AP_VERSION () {39;}' unless defined(&RD_AP_VERSION);
    eval 'sub RD_AP_MSG_TYPE () {40;}' unless defined(&RD_AP_MSG_TYPE);
    eval 'sub RD_AP_MODIFIED () {41;}' unless defined(&RD_AP_MODIFIED);
    eval 'sub RD_AP_ORDER () {42;}' unless defined(&RD_AP_ORDER);
    eval 'sub RD_AP_UNAUTHOR () {43;}' unless defined(&RD_AP_UNAUTHOR);
    eval 'sub GT_PW_OK () {0;}' unless defined(&GT_PW_OK);
    eval 'sub GT_PW_NULL () {51;}' unless defined(&GT_PW_NULL);
    eval 'sub GT_PW_BADPW () {52;}' unless defined(&GT_PW_BADPW);
    eval 'sub GT_PW_PROT () {53;}' unless defined(&GT_PW_PROT);
    eval 'sub GT_PW_KDCERR () {54;}' unless defined(&GT_PW_KDCERR);
    eval 'sub GT_PW_NULLTKT () {55;}' unless defined(&GT_PW_NULLTKT);
    eval 'sub SKDC_OK () {0;}' unless defined(&SKDC_OK);
    eval 'sub SKDC_RETRY () {56;}' unless defined(&SKDC_RETRY);
    eval 'sub SKDC_CANT () {57;}' unless defined(&SKDC_CANT);
    eval 'sub INTK_OK () {0;}' unless defined(&INTK_OK);
    eval 'sub INTK_W_NOTALL () {61;}' unless defined(&INTK_W_NOTALL);
    eval 'sub INTK_BADPW () {62;}' unless defined(&INTK_BADPW);
    eval 'sub INTK_PROT () {63;}' unless defined(&INTK_PROT);
    eval 'sub INTK_ERR () {70;}' unless defined(&INTK_ERR);
    eval 'sub AD_OK () {0;}' unless defined(&AD_OK);
    eval 'sub AD_NOTGT () {71;}' unless defined(&AD_NOTGT);
    eval 'sub AD_INTR_RLM_NOTGT () {72;}' unless defined(&AD_INTR_RLM_NOTGT);
    eval 'sub NO_TKT_FIL () {76;}' unless defined(&NO_TKT_FIL);
    eval 'sub TKT_FIL_ACC () {77;}' unless defined(&TKT_FIL_ACC);
    eval 'sub TKT_FIL_LCK () {78;}' unless defined(&TKT_FIL_LCK);
    eval 'sub TKT_FIL_FMT () {79;}' unless defined(&TKT_FIL_FMT);
    eval 'sub TKT_FIL_INI () {80;}' unless defined(&TKT_FIL_INI);
    eval 'sub KNAME_FMT () {81;}' unless defined(&KNAME_FMT);
    eval 'sub SAFE_PRIV_ERROR () {-1;}' unless defined(&SAFE_PRIV_ERROR);
    eval 'sub KOPT_DONT_MK_REQ () {0x1;}' unless defined(&KOPT_DONT_MK_REQ);
    eval 'sub KOPT_DO_MUTUAL () {0x2;}' unless defined(&KOPT_DO_MUTUAL);
    eval 'sub KOPT_DONT_CANON () {0x4;}' unless defined(&KOPT_DONT_CANON);
    eval 'sub KOPT_IGNORE_PROTOCOL () {0x8;}' unless defined(&KOPT_IGNORE_PROTOCOL);
    eval 'sub KRB_SENDAUTH_VLEN () {8;}' unless defined(&KRB_SENDAUTH_VLEN);
    eval 'sub KRB_VERIFY_NOT_SECURE () {0;}' unless defined(&KRB_VERIFY_NOT_SECURE);
    eval 'sub KRB_VERIFY_SECURE () {1;}' unless defined(&KRB_VERIFY_SECURE);
    eval 'sub KRB_VERIFY_SECURE_FAIL () {2;}' unless defined(&KRB_VERIFY_SECURE_FAIL);
    require 'krb-protos.ph';
}
1;
