require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&OPENSSL_CTERR_H)) {
    eval 'sub OPENSSL_CTERR_H () {1;}' unless defined(&OPENSSL_CTERR_H);
    require 'openssl/opensslconf.ph';
    require 'openssl/symhacks.ph';
    require 'openssl/cryptoerr_legacy.ph';
    unless(defined(&OPENSSL_NO_CT)) {
	eval 'sub CT_R_BASE64_DECODE_ERROR () {108;}' unless defined(&CT_R_BASE64_DECODE_ERROR);
	eval 'sub CT_R_INVALID_LOG_ID_LENGTH () {100;}' unless defined(&CT_R_INVALID_LOG_ID_LENGTH);
	eval 'sub CT_R_LOG_CONF_INVALID () {109;}' unless defined(&CT_R_LOG_CONF_INVALID);
	eval 'sub CT_R_LOG_CONF_INVALID_KEY () {110;}' unless defined(&CT_R_LOG_CONF_INVALID_KEY);
	eval 'sub CT_R_LOG_CONF_MISSING_DESCRIPTION () {111;}' unless defined(&CT_R_LOG_CONF_MISSING_DESCRIPTION);
	eval 'sub CT_R_LOG_CONF_MISSING_KEY () {112;}' unless defined(&CT_R_LOG_CONF_MISSING_KEY);
	eval 'sub CT_R_LOG_KEY_INVALID () {113;}' unless defined(&CT_R_LOG_KEY_INVALID);
	eval 'sub CT_R_SCT_FUTURE_TIMESTAMP () {116;}' unless defined(&CT_R_SCT_FUTURE_TIMESTAMP);
	eval 'sub CT_R_SCT_INVALID () {104;}' unless defined(&CT_R_SCT_INVALID);
	eval 'sub CT_R_SCT_INVALID_SIGNATURE () {107;}' unless defined(&CT_R_SCT_INVALID_SIGNATURE);
	eval 'sub CT_R_SCT_LIST_INVALID () {105;}' unless defined(&CT_R_SCT_LIST_INVALID);
	eval 'sub CT_R_SCT_LOG_ID_MISMATCH () {114;}' unless defined(&CT_R_SCT_LOG_ID_MISMATCH);
	eval 'sub CT_R_SCT_NOT_SET () {106;}' unless defined(&CT_R_SCT_NOT_SET);
	eval 'sub CT_R_SCT_UNSUPPORTED_VERSION () {115;}' unless defined(&CT_R_SCT_UNSUPPORTED_VERSION);
	eval 'sub CT_R_UNRECOGNIZED_SIGNATURE_NID () {101;}' unless defined(&CT_R_UNRECOGNIZED_SIGNATURE_NID);
	eval 'sub CT_R_UNSUPPORTED_ENTRY_TYPE () {102;}' unless defined(&CT_R_UNSUPPORTED_ENTRY_TYPE);
	eval 'sub CT_R_UNSUPPORTED_VERSION () {103;}' unless defined(&CT_R_UNSUPPORTED_VERSION);
    }
}
1;
