require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&OPENSSL_OCSPERR_H)) {
    eval 'sub OPENSSL_OCSPERR_H () {1;}' unless defined(&OPENSSL_OCSPERR_H);
    require 'openssl/opensslconf.ph';
    require 'openssl/symhacks.ph';
    require 'openssl/cryptoerr_legacy.ph';
    unless(defined(&OPENSSL_NO_OCSP)) {
	eval 'sub OCSP_R_CERTIFICATE_VERIFY_ERROR () {101;}' unless defined(&OCSP_R_CERTIFICATE_VERIFY_ERROR);
	eval 'sub OCSP_R_DIGEST_ERR () {102;}' unless defined(&OCSP_R_DIGEST_ERR);
	eval 'sub OCSP_R_DIGEST_NAME_ERR () {106;}' unless defined(&OCSP_R_DIGEST_NAME_ERR);
	eval 'sub OCSP_R_DIGEST_SIZE_ERR () {107;}' unless defined(&OCSP_R_DIGEST_SIZE_ERR);
	eval 'sub OCSP_R_ERROR_IN_NEXTUPDATE_FIELD () {122;}' unless defined(&OCSP_R_ERROR_IN_NEXTUPDATE_FIELD);
	eval 'sub OCSP_R_ERROR_IN_THISUPDATE_FIELD () {123;}' unless defined(&OCSP_R_ERROR_IN_THISUPDATE_FIELD);
	eval 'sub OCSP_R_MISSING_OCSPSIGNING_USAGE () {103;}' unless defined(&OCSP_R_MISSING_OCSPSIGNING_USAGE);
	eval 'sub OCSP_R_NEXTUPDATE_BEFORE_THISUPDATE () {124;}' unless defined(&OCSP_R_NEXTUPDATE_BEFORE_THISUPDATE);
	eval 'sub OCSP_R_NOT_BASIC_RESPONSE () {104;}' unless defined(&OCSP_R_NOT_BASIC_RESPONSE);
	eval 'sub OCSP_R_NO_CERTIFICATES_IN_CHAIN () {105;}' unless defined(&OCSP_R_NO_CERTIFICATES_IN_CHAIN);
	eval 'sub OCSP_R_NO_RESPONSE_DATA () {108;}' unless defined(&OCSP_R_NO_RESPONSE_DATA);
	eval 'sub OCSP_R_NO_REVOKED_TIME () {109;}' unless defined(&OCSP_R_NO_REVOKED_TIME);
	eval 'sub OCSP_R_NO_SIGNER_KEY () {130;}' unless defined(&OCSP_R_NO_SIGNER_KEY);
	eval 'sub OCSP_R_PRIVATE_KEY_DOES_NOT_MATCH_CERTIFICATE () {110;}' unless defined(&OCSP_R_PRIVATE_KEY_DOES_NOT_MATCH_CERTIFICATE);
	eval 'sub OCSP_R_REQUEST_NOT_SIGNED () {128;}' unless defined(&OCSP_R_REQUEST_NOT_SIGNED);
	eval 'sub OCSP_R_RESPONSE_CONTAINS_NO_REVOCATION_DATA () {111;}' unless defined(&OCSP_R_RESPONSE_CONTAINS_NO_REVOCATION_DATA);
	eval 'sub OCSP_R_ROOT_CA_NOT_TRUSTED () {112;}' unless defined(&OCSP_R_ROOT_CA_NOT_TRUSTED);
	eval 'sub OCSP_R_SIGNATURE_FAILURE () {117;}' unless defined(&OCSP_R_SIGNATURE_FAILURE);
	eval 'sub OCSP_R_SIGNER_CERTIFICATE_NOT_FOUND () {118;}' unless defined(&OCSP_R_SIGNER_CERTIFICATE_NOT_FOUND);
	eval 'sub OCSP_R_STATUS_EXPIRED () {125;}' unless defined(&OCSP_R_STATUS_EXPIRED);
	eval 'sub OCSP_R_STATUS_NOT_YET_VALID () {126;}' unless defined(&OCSP_R_STATUS_NOT_YET_VALID);
	eval 'sub OCSP_R_STATUS_TOO_OLD () {127;}' unless defined(&OCSP_R_STATUS_TOO_OLD);
	eval 'sub OCSP_R_UNKNOWN_MESSAGE_DIGEST () {119;}' unless defined(&OCSP_R_UNKNOWN_MESSAGE_DIGEST);
	eval 'sub OCSP_R_UNKNOWN_NID () {120;}' unless defined(&OCSP_R_UNKNOWN_NID);
	eval 'sub OCSP_R_UNSUPPORTED_REQUESTORNAME_TYPE () {129;}' unless defined(&OCSP_R_UNSUPPORTED_REQUESTORNAME_TYPE);
    }
}
1;
