require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&OPENSSL_X509ERR_H)) {
    eval 'sub OPENSSL_X509ERR_H () {1;}' unless defined(&OPENSSL_X509ERR_H);
    require 'openssl/opensslconf.ph';
    require 'openssl/symhacks.ph';
    require 'openssl/cryptoerr_legacy.ph';
    eval 'sub X509_R_AKID_MISMATCH () {110;}' unless defined(&X509_R_AKID_MISMATCH);
    eval 'sub X509_R_BAD_SELECTOR () {133;}' unless defined(&X509_R_BAD_SELECTOR);
    eval 'sub X509_R_BAD_X509_FILETYPE () {100;}' unless defined(&X509_R_BAD_X509_FILETYPE);
    eval 'sub X509_R_BASE64_DECODE_ERROR () {118;}' unless defined(&X509_R_BASE64_DECODE_ERROR);
    eval 'sub X509_R_CANT_CHECK_DH_KEY () {114;}' unless defined(&X509_R_CANT_CHECK_DH_KEY);
    eval 'sub X509_R_CERTIFICATE_VERIFICATION_FAILED () {139;}' unless defined(&X509_R_CERTIFICATE_VERIFICATION_FAILED);
    eval 'sub X509_R_CERT_ALREADY_IN_HASH_TABLE () {101;}' unless defined(&X509_R_CERT_ALREADY_IN_HASH_TABLE);
    eval 'sub X509_R_CRL_ALREADY_DELTA () {127;}' unless defined(&X509_R_CRL_ALREADY_DELTA);
    eval 'sub X509_R_CRL_VERIFY_FAILURE () {131;}' unless defined(&X509_R_CRL_VERIFY_FAILURE);
    eval 'sub X509_R_DUPLICATE_ATTRIBUTE () {140;}' unless defined(&X509_R_DUPLICATE_ATTRIBUTE);
    eval 'sub X509_R_ERROR_GETTING_MD_BY_NID () {141;}' unless defined(&X509_R_ERROR_GETTING_MD_BY_NID);
    eval 'sub X509_R_ERROR_USING_SIGINF_SET () {142;}' unless defined(&X509_R_ERROR_USING_SIGINF_SET);
    eval 'sub X509_R_IDP_MISMATCH () {128;}' unless defined(&X509_R_IDP_MISMATCH);
    eval 'sub X509_R_INVALID_ATTRIBUTES () {138;}' unless defined(&X509_R_INVALID_ATTRIBUTES);
    eval 'sub X509_R_INVALID_DIRECTORY () {113;}' unless defined(&X509_R_INVALID_DIRECTORY);
    eval 'sub X509_R_INVALID_DISTPOINT () {143;}' unless defined(&X509_R_INVALID_DISTPOINT);
    eval 'sub X509_R_INVALID_FIELD_NAME () {119;}' unless defined(&X509_R_INVALID_FIELD_NAME);
    eval 'sub X509_R_INVALID_TRUST () {123;}' unless defined(&X509_R_INVALID_TRUST);
    eval 'sub X509_R_ISSUER_MISMATCH () {129;}' unless defined(&X509_R_ISSUER_MISMATCH);
    eval 'sub X509_R_KEY_TYPE_MISMATCH () {115;}' unless defined(&X509_R_KEY_TYPE_MISMATCH);
    eval 'sub X509_R_KEY_VALUES_MISMATCH () {116;}' unless defined(&X509_R_KEY_VALUES_MISMATCH);
    eval 'sub X509_R_LOADING_CERT_DIR () {103;}' unless defined(&X509_R_LOADING_CERT_DIR);
    eval 'sub X509_R_LOADING_DEFAULTS () {104;}' unless defined(&X509_R_LOADING_DEFAULTS);
    eval 'sub X509_R_METHOD_NOT_SUPPORTED () {124;}' unless defined(&X509_R_METHOD_NOT_SUPPORTED);
    eval 'sub X509_R_NAME_TOO_LONG () {134;}' unless defined(&X509_R_NAME_TOO_LONG);
    eval 'sub X509_R_NEWER_CRL_NOT_NEWER () {132;}' unless defined(&X509_R_NEWER_CRL_NOT_NEWER);
    eval 'sub X509_R_NO_CERTIFICATE_FOUND () {135;}' unless defined(&X509_R_NO_CERTIFICATE_FOUND);
    eval 'sub X509_R_NO_CERTIFICATE_OR_CRL_FOUND () {136;}' unless defined(&X509_R_NO_CERTIFICATE_OR_CRL_FOUND);
    eval 'sub X509_R_NO_CERT_SET_FOR_US_TO_VERIFY () {105;}' unless defined(&X509_R_NO_CERT_SET_FOR_US_TO_VERIFY);
    eval 'sub X509_R_NO_CRL_FOUND () {137;}' unless defined(&X509_R_NO_CRL_FOUND);
    eval 'sub X509_R_NO_CRL_NUMBER () {130;}' unless defined(&X509_R_NO_CRL_NUMBER);
    eval 'sub X509_R_PUBLIC_KEY_DECODE_ERROR () {125;}' unless defined(&X509_R_PUBLIC_KEY_DECODE_ERROR);
    eval 'sub X509_R_PUBLIC_KEY_ENCODE_ERROR () {126;}' unless defined(&X509_R_PUBLIC_KEY_ENCODE_ERROR);
    eval 'sub X509_R_SHOULD_RETRY () {106;}' unless defined(&X509_R_SHOULD_RETRY);
    eval 'sub X509_R_UNABLE_TO_FIND_PARAMETERS_IN_CHAIN () {107;}' unless defined(&X509_R_UNABLE_TO_FIND_PARAMETERS_IN_CHAIN);
    eval 'sub X509_R_UNABLE_TO_GET_CERTS_PUBLIC_KEY () {108;}' unless defined(&X509_R_UNABLE_TO_GET_CERTS_PUBLIC_KEY);
    eval 'sub X509_R_UNKNOWN_KEY_TYPE () {117;}' unless defined(&X509_R_UNKNOWN_KEY_TYPE);
    eval 'sub X509_R_UNKNOWN_NID () {109;}' unless defined(&X509_R_UNKNOWN_NID);
    eval 'sub X509_R_UNKNOWN_PURPOSE_ID () {121;}' unless defined(&X509_R_UNKNOWN_PURPOSE_ID);
    eval 'sub X509_R_UNKNOWN_SIGID_ALGS () {144;}' unless defined(&X509_R_UNKNOWN_SIGID_ALGS);
    eval 'sub X509_R_UNKNOWN_TRUST_ID () {120;}' unless defined(&X509_R_UNKNOWN_TRUST_ID);
    eval 'sub X509_R_UNSUPPORTED_ALGORITHM () {111;}' unless defined(&X509_R_UNSUPPORTED_ALGORITHM);
    eval 'sub X509_R_WRONG_LOOKUP_TYPE () {112;}' unless defined(&X509_R_WRONG_LOOKUP_TYPE);
    eval 'sub X509_R_WRONG_TYPE () {122;}' unless defined(&X509_R_WRONG_TYPE);
}
1;
