require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_RPC_AUTH_H)) {
    eval 'sub _RPC_AUTH_H () {1;}' unless defined(&_RPC_AUTH_H);
    require 'sys/cdefs.ph';
    eval 'sub MAX_AUTH_BYTES () {400;}' unless defined(&MAX_AUTH_BYTES);
    eval 'sub MAXNETNAMELEN () {255;}' unless defined(&MAXNETNAMELEN);
    eval("sub AUTH_OK () { 0; }") unless defined(&AUTH_OK);
    eval("sub AUTH_BADCRED () { 1; }") unless defined(&AUTH_BADCRED);
    eval("sub AUTH_REJECTEDCRED () { 2; }") unless defined(&AUTH_REJECTEDCRED);
    eval("sub AUTH_BADVERF () { 3; }") unless defined(&AUTH_BADVERF);
    eval("sub AUTH_REJECTEDVERF () { 4; }") unless defined(&AUTH_REJECTEDVERF);
    eval("sub AUTH_TOOWEAK () { 5; }") unless defined(&AUTH_TOOWEAK);
    eval("sub AUTH_INVALIDRESP () { 6; }") unless defined(&AUTH_INVALIDRESP);
    eval("sub AUTH_FAILED () { 7; }") unless defined(&AUTH_FAILED);
    eval 'sub AUTH_NEXTVERF {
        my($auth) = @_;
	    eval q(((*(($auth)-> ($ah_ops->{ah_nextverf})))($auth)));
    }' unless defined(&AUTH_NEXTVERF);
    eval 'sub auth_nextverf {
        my($auth) = @_;
	    eval q(((*(($auth)-> ($ah_ops->{ah_nextverf})))($auth)));
    }' unless defined(&auth_nextverf);
    eval 'sub AUTH_MARSHALL {
        my($auth, $xdrs) = @_;
	    eval q(((*(($auth)-> ($ah_ops->{ah_marshal})))($auth, $xdrs)));
    }' unless defined(&AUTH_MARSHALL);
    eval 'sub auth_marshall {
        my($auth, $xdrs) = @_;
	    eval q(((*(($auth)-> ($ah_ops->{ah_marshal})))($auth, $xdrs)));
    }' unless defined(&auth_marshall);
    eval 'sub AUTH_VALIDATE {
        my($auth, $verfp) = @_;
	    eval q(((*(($auth)-> ($ah_ops->{ah_validate})))(($auth), $verfp)));
    }' unless defined(&AUTH_VALIDATE);
    eval 'sub auth_validate {
        my($auth, $verfp) = @_;
	    eval q(((*(($auth)-> ($ah_ops->{ah_validate})))(($auth), $verfp)));
    }' unless defined(&auth_validate);
    eval 'sub AUTH_REFRESH {
        my($auth) = @_;
	    eval q(((*(($auth)-> ($ah_ops->{ah_refresh})))($auth)));
    }' unless defined(&AUTH_REFRESH);
    eval 'sub auth_refresh {
        my($auth) = @_;
	    eval q(((*(($auth)-> ($ah_ops->{ah_refresh})))($auth)));
    }' unless defined(&auth_refresh);
    eval 'sub AUTH_DESTROY {
        my($auth) = @_;
	    eval q(((*(($auth)-> ($ah_ops->{ah_destroy})))($auth)));
    }' unless defined(&AUTH_DESTROY);
    eval 'sub auth_destroy {
        my($auth) = @_;
	    eval q(((*(($auth)-> ($ah_ops->{ah_destroy})))($auth)));
    }' unless defined(&auth_destroy);
    eval 'sub AUTH_NONE () {0;}' unless defined(&AUTH_NONE);
    eval 'sub AUTH_NULL () {0;}' unless defined(&AUTH_NULL);
    eval 'sub AUTH_UNIX () {1;}' unless defined(&AUTH_UNIX);
    eval 'sub AUTH_SHORT () {2;}' unless defined(&AUTH_SHORT);
    eval 'sub AUTH_DES () {3;}' unless defined(&AUTH_DES);
}
1;
