require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&HEADER_DTLS1_H)) {
    eval 'sub HEADER_DTLS1_H () {1;}' unless defined(&HEADER_DTLS1_H);
    require 'openssl/buffer.ph';
    require 'openssl/pqueue.ph';
    if(defined(&__cplusplus)) {
    }
    eval 'sub DTLS1_VERSION () {0xfeff;}' unless defined(&DTLS1_VERSION);
    eval 'sub DTLS1_BAD_VER () {0x100;}' unless defined(&DTLS1_BAD_VER);
    if(0) {
	eval 'sub DTLS1_AD_MISSING_HANDSHAKE_MESSAGE () {110;}' unless defined(&DTLS1_AD_MISSING_HANDSHAKE_MESSAGE);
    }
    eval 'sub DTLS1_COOKIE_LENGTH () {32;}' unless defined(&DTLS1_COOKIE_LENGTH);
    eval 'sub DTLS1_RT_HEADER_LENGTH () {13;}' unless defined(&DTLS1_RT_HEADER_LENGTH);
    eval 'sub DTLS1_HM_HEADER_LENGTH () {12;}' unless defined(&DTLS1_HM_HEADER_LENGTH);
    eval 'sub DTLS1_HM_BAD_FRAGMENT () {-2;}' unless defined(&DTLS1_HM_BAD_FRAGMENT);
    eval 'sub DTLS1_HM_FRAGMENT_RETRY () {-3;}' unless defined(&DTLS1_HM_FRAGMENT_RETRY);
    eval 'sub DTLS1_CCS_HEADER_LENGTH () {1;}' unless defined(&DTLS1_CCS_HEADER_LENGTH);
    if(defined(&DTLS1_AD_MISSING_HANDSHAKE_MESSAGE)) {
	eval 'sub DTLS1_AL_HEADER_LENGTH () {7;}' unless defined(&DTLS1_AL_HEADER_LENGTH);
    } else {
	eval 'sub DTLS1_AL_HEADER_LENGTH () {2;}' unless defined(&DTLS1_AL_HEADER_LENGTH);
    }
    eval 'sub DTLS1_TMO_READ_COUNT () {2;}' unless defined(&DTLS1_TMO_READ_COUNT);
    eval 'sub DTLS1_TMO_WRITE_COUNT () {2;}' unless defined(&DTLS1_TMO_WRITE_COUNT);
    eval 'sub DTLS1_TMO_ALERT_COUNT () {12;}' unless defined(&DTLS1_TMO_ALERT_COUNT);
    if(defined(&__cplusplus)) {
    }
}
1;
