diff options
author | Bodo Möller <bodo@openssl.org> | 2006-01-07 20:44:29 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2006-01-07 20:44:29 +0000 |
commit | 01c76c6606c51013222626875218e0f1ed5bcc7e (patch) | |
tree | 0c67554b8ebce852d328ba1131237e6e139354fb /ssl/d1_pkt.c | |
parent | d32f888db1ead22f0beaa1b457c77fffcbbd22d1 (diff) |
There's no such things as DTLS1_AD_MISSING_HANDSHAKE_MESSAGE.
For now, anyway.
Diffstat (limited to 'ssl/d1_pkt.c')
-rw-r--r-- | ssl/d1_pkt.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/ssl/d1_pkt.c b/ssl/d1_pkt.c index 4e302943c1..c4f38e3cb7 100644 --- a/ssl/d1_pkt.c +++ b/ssl/d1_pkt.c @@ -1551,6 +1551,7 @@ int dtls1_dispatch_alert(SSL *s) *ptr++ = s->s3->send_alert[0]; *ptr++ = s->s3->send_alert[1]; +#ifdef DTLS1_AD_MISSING_HANDSHAKE_MESSAGE if (s->s3->send_alert[1] == DTLS1_AD_MISSING_HANDSHAKE_MESSAGE) { s2n(s->d1->handshake_read_seq, ptr); @@ -1566,6 +1567,7 @@ int dtls1_dispatch_alert(SSL *s) #endif l2n3(s->d1->r_msg_hdr.frag_off, ptr); } +#endif i = do_dtls1_write(s, SSL3_RT_ALERT, &buf[0], sizeof(buf), 0); if (i <= 0) @@ -1575,8 +1577,11 @@ int dtls1_dispatch_alert(SSL *s) } else { - if ( s->s3->send_alert[0] == SSL3_AL_FATAL || - s->s3->send_alert[1] == DTLS1_AD_MISSING_HANDSHAKE_MESSAGE) + if (s->s3->send_alert[0] == SSL3_AL_FATAL +#ifdef DTLS1_AD_MISSING_HANDSHAKE_MESSAGE + || s->s3->send_alert[1] == DTLS1_AD_MISSING_HANDSHAKE_MESSAGE +#endif + ) (void)BIO_flush(s->wbio); if (s->msg_callback) |