require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&OPENSSL_PKCS7ERR_H)) {
    eval 'sub OPENSSL_PKCS7ERR_H () {1;}' unless defined(&OPENSSL_PKCS7ERR_H);
    require 'openssl/opensslconf.ph';
    require 'openssl/symhacks.ph';
    require 'openssl/cryptoerr_legacy.ph';
    eval 'sub PKCS7_R_CERTIFICATE_VERIFY_ERROR () {117;}' unless defined(&PKCS7_R_CERTIFICATE_VERIFY_ERROR);
    eval 'sub PKCS7_R_CIPHER_HAS_NO_OBJECT_IDENTIFIER () {144;}' unless defined(&PKCS7_R_CIPHER_HAS_NO_OBJECT_IDENTIFIER);
    eval 'sub PKCS7_R_CIPHER_NOT_INITIALIZED () {116;}' unless defined(&PKCS7_R_CIPHER_NOT_INITIALIZED);
    eval 'sub PKCS7_R_CONTENT_AND_DATA_PRESENT () {118;}' unless defined(&PKCS7_R_CONTENT_AND_DATA_PRESENT);
    eval 'sub PKCS7_R_CTRL_ERROR () {152;}' unless defined(&PKCS7_R_CTRL_ERROR);
    eval 'sub PKCS7_R_DECRYPT_ERROR () {119;}' unless defined(&PKCS7_R_DECRYPT_ERROR);
    eval 'sub PKCS7_R_DIGEST_FAILURE () {101;}' unless defined(&PKCS7_R_DIGEST_FAILURE);
    eval 'sub PKCS7_R_ENCRYPTION_CTRL_FAILURE () {149;}' unless defined(&PKCS7_R_ENCRYPTION_CTRL_FAILURE);
    eval 'sub PKCS7_R_ENCRYPTION_NOT_SUPPORTED_FOR_THIS_KEY_TYPE () {150;}' unless defined(&PKCS7_R_ENCRYPTION_NOT_SUPPORTED_FOR_THIS_KEY_TYPE);
    eval 'sub PKCS7_R_ERROR_ADDING_RECIPIENT () {120;}' unless defined(&PKCS7_R_ERROR_ADDING_RECIPIENT);
    eval 'sub PKCS7_R_ERROR_SETTING_CIPHER () {121;}' unless defined(&PKCS7_R_ERROR_SETTING_CIPHER);
    eval 'sub PKCS7_R_INVALID_NULL_POINTER () {143;}' unless defined(&PKCS7_R_INVALID_NULL_POINTER);
    eval 'sub PKCS7_R_INVALID_SIGNED_DATA_TYPE () {155;}' unless defined(&PKCS7_R_INVALID_SIGNED_DATA_TYPE);
    eval 'sub PKCS7_R_NO_CONTENT () {122;}' unless defined(&PKCS7_R_NO_CONTENT);
    eval 'sub PKCS7_R_NO_DEFAULT_DIGEST () {151;}' unless defined(&PKCS7_R_NO_DEFAULT_DIGEST);
    eval 'sub PKCS7_R_NO_MATCHING_DIGEST_TYPE_FOUND () {154;}' unless defined(&PKCS7_R_NO_MATCHING_DIGEST_TYPE_FOUND);
    eval 'sub PKCS7_R_NO_RECIPIENT_MATCHES_CERTIFICATE () {115;}' unless defined(&PKCS7_R_NO_RECIPIENT_MATCHES_CERTIFICATE);
    eval 'sub PKCS7_R_NO_SIGNATURES_ON_DATA () {123;}' unless defined(&PKCS7_R_NO_SIGNATURES_ON_DATA);
    eval 'sub PKCS7_R_NO_SIGNERS () {142;}' unless defined(&PKCS7_R_NO_SIGNERS);
    eval 'sub PKCS7_R_OPERATION_NOT_SUPPORTED_ON_THIS_TYPE () {104;}' unless defined(&PKCS7_R_OPERATION_NOT_SUPPORTED_ON_THIS_TYPE);
    eval 'sub PKCS7_R_PKCS7_ADD_SIGNATURE_ERROR () {124;}' unless defined(&PKCS7_R_PKCS7_ADD_SIGNATURE_ERROR);
    eval 'sub PKCS7_R_PKCS7_ADD_SIGNER_ERROR () {153;}' unless defined(&PKCS7_R_PKCS7_ADD_SIGNER_ERROR);
    eval 'sub PKCS7_R_PKCS7_DATASIGN () {145;}' unless defined(&PKCS7_R_PKCS7_DATASIGN);
    eval 'sub PKCS7_R_PRIVATE_KEY_DOES_NOT_MATCH_CERTIFICATE () {127;}' unless defined(&PKCS7_R_PRIVATE_KEY_DOES_NOT_MATCH_CERTIFICATE);
    eval 'sub PKCS7_R_SIGNATURE_FAILURE () {105;}' unless defined(&PKCS7_R_SIGNATURE_FAILURE);
    eval 'sub PKCS7_R_SIGNER_CERTIFICATE_NOT_FOUND () {128;}' unless defined(&PKCS7_R_SIGNER_CERTIFICATE_NOT_FOUND);
    eval 'sub PKCS7_R_SIGNING_CTRL_FAILURE () {147;}' unless defined(&PKCS7_R_SIGNING_CTRL_FAILURE);
    eval 'sub PKCS7_R_SIGNING_NOT_SUPPORTED_FOR_THIS_KEY_TYPE () {148;}' unless defined(&PKCS7_R_SIGNING_NOT_SUPPORTED_FOR_THIS_KEY_TYPE);
    eval 'sub PKCS7_R_SMIME_TEXT_ERROR () {129;}' unless defined(&PKCS7_R_SMIME_TEXT_ERROR);
    eval 'sub PKCS7_R_UNABLE_TO_FIND_CERTIFICATE () {106;}' unless defined(&PKCS7_R_UNABLE_TO_FIND_CERTIFICATE);
    eval 'sub PKCS7_R_UNABLE_TO_FIND_MEM_BIO () {107;}' unless defined(&PKCS7_R_UNABLE_TO_FIND_MEM_BIO);
    eval 'sub PKCS7_R_UNABLE_TO_FIND_MESSAGE_DIGEST () {108;}' unless defined(&PKCS7_R_UNABLE_TO_FIND_MESSAGE_DIGEST);
    eval 'sub PKCS7_R_UNKNOWN_DIGEST_TYPE () {109;}' unless defined(&PKCS7_R_UNKNOWN_DIGEST_TYPE);
    eval 'sub PKCS7_R_UNKNOWN_OPERATION () {110;}' unless defined(&PKCS7_R_UNKNOWN_OPERATION);
    eval 'sub PKCS7_R_UNSUPPORTED_CIPHER_TYPE () {111;}' unless defined(&PKCS7_R_UNSUPPORTED_CIPHER_TYPE);
    eval 'sub PKCS7_R_UNSUPPORTED_CONTENT_TYPE () {112;}' unless defined(&PKCS7_R_UNSUPPORTED_CONTENT_TYPE);
    eval 'sub PKCS7_R_WRONG_CONTENT_TYPE () {113;}' unless defined(&PKCS7_R_WRONG_CONTENT_TYPE);
    eval 'sub PKCS7_R_WRONG_PKCS7_TYPE () {114;}' unless defined(&PKCS7_R_WRONG_PKCS7_TYPE);
}
1;
