require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&OPENSSL_DHERR_H)) {
    eval 'sub OPENSSL_DHERR_H () {1;}' unless defined(&OPENSSL_DHERR_H);
    require 'openssl/opensslconf.ph';
    require 'openssl/symhacks.ph';
    require 'openssl/cryptoerr_legacy.ph';
    unless(defined(&OPENSSL_NO_DH)) {
	eval 'sub DH_R_BAD_FFC_PARAMETERS () {127;}' unless defined(&DH_R_BAD_FFC_PARAMETERS);
	eval 'sub DH_R_BAD_GENERATOR () {101;}' unless defined(&DH_R_BAD_GENERATOR);
	eval 'sub DH_R_BN_DECODE_ERROR () {109;}' unless defined(&DH_R_BN_DECODE_ERROR);
	eval 'sub DH_R_BN_ERROR () {106;}' unless defined(&DH_R_BN_ERROR);
	eval 'sub DH_R_CHECK_INVALID_J_VALUE () {115;}' unless defined(&DH_R_CHECK_INVALID_J_VALUE);
	eval 'sub DH_R_CHECK_INVALID_Q_VALUE () {116;}' unless defined(&DH_R_CHECK_INVALID_Q_VALUE);
	eval 'sub DH_R_CHECK_PUBKEY_INVALID () {122;}' unless defined(&DH_R_CHECK_PUBKEY_INVALID);
	eval 'sub DH_R_CHECK_PUBKEY_TOO_LARGE () {123;}' unless defined(&DH_R_CHECK_PUBKEY_TOO_LARGE);
	eval 'sub DH_R_CHECK_PUBKEY_TOO_SMALL () {124;}' unless defined(&DH_R_CHECK_PUBKEY_TOO_SMALL);
	eval 'sub DH_R_CHECK_P_NOT_PRIME () {117;}' unless defined(&DH_R_CHECK_P_NOT_PRIME);
	eval 'sub DH_R_CHECK_P_NOT_SAFE_PRIME () {118;}' unless defined(&DH_R_CHECK_P_NOT_SAFE_PRIME);
	eval 'sub DH_R_CHECK_Q_NOT_PRIME () {119;}' unless defined(&DH_R_CHECK_Q_NOT_PRIME);
	eval 'sub DH_R_DECODE_ERROR () {104;}' unless defined(&DH_R_DECODE_ERROR);
	eval 'sub DH_R_INVALID_PARAMETER_NAME () {110;}' unless defined(&DH_R_INVALID_PARAMETER_NAME);
	eval 'sub DH_R_INVALID_PARAMETER_NID () {114;}' unless defined(&DH_R_INVALID_PARAMETER_NID);
	eval 'sub DH_R_INVALID_PUBKEY () {102;}' unless defined(&DH_R_INVALID_PUBKEY);
	eval 'sub DH_R_INVALID_SECRET () {128;}' unless defined(&DH_R_INVALID_SECRET);
	eval 'sub DH_R_KDF_PARAMETER_ERROR () {112;}' unless defined(&DH_R_KDF_PARAMETER_ERROR);
	eval 'sub DH_R_KEYS_NOT_SET () {108;}' unless defined(&DH_R_KEYS_NOT_SET);
	eval 'sub DH_R_MISSING_PUBKEY () {125;}' unless defined(&DH_R_MISSING_PUBKEY);
	eval 'sub DH_R_MODULUS_TOO_LARGE () {103;}' unless defined(&DH_R_MODULUS_TOO_LARGE);
	eval 'sub DH_R_MODULUS_TOO_SMALL () {126;}' unless defined(&DH_R_MODULUS_TOO_SMALL);
	eval 'sub DH_R_NOT_SUITABLE_GENERATOR () {120;}' unless defined(&DH_R_NOT_SUITABLE_GENERATOR);
	eval 'sub DH_R_NO_PARAMETERS_SET () {107;}' unless defined(&DH_R_NO_PARAMETERS_SET);
	eval 'sub DH_R_NO_PRIVATE_VALUE () {100;}' unless defined(&DH_R_NO_PRIVATE_VALUE);
	eval 'sub DH_R_PARAMETER_ENCODING_ERROR () {105;}' unless defined(&DH_R_PARAMETER_ENCODING_ERROR);
	eval 'sub DH_R_PEER_KEY_ERROR () {111;}' unless defined(&DH_R_PEER_KEY_ERROR);
	eval 'sub DH_R_Q_TOO_LARGE () {130;}' unless defined(&DH_R_Q_TOO_LARGE);
	eval 'sub DH_R_SHARED_INFO_ERROR () {113;}' unless defined(&DH_R_SHARED_INFO_ERROR);
	eval 'sub DH_R_UNABLE_TO_CHECK_GENERATOR () {121;}' unless defined(&DH_R_UNABLE_TO_CHECK_GENERATOR);
    }
}
1;
