require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&__KCM_H__)) {
    eval 'sub __KCM_H__ () {1;}' unless defined(&__KCM_H__);
    eval 'sub KCM_PROTOCOL_VERSION_MAJOR () {2;}' unless defined(&KCM_PROTOCOL_VERSION_MAJOR);
    eval 'sub KCM_PROTOCOL_VERSION_MINOR () {0;}' unless defined(&KCM_PROTOCOL_VERSION_MINOR);
    eval("sub KCM_OP_NOOP () { 0; }") unless defined(&KCM_OP_NOOP);
    eval("sub KCM_OP_GET_NAME () { 1; }") unless defined(&KCM_OP_GET_NAME);
    eval("sub KCM_OP_RESOLVE () { 2; }") unless defined(&KCM_OP_RESOLVE);
    eval("sub KCM_OP_GEN_NEW () { 3; }") unless defined(&KCM_OP_GEN_NEW);
    eval("sub KCM_OP_INITIALIZE () { 4; }") unless defined(&KCM_OP_INITIALIZE);
    eval("sub KCM_OP_DESTROY () { 5; }") unless defined(&KCM_OP_DESTROY);
    eval("sub KCM_OP_STORE () { 6; }") unless defined(&KCM_OP_STORE);
    eval("sub KCM_OP_RETRIEVE () { 7; }") unless defined(&KCM_OP_RETRIEVE);
    eval("sub KCM_OP_GET_PRINCIPAL () { 8; }") unless defined(&KCM_OP_GET_PRINCIPAL);
    eval("sub KCM_OP_GET_CRED_UUID_LIST () { 9; }") unless defined(&KCM_OP_GET_CRED_UUID_LIST);
    eval("sub KCM_OP_GET_CRED_BY_UUID () { 10; }") unless defined(&KCM_OP_GET_CRED_BY_UUID);
    eval("sub KCM_OP_REMOVE_CRED () { 11; }") unless defined(&KCM_OP_REMOVE_CRED);
    eval("sub KCM_OP_SET_FLAGS () { 12; }") unless defined(&KCM_OP_SET_FLAGS);
    eval("sub KCM_OP_CHOWN () { 13; }") unless defined(&KCM_OP_CHOWN);
    eval("sub KCM_OP_CHMOD () { 14; }") unless defined(&KCM_OP_CHMOD);
    eval("sub KCM_OP_GET_INITIAL_TICKET () { 15; }") unless defined(&KCM_OP_GET_INITIAL_TICKET);
    eval("sub KCM_OP_GET_TICKET () { 16; }") unless defined(&KCM_OP_GET_TICKET);
    eval("sub KCM_OP_MOVE_CACHE () { 17; }") unless defined(&KCM_OP_MOVE_CACHE);
    eval("sub KCM_OP_GET_CACHE_UUID_LIST () { 18; }") unless defined(&KCM_OP_GET_CACHE_UUID_LIST);
    eval("sub KCM_OP_GET_CACHE_BY_UUID () { 19; }") unless defined(&KCM_OP_GET_CACHE_BY_UUID);
    eval("sub KCM_OP_GET_DEFAULT_CACHE () { 20; }") unless defined(&KCM_OP_GET_DEFAULT_CACHE);
    eval("sub KCM_OP_SET_DEFAULT_CACHE () { 21; }") unless defined(&KCM_OP_SET_DEFAULT_CACHE);
    eval("sub KCM_OP_GET_KDC_OFFSET () { 22; }") unless defined(&KCM_OP_GET_KDC_OFFSET);
    eval("sub KCM_OP_SET_KDC_OFFSET () { 23; }") unless defined(&KCM_OP_SET_KDC_OFFSET);
    eval("sub KCM_OP_ADD_NTLM_CRED () { 24; }") unless defined(&KCM_OP_ADD_NTLM_CRED);
    eval("sub KCM_OP_HAVE_NTLM_CRED () { 25; }") unless defined(&KCM_OP_HAVE_NTLM_CRED);
    eval("sub KCM_OP_DEL_NTLM_CRED () { 26; }") unless defined(&KCM_OP_DEL_NTLM_CRED);
    eval("sub KCM_OP_DO_NTLM_AUTH () { 27; }") unless defined(&KCM_OP_DO_NTLM_AUTH);
    eval("sub KCM_OP_GET_NTLM_USER_LIST () { 28; }") unless defined(&KCM_OP_GET_NTLM_USER_LIST);
    eval("sub KCM_OP_MAX () { 29; }") unless defined(&KCM_OP_MAX);
    eval 'sub _PATH_KCM_SOCKET () {"/var/run/.kcm_socket";}' unless defined(&_PATH_KCM_SOCKET);
    eval 'sub _PATH_KCM_DOOR () {"/var/run/.kcm_door";}' unless defined(&_PATH_KCM_DOOR);
    eval 'sub KCM_NTLM_FLAG_SESSIONKEY () {1;}' unless defined(&KCM_NTLM_FLAG_SESSIONKEY);
    eval 'sub KCM_NTLM_FLAG_NTLM2_SESSION () {2;}' unless defined(&KCM_NTLM_FLAG_NTLM2_SESSION);
    eval 'sub KCM_NTLM_FLAG_KEYEX () {4;}' unless defined(&KCM_NTLM_FLAG_KEYEX);
    eval 'sub KCM_NTLM_FLAG_AV_GUEST () {8;}' unless defined(&KCM_NTLM_FLAG_AV_GUEST);
}
1;
