require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&OPENSSL_CONFIGURATION_H)) {
    eval 'sub OPENSSL_CONFIGURATION_H () {1;}' unless defined(&OPENSSL_CONFIGURATION_H);
    if(defined(&__cplusplus)) {
    }
    if(defined(&OPENSSL_ALGORITHM_DEFINES)) {
	die("OPENSSL_ALGORITHM_DEFINES\ no\ longer\ supported");
    }
    eval 'sub OPENSSL_CONFIGURED_API () {30000;}' unless defined(&OPENSSL_CONFIGURED_API);
    unless(defined(&OPENSSL_RAND_SEED_OS)) {
	eval 'sub OPENSSL_RAND_SEED_OS () {1;}' unless defined(&OPENSSL_RAND_SEED_OS);
    }
    unless(defined(&OPENSSL_THREADS)) {
	eval 'sub OPENSSL_THREADS () {1;}' unless defined(&OPENSSL_THREADS);
    }
    unless(defined(&OPENSSL_NO_ACVP_TESTS)) {
	eval 'sub OPENSSL_NO_ACVP_TESTS () {1;}' unless defined(&OPENSSL_NO_ACVP_TESTS);
    }
    unless(defined(&OPENSSL_NO_AFALGENG)) {
	eval 'sub OPENSSL_NO_AFALGENG () {1;}' unless defined(&OPENSSL_NO_AFALGENG);
    }
    unless(defined(&OPENSSL_NO_ASAN)) {
	eval 'sub OPENSSL_NO_ASAN () {1;}' unless defined(&OPENSSL_NO_ASAN);
    }
    unless(defined(&OPENSSL_NO_CRYPTO_MDEBUG)) {
	eval 'sub OPENSSL_NO_CRYPTO_MDEBUG () {1;}' unless defined(&OPENSSL_NO_CRYPTO_MDEBUG);
    }
    unless(defined(&OPENSSL_NO_CRYPTO_MDEBUG_BACKTRACE)) {
	eval 'sub OPENSSL_NO_CRYPTO_MDEBUG_BACKTRACE () {1;}' unless defined(&OPENSSL_NO_CRYPTO_MDEBUG_BACKTRACE);
    }
    if(0) {
	unless(defined(&OPENSSL_NO_EC_NISTP_64_GCC_128)) {
	    eval 'sub OPENSSL_NO_EC_NISTP_64_GCC_128 () {1;}' unless defined(&OPENSSL_NO_EC_NISTP_64_GCC_128);
	}
    }
    unless(defined(&OPENSSL_NO_EGD)) {
	eval 'sub OPENSSL_NO_EGD () {1;}' unless defined(&OPENSSL_NO_EGD);
    }
    unless(defined(&OPENSSL_NO_EXTERNAL_TESTS)) {
	eval 'sub OPENSSL_NO_EXTERNAL_TESTS () {1;}' unless defined(&OPENSSL_NO_EXTERNAL_TESTS);
    }
    unless(defined(&OPENSSL_NO_FIPS_SECURITYCHECKS)) {
	eval 'sub OPENSSL_NO_FIPS_SECURITYCHECKS () {1;}' unless defined(&OPENSSL_NO_FIPS_SECURITYCHECKS);
    }
    unless(defined(&OPENSSL_NO_FUZZ_AFL)) {
	eval 'sub OPENSSL_NO_FUZZ_AFL () {1;}' unless defined(&OPENSSL_NO_FUZZ_AFL);
    }
    unless(defined(&OPENSSL_NO_FUZZ_LIBFUZZER)) {
	eval 'sub OPENSSL_NO_FUZZ_LIBFUZZER () {1;}' unless defined(&OPENSSL_NO_FUZZ_LIBFUZZER);
    }
    unless(defined(&OPENSSL_NO_KTLS)) {
	eval 'sub OPENSSL_NO_KTLS () {1;}' unless defined(&OPENSSL_NO_KTLS);
    }
    unless(defined(&OPENSSL_NO_MD2)) {
	eval 'sub OPENSSL_NO_MD2 () {1;}' unless defined(&OPENSSL_NO_MD2);
    }
    unless(defined(&OPENSSL_NO_MSAN)) {
	eval 'sub OPENSSL_NO_MSAN () {1;}' unless defined(&OPENSSL_NO_MSAN);
    }
    unless(defined(&OPENSSL_NO_RC5)) {
	eval 'sub OPENSSL_NO_RC5 () {1;}' unless defined(&OPENSSL_NO_RC5);
    }
    unless(defined(&OPENSSL_NO_SCTP)) {
	eval 'sub OPENSSL_NO_SCTP () {1;}' unless defined(&OPENSSL_NO_SCTP);
    }
    unless(defined(&OPENSSL_NO_SSL3)) {
	eval 'sub OPENSSL_NO_SSL3 () {1;}' unless defined(&OPENSSL_NO_SSL3);
    }
    unless(defined(&OPENSSL_NO_SSL3_METHOD)) {
	eval 'sub OPENSSL_NO_SSL3_METHOD () {1;}' unless defined(&OPENSSL_NO_SSL3_METHOD);
    }
    unless(defined(&OPENSSL_NO_TRACE)) {
	eval 'sub OPENSSL_NO_TRACE () {1;}' unless defined(&OPENSSL_NO_TRACE);
    }
    unless(defined(&OPENSSL_NO_UBSAN)) {
	eval 'sub OPENSSL_NO_UBSAN () {1;}' unless defined(&OPENSSL_NO_UBSAN);
    }
    unless(defined(&OPENSSL_NO_UNIT_TEST)) {
	eval 'sub OPENSSL_NO_UNIT_TEST () {1;}' unless defined(&OPENSSL_NO_UNIT_TEST);
    }
    unless(defined(&OPENSSL_NO_UPLINK)) {
	eval 'sub OPENSSL_NO_UPLINK () {1;}' unless defined(&OPENSSL_NO_UPLINK);
    }
    unless(defined(&OPENSSL_NO_WEAK_SSL_CIPHERS)) {
	eval 'sub OPENSSL_NO_WEAK_SSL_CIPHERS () {1;}' unless defined(&OPENSSL_NO_WEAK_SSL_CIPHERS);
    }
    unless(defined(&OPENSSL_NO_STATIC_ENGINE)) {
	eval 'sub OPENSSL_NO_STATIC_ENGINE () {1;}' unless defined(&OPENSSL_NO_STATIC_ENGINE);
    }
    undef(&I386_ONLY) if defined(&I386_ONLY);
    if(!defined(&OPENSSL_SYS_UEFI)) {
	undef(&BN_LLONG) if defined(&BN_LLONG);
	undef(&SIXTY_FOUR_BIT) if defined(&SIXTY_FOUR_BIT);
	if(defined(&__LP64__)  && !defined(&__sparc64__) ) {
	    eval 'sub SIXTY_FOUR_BIT_LONG () {1;}' unless defined(&SIXTY_FOUR_BIT_LONG);
	    undef(&THIRTY_TWO_BIT) if defined(&THIRTY_TWO_BIT);
	} else {
	    undef(&SIXTY_FOUR_BIT_LONG) if defined(&SIXTY_FOUR_BIT_LONG);
	    eval 'sub THIRTY_TWO_BIT () {1;}' unless defined(&THIRTY_TWO_BIT);
	}
    }
    if(defined(&__sparc64__)) {
	eval 'sub BN_LLONG () {1;}' unless defined(&BN_LLONG);
    }
    eval 'sub RC4_INT () {\'unsigned int\';}' unless defined(&RC4_INT);
    if(defined(&__cplusplus)) {
    }
}
1;
