require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&OPENSSL_TS_H)) {
    eval 'sub OPENSSL_TS_H () {1;}' unless defined(&OPENSSL_TS_H);
    require 'openssl/macros.ph';
    unless(defined(&OPENSSL_NO_DEPRECATED_3_0)) {
	eval 'sub HEADER_TS_H () {1;}' unless defined(&HEADER_TS_H);
    }
    require 'openssl/opensslconf.ph';
    unless(defined(&OPENSSL_NO_TS)) {
	require 'openssl/symhacks.ph';
	require 'openssl/buffer.ph';
	require 'openssl/evp.ph';
	require 'openssl/bio.ph';
	require 'openssl/asn1.ph';
	require 'openssl/safestack.ph';
	require 'openssl/rsa.ph';
	require 'openssl/dsa.ph';
	require 'openssl/dh.ph';
	require 'openssl/tserr.ph';
	require 'openssl/ess.ph';
	if(defined(&__cplusplus)) {
	}
	require 'openssl/x509.ph';
	require 'openssl/x509v3.ph';
	eval 'sub TS_STATUS_GRANTED () {0;}' unless defined(&TS_STATUS_GRANTED);
	eval 'sub TS_STATUS_GRANTED_WITH_MODS () {1;}' unless defined(&TS_STATUS_GRANTED_WITH_MODS);
	eval 'sub TS_STATUS_REJECTION () {2;}' unless defined(&TS_STATUS_REJECTION);
	eval 'sub TS_STATUS_WAITING () {3;}' unless defined(&TS_STATUS_WAITING);
	eval 'sub TS_STATUS_REVOCATION_WARNING () {4;}' unless defined(&TS_STATUS_REVOCATION_WARNING);
	eval 'sub TS_STATUS_REVOCATION_NOTIFICATION () {5;}' unless defined(&TS_STATUS_REVOCATION_NOTIFICATION);
	eval 'sub TS_INFO_BAD_ALG () {0;}' unless defined(&TS_INFO_BAD_ALG);
	eval 'sub TS_INFO_BAD_REQUEST () {2;}' unless defined(&TS_INFO_BAD_REQUEST);
	eval 'sub TS_INFO_BAD_DATA_FORMAT () {5;}' unless defined(&TS_INFO_BAD_DATA_FORMAT);
	eval 'sub TS_INFO_TIME_NOT_AVAILABLE () {14;}' unless defined(&TS_INFO_TIME_NOT_AVAILABLE);
	eval 'sub TS_INFO_UNACCEPTED_POLICY () {15;}' unless defined(&TS_INFO_UNACCEPTED_POLICY);
	eval 'sub TS_INFO_UNACCEPTED_EXTENSION () {16;}' unless defined(&TS_INFO_UNACCEPTED_EXTENSION);
	eval 'sub TS_INFO_ADD_INFO_NOT_AVAILABLE () {17;}' unless defined(&TS_INFO_ADD_INFO_NOT_AVAILABLE);
	eval 'sub TS_INFO_SYSTEM_FAILURE () {25;}' unless defined(&TS_INFO_SYSTEM_FAILURE);
	unless(defined(&OPENSSL_NO_STDIO)) {
	}
	unless(defined(&OPENSSL_NO_STDIO)) {
	}
	unless(defined(&OPENSSL_NO_STDIO)) {
	}
	unless(defined(&OPENSSL_NO_STDIO)) {
	}
	eval 'sub TS_TSA_NAME () {0x1;}' unless defined(&TS_TSA_NAME);
	eval 'sub TS_ORDERING () {0x2;}' unless defined(&TS_ORDERING);
	eval 'sub TS_ESS_CERT_ID_CHAIN () {0x4;}' unless defined(&TS_ESS_CERT_ID_CHAIN);
	eval 'sub TS_MAX_CLOCK_PRECISION_DIGITS () {6;}' unless defined(&TS_MAX_CLOCK_PRECISION_DIGITS);
	eval 'sub TS_MAX_STATUS_LENGTH () {(1024* 1024);}' unless defined(&TS_MAX_STATUS_LENGTH);
	eval 'sub TS_VFY_SIGNATURE () {(1 << 0);}' unless defined(&TS_VFY_SIGNATURE);
	eval 'sub TS_VFY_VERSION () {(1 << 1);}' unless defined(&TS_VFY_VERSION);
	eval 'sub TS_VFY_POLICY () {(1 << 2);}' unless defined(&TS_VFY_POLICY);
	eval 'sub TS_VFY_IMPRINT () {(1 << 3);}' unless defined(&TS_VFY_IMPRINT);
	eval 'sub TS_VFY_DATA () {(1 << 4);}' unless defined(&TS_VFY_DATA);
	eval 'sub TS_VFY_NONCE () {(1 << 5);}' unless defined(&TS_VFY_NONCE);
	eval 'sub TS_VFY_SIGNER () {(1 << 6);}' unless defined(&TS_VFY_SIGNER);
	eval 'sub TS_VFY_TSA_NAME () {(1 << 7);}' unless defined(&TS_VFY_TSA_NAME);
	eval 'sub TS_VFY_ALL_IMPRINT () {( &TS_VFY_SIGNATURE |  &TS_VFY_VERSION |  &TS_VFY_POLICY |  &TS_VFY_IMPRINT |  &TS_VFY_NONCE |  &TS_VFY_SIGNER |  &TS_VFY_TSA_NAME);}' unless defined(&TS_VFY_ALL_IMPRINT);
	eval 'sub TS_VFY_ALL_DATA () {( &TS_VFY_SIGNATURE |  &TS_VFY_VERSION |  &TS_VFY_POLICY |  &TS_VFY_DATA |  &TS_VFY_NONCE |  &TS_VFY_SIGNER |  &TS_VFY_TSA_NAME);}' unless defined(&TS_VFY_ALL_DATA);
	unless(defined(&OPENSSL_NO_DEPRECATED_3_0)) {
	    eval 'sub TS_VERIFY_CTS_set_certs {
	        my($ctx, $cert) = @_;
    		eval q( &TS_VERIFY_CTX_set_certs($ctx, $cert));
	    }' unless defined(&TS_VERIFY_CTS_set_certs);
	}
	unless(defined(&OPENSSL_NO_ENGINE)) {
	}
	if(defined(&__cplusplus)) {
	}
    }
}
1;
