require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&OPENSSL_TSERR_H)) {
    eval 'sub OPENSSL_TSERR_H () {1;}' unless defined(&OPENSSL_TSERR_H);
    require 'openssl/opensslconf.ph';
    require 'openssl/symhacks.ph';
    require 'openssl/cryptoerr_legacy.ph';
    unless(defined(&OPENSSL_NO_TS)) {
	eval 'sub TS_R_BAD_PKCS7_TYPE () {132;}' unless defined(&TS_R_BAD_PKCS7_TYPE);
	eval 'sub TS_R_BAD_TYPE () {133;}' unless defined(&TS_R_BAD_TYPE);
	eval 'sub TS_R_CANNOT_LOAD_CERT () {137;}' unless defined(&TS_R_CANNOT_LOAD_CERT);
	eval 'sub TS_R_CANNOT_LOAD_KEY () {138;}' unless defined(&TS_R_CANNOT_LOAD_KEY);
	eval 'sub TS_R_CERTIFICATE_VERIFY_ERROR () {100;}' unless defined(&TS_R_CERTIFICATE_VERIFY_ERROR);
	eval 'sub TS_R_COULD_NOT_SET_ENGINE () {127;}' unless defined(&TS_R_COULD_NOT_SET_ENGINE);
	eval 'sub TS_R_COULD_NOT_SET_TIME () {115;}' unless defined(&TS_R_COULD_NOT_SET_TIME);
	eval 'sub TS_R_DETACHED_CONTENT () {134;}' unless defined(&TS_R_DETACHED_CONTENT);
	eval 'sub TS_R_ESS_ADD_SIGNING_CERT_ERROR () {116;}' unless defined(&TS_R_ESS_ADD_SIGNING_CERT_ERROR);
	eval 'sub TS_R_ESS_ADD_SIGNING_CERT_V2_ERROR () {139;}' unless defined(&TS_R_ESS_ADD_SIGNING_CERT_V2_ERROR);
	eval 'sub TS_R_ESS_SIGNING_CERTIFICATE_ERROR () {101;}' unless defined(&TS_R_ESS_SIGNING_CERTIFICATE_ERROR);
	eval 'sub TS_R_INVALID_NULL_POINTER () {102;}' unless defined(&TS_R_INVALID_NULL_POINTER);
	eval 'sub TS_R_INVALID_SIGNER_CERTIFICATE_PURPOSE () {117;}' unless defined(&TS_R_INVALID_SIGNER_CERTIFICATE_PURPOSE);
	eval 'sub TS_R_MESSAGE_IMPRINT_MISMATCH () {103;}' unless defined(&TS_R_MESSAGE_IMPRINT_MISMATCH);
	eval 'sub TS_R_NONCE_MISMATCH () {104;}' unless defined(&TS_R_NONCE_MISMATCH);
	eval 'sub TS_R_NONCE_NOT_RETURNED () {105;}' unless defined(&TS_R_NONCE_NOT_RETURNED);
	eval 'sub TS_R_NO_CONTENT () {106;}' unless defined(&TS_R_NO_CONTENT);
	eval 'sub TS_R_NO_TIME_STAMP_TOKEN () {107;}' unless defined(&TS_R_NO_TIME_STAMP_TOKEN);
	eval 'sub TS_R_PKCS7_ADD_SIGNATURE_ERROR () {118;}' unless defined(&TS_R_PKCS7_ADD_SIGNATURE_ERROR);
	eval 'sub TS_R_PKCS7_ADD_SIGNED_ATTR_ERROR () {119;}' unless defined(&TS_R_PKCS7_ADD_SIGNED_ATTR_ERROR);
	eval 'sub TS_R_PKCS7_TO_TS_TST_INFO_FAILED () {129;}' unless defined(&TS_R_PKCS7_TO_TS_TST_INFO_FAILED);
	eval 'sub TS_R_POLICY_MISMATCH () {108;}' unless defined(&TS_R_POLICY_MISMATCH);
	eval 'sub TS_R_PRIVATE_KEY_DOES_NOT_MATCH_CERTIFICATE () {120;}' unless defined(&TS_R_PRIVATE_KEY_DOES_NOT_MATCH_CERTIFICATE);
	eval 'sub TS_R_RESPONSE_SETUP_ERROR () {121;}' unless defined(&TS_R_RESPONSE_SETUP_ERROR);
	eval 'sub TS_R_SIGNATURE_FAILURE () {109;}' unless defined(&TS_R_SIGNATURE_FAILURE);
	eval 'sub TS_R_THERE_MUST_BE_ONE_SIGNER () {110;}' unless defined(&TS_R_THERE_MUST_BE_ONE_SIGNER);
	eval 'sub TS_R_TIME_SYSCALL_ERROR () {122;}' unless defined(&TS_R_TIME_SYSCALL_ERROR);
	eval 'sub TS_R_TOKEN_NOT_PRESENT () {130;}' unless defined(&TS_R_TOKEN_NOT_PRESENT);
	eval 'sub TS_R_TOKEN_PRESENT () {131;}' unless defined(&TS_R_TOKEN_PRESENT);
	eval 'sub TS_R_TSA_NAME_MISMATCH () {111;}' unless defined(&TS_R_TSA_NAME_MISMATCH);
	eval 'sub TS_R_TSA_UNTRUSTED () {112;}' unless defined(&TS_R_TSA_UNTRUSTED);
	eval 'sub TS_R_TST_INFO_SETUP_ERROR () {123;}' unless defined(&TS_R_TST_INFO_SETUP_ERROR);
	eval 'sub TS_R_TS_DATASIGN () {124;}' unless defined(&TS_R_TS_DATASIGN);
	eval 'sub TS_R_UNACCEPTABLE_POLICY () {125;}' unless defined(&TS_R_UNACCEPTABLE_POLICY);
	eval 'sub TS_R_UNSUPPORTED_MD_ALGORITHM () {126;}' unless defined(&TS_R_UNSUPPORTED_MD_ALGORITHM);
	eval 'sub TS_R_UNSUPPORTED_VERSION () {113;}' unless defined(&TS_R_UNSUPPORTED_VERSION);
	eval 'sub TS_R_VAR_BAD_VALUE () {135;}' unless defined(&TS_R_VAR_BAD_VALUE);
	eval 'sub TS_R_VAR_LOOKUP_FAILURE () {136;}' unless defined(&TS_R_VAR_LOOKUP_FAILURE);
	eval 'sub TS_R_WRONG_CONTENT_TYPE () {114;}' unless defined(&TS_R_WRONG_CONTENT_TYPE);
    }
}
1;
