require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&HEADER_TS_H)) {
    eval 'sub HEADER_TS_H () {1;}' unless defined(&HEADER_TS_H);
    require 'openssl/opensslconf.ph';
    require 'openssl/symhacks.ph';
    unless(defined(&OPENSSL_NO_BUFFER)) {
	require 'openssl/buffer.ph';
    }
    unless(defined(&OPENSSL_NO_EVP)) {
	require 'openssl/evp.ph';
    }
    unless(defined(&OPENSSL_NO_BIO)) {
	require 'openssl/bio.ph';
    }
    require 'openssl/stack.ph';
    require 'openssl/asn1.ph';
    require 'openssl/safestack.ph';
    unless(defined(&OPENSSL_NO_RSA)) {
	require 'openssl/rsa.ph';
    }
    unless(defined(&OPENSSL_NO_DSA)) {
	require 'openssl/dsa.ph';
    }
    unless(defined(&OPENSSL_NO_DH)) {
	require 'openssl/dh.ph';
    }
    require 'openssl/evp.ph';
    if(defined(&__cplusplus)) {
    }
    if(defined(&WIN32)) {
	undef(&X509_NAME) if defined(&X509_NAME);
    }
    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);
    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_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);
    eval 'sub TS_F_D2I_TS_RESP () {147;}' unless defined(&TS_F_D2I_TS_RESP);
    eval 'sub TS_F_DEF_SERIAL_CB () {110;}' unless defined(&TS_F_DEF_SERIAL_CB);
    eval 'sub TS_F_DEF_TIME_CB () {111;}' unless defined(&TS_F_DEF_TIME_CB);
    eval 'sub TS_F_ESS_ADD_SIGNING_CERT () {112;}' unless defined(&TS_F_ESS_ADD_SIGNING_CERT);
    eval 'sub TS_F_ESS_CERT_ID_NEW_INIT () {113;}' unless defined(&TS_F_ESS_CERT_ID_NEW_INIT);
    eval 'sub TS_F_ESS_SIGNING_CERT_NEW_INIT () {114;}' unless defined(&TS_F_ESS_SIGNING_CERT_NEW_INIT);
    eval 'sub TS_F_INT_TS_RESP_VERIFY_TOKEN () {149;}' unless defined(&TS_F_INT_TS_RESP_VERIFY_TOKEN);
    eval 'sub TS_F_PKCS7_TO_TS_TST_INFO () {148;}' unless defined(&TS_F_PKCS7_TO_TS_TST_INFO);
    eval 'sub TS_F_TS_ACCURACY_SET_MICROS () {115;}' unless defined(&TS_F_TS_ACCURACY_SET_MICROS);
    eval 'sub TS_F_TS_ACCURACY_SET_MILLIS () {116;}' unless defined(&TS_F_TS_ACCURACY_SET_MILLIS);
    eval 'sub TS_F_TS_ACCURACY_SET_SECONDS () {117;}' unless defined(&TS_F_TS_ACCURACY_SET_SECONDS);
    eval 'sub TS_F_TS_CHECK_IMPRINTS () {100;}' unless defined(&TS_F_TS_CHECK_IMPRINTS);
    eval 'sub TS_F_TS_CHECK_NONCES () {101;}' unless defined(&TS_F_TS_CHECK_NONCES);
    eval 'sub TS_F_TS_CHECK_POLICY () {102;}' unless defined(&TS_F_TS_CHECK_POLICY);
    eval 'sub TS_F_TS_CHECK_SIGNING_CERTS () {103;}' unless defined(&TS_F_TS_CHECK_SIGNING_CERTS);
    eval 'sub TS_F_TS_CHECK_STATUS_INFO () {104;}' unless defined(&TS_F_TS_CHECK_STATUS_INFO);
    eval 'sub TS_F_TS_COMPUTE_IMPRINT () {145;}' unless defined(&TS_F_TS_COMPUTE_IMPRINT);
    eval 'sub TS_F_TS_CONF_SET_DEFAULT_ENGINE () {146;}' unless defined(&TS_F_TS_CONF_SET_DEFAULT_ENGINE);
    eval 'sub TS_F_TS_GET_STATUS_TEXT () {105;}' unless defined(&TS_F_TS_GET_STATUS_TEXT);
    eval 'sub TS_F_TS_MSG_IMPRINT_SET_ALGO () {118;}' unless defined(&TS_F_TS_MSG_IMPRINT_SET_ALGO);
    eval 'sub TS_F_TS_REQ_SET_MSG_IMPRINT () {119;}' unless defined(&TS_F_TS_REQ_SET_MSG_IMPRINT);
    eval 'sub TS_F_TS_REQ_SET_NONCE () {120;}' unless defined(&TS_F_TS_REQ_SET_NONCE);
    eval 'sub TS_F_TS_REQ_SET_POLICY_ID () {121;}' unless defined(&TS_F_TS_REQ_SET_POLICY_ID);
    eval 'sub TS_F_TS_RESP_CREATE_RESPONSE () {122;}' unless defined(&TS_F_TS_RESP_CREATE_RESPONSE);
    eval 'sub TS_F_TS_RESP_CREATE_TST_INFO () {123;}' unless defined(&TS_F_TS_RESP_CREATE_TST_INFO);
    eval 'sub TS_F_TS_RESP_CTX_ADD_FAILURE_INFO () {124;}' unless defined(&TS_F_TS_RESP_CTX_ADD_FAILURE_INFO);
    eval 'sub TS_F_TS_RESP_CTX_ADD_MD () {125;}' unless defined(&TS_F_TS_RESP_CTX_ADD_MD);
    eval 'sub TS_F_TS_RESP_CTX_ADD_POLICY () {126;}' unless defined(&TS_F_TS_RESP_CTX_ADD_POLICY);
    eval 'sub TS_F_TS_RESP_CTX_NEW () {127;}' unless defined(&TS_F_TS_RESP_CTX_NEW);
    eval 'sub TS_F_TS_RESP_CTX_SET_ACCURACY () {128;}' unless defined(&TS_F_TS_RESP_CTX_SET_ACCURACY);
    eval 'sub TS_F_TS_RESP_CTX_SET_CERTS () {129;}' unless defined(&TS_F_TS_RESP_CTX_SET_CERTS);
    eval 'sub TS_F_TS_RESP_CTX_SET_DEF_POLICY () {130;}' unless defined(&TS_F_TS_RESP_CTX_SET_DEF_POLICY);
    eval 'sub TS_F_TS_RESP_CTX_SET_SIGNER_CERT () {131;}' unless defined(&TS_F_TS_RESP_CTX_SET_SIGNER_CERT);
    eval 'sub TS_F_TS_RESP_CTX_SET_STATUS_INFO () {132;}' unless defined(&TS_F_TS_RESP_CTX_SET_STATUS_INFO);
    eval 'sub TS_F_TS_RESP_GET_POLICY () {133;}' unless defined(&TS_F_TS_RESP_GET_POLICY);
    eval 'sub TS_F_TS_RESP_SET_GENTIME_WITH_PRECISION () {134;}' unless defined(&TS_F_TS_RESP_SET_GENTIME_WITH_PRECISION);
    eval 'sub TS_F_TS_RESP_SET_STATUS_INFO () {135;}' unless defined(&TS_F_TS_RESP_SET_STATUS_INFO);
    eval 'sub TS_F_TS_RESP_SET_TST_INFO () {150;}' unless defined(&TS_F_TS_RESP_SET_TST_INFO);
    eval 'sub TS_F_TS_RESP_SIGN () {136;}' unless defined(&TS_F_TS_RESP_SIGN);
    eval 'sub TS_F_TS_RESP_VERIFY_SIGNATURE () {106;}' unless defined(&TS_F_TS_RESP_VERIFY_SIGNATURE);
    eval 'sub TS_F_TS_RESP_VERIFY_TOKEN () {107;}' unless defined(&TS_F_TS_RESP_VERIFY_TOKEN);
    eval 'sub TS_F_TS_TST_INFO_SET_ACCURACY () {137;}' unless defined(&TS_F_TS_TST_INFO_SET_ACCURACY);
    eval 'sub TS_F_TS_TST_INFO_SET_MSG_IMPRINT () {138;}' unless defined(&TS_F_TS_TST_INFO_SET_MSG_IMPRINT);
    eval 'sub TS_F_TS_TST_INFO_SET_NONCE () {139;}' unless defined(&TS_F_TS_TST_INFO_SET_NONCE);
    eval 'sub TS_F_TS_TST_INFO_SET_POLICY_ID () {140;}' unless defined(&TS_F_TS_TST_INFO_SET_POLICY_ID);
    eval 'sub TS_F_TS_TST_INFO_SET_SERIAL () {141;}' unless defined(&TS_F_TS_TST_INFO_SET_SERIAL);
    eval 'sub TS_F_TS_TST_INFO_SET_TIME () {142;}' unless defined(&TS_F_TS_TST_INFO_SET_TIME);
    eval 'sub TS_F_TS_TST_INFO_SET_TSA () {143;}' unless defined(&TS_F_TS_TST_INFO_SET_TSA);
    eval 'sub TS_F_TS_VERIFY () {108;}' unless defined(&TS_F_TS_VERIFY);
    eval 'sub TS_F_TS_VERIFY_CERT () {109;}' unless defined(&TS_F_TS_VERIFY_CERT);
    eval 'sub TS_F_TS_VERIFY_CTX_NEW () {144;}' unless defined(&TS_F_TS_VERIFY_CTX_NEW);
    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_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_D2I_TS_RESP_INT_FAILED () {128;}' unless defined(&TS_R_D2I_TS_RESP_INT_FAILED);
    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_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_WRONG_CONTENT_TYPE () {114;}' unless defined(&TS_R_WRONG_CONTENT_TYPE);
    if(defined(&__cplusplus)) {
    }
}
1;
