require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&OPENSSL_HTTPERR_H)) {
    eval 'sub OPENSSL_HTTPERR_H () {1;}' unless defined(&OPENSSL_HTTPERR_H);
    require 'openssl/opensslconf.ph';
    require 'openssl/symhacks.ph';
    require 'openssl/cryptoerr_legacy.ph';
    eval 'sub HTTP_R_ASN1_LEN_EXCEEDS_MAX_RESP_LEN () {108;}' unless defined(&HTTP_R_ASN1_LEN_EXCEEDS_MAX_RESP_LEN);
    eval 'sub HTTP_R_CONNECT_FAILURE () {100;}' unless defined(&HTTP_R_CONNECT_FAILURE);
    eval 'sub HTTP_R_ERROR_PARSING_ASN1_LENGTH () {109;}' unless defined(&HTTP_R_ERROR_PARSING_ASN1_LENGTH);
    eval 'sub HTTP_R_ERROR_PARSING_CONTENT_LENGTH () {119;}' unless defined(&HTTP_R_ERROR_PARSING_CONTENT_LENGTH);
    eval 'sub HTTP_R_ERROR_PARSING_URL () {101;}' unless defined(&HTTP_R_ERROR_PARSING_URL);
    eval 'sub HTTP_R_ERROR_RECEIVING () {103;}' unless defined(&HTTP_R_ERROR_RECEIVING);
    eval 'sub HTTP_R_ERROR_SENDING () {102;}' unless defined(&HTTP_R_ERROR_SENDING);
    eval 'sub HTTP_R_FAILED_READING_DATA () {128;}' unless defined(&HTTP_R_FAILED_READING_DATA);
    eval 'sub HTTP_R_HEADER_PARSE_ERROR () {126;}' unless defined(&HTTP_R_HEADER_PARSE_ERROR);
    eval 'sub HTTP_R_INCONSISTENT_CONTENT_LENGTH () {120;}' unless defined(&HTTP_R_INCONSISTENT_CONTENT_LENGTH);
    eval 'sub HTTP_R_INVALID_PORT_NUMBER () {123;}' unless defined(&HTTP_R_INVALID_PORT_NUMBER);
    eval 'sub HTTP_R_INVALID_URL_PATH () {125;}' unless defined(&HTTP_R_INVALID_URL_PATH);
    eval 'sub HTTP_R_INVALID_URL_SCHEME () {124;}' unless defined(&HTTP_R_INVALID_URL_SCHEME);
    eval 'sub HTTP_R_MAX_RESP_LEN_EXCEEDED () {117;}' unless defined(&HTTP_R_MAX_RESP_LEN_EXCEEDED);
    eval 'sub HTTP_R_MISSING_ASN1_ENCODING () {110;}' unless defined(&HTTP_R_MISSING_ASN1_ENCODING);
    eval 'sub HTTP_R_MISSING_CONTENT_TYPE () {121;}' unless defined(&HTTP_R_MISSING_CONTENT_TYPE);
    eval 'sub HTTP_R_MISSING_REDIRECT_LOCATION () {111;}' unless defined(&HTTP_R_MISSING_REDIRECT_LOCATION);
    eval 'sub HTTP_R_RECEIVED_ERROR () {105;}' unless defined(&HTTP_R_RECEIVED_ERROR);
    eval 'sub HTTP_R_RECEIVED_WRONG_HTTP_VERSION () {106;}' unless defined(&HTTP_R_RECEIVED_WRONG_HTTP_VERSION);
    eval 'sub HTTP_R_REDIRECTION_FROM_HTTPS_TO_HTTP () {112;}' unless defined(&HTTP_R_REDIRECTION_FROM_HTTPS_TO_HTTP);
    eval 'sub HTTP_R_REDIRECTION_NOT_ENABLED () {116;}' unless defined(&HTTP_R_REDIRECTION_NOT_ENABLED);
    eval 'sub HTTP_R_RESPONSE_LINE_TOO_LONG () {113;}' unless defined(&HTTP_R_RESPONSE_LINE_TOO_LONG);
    eval 'sub HTTP_R_RESPONSE_PARSE_ERROR () {104;}' unless defined(&HTTP_R_RESPONSE_PARSE_ERROR);
    eval 'sub HTTP_R_RETRY_TIMEOUT () {129;}' unless defined(&HTTP_R_RETRY_TIMEOUT);
    eval 'sub HTTP_R_SERVER_CANCELED_CONNECTION () {127;}' unless defined(&HTTP_R_SERVER_CANCELED_CONNECTION);
    eval 'sub HTTP_R_SOCK_NOT_SUPPORTED () {122;}' unless defined(&HTTP_R_SOCK_NOT_SUPPORTED);
    eval 'sub HTTP_R_STATUS_CODE_UNSUPPORTED () {114;}' unless defined(&HTTP_R_STATUS_CODE_UNSUPPORTED);
    eval 'sub HTTP_R_TLS_NOT_ENABLED () {107;}' unless defined(&HTTP_R_TLS_NOT_ENABLED);
    eval 'sub HTTP_R_TOO_MANY_REDIRECTIONS () {115;}' unless defined(&HTTP_R_TOO_MANY_REDIRECTIONS);
    eval 'sub HTTP_R_UNEXPECTED_CONTENT_TYPE () {118;}' unless defined(&HTTP_R_UNEXPECTED_CONTENT_TYPE);
}
1;
