Submitted by: Robin Seggelmann <seggelmann@fh-muenster.de>
Reviewed by: steve

Support for TLS/DTLS heartbeats.
This commit is contained in:
Dr. Stephen Henson
2011-12-31 23:00:36 +00:00
parent 578519edd0
commit bd6941cfaa
20 changed files with 561 additions and 4 deletions

View File

@@ -236,6 +236,18 @@ int ssl3_accept(SSL *s)
return(-1);
}
#ifndef OPENSSL_NO_HEARTBEATS
/* If we're awaiting a HeartbeatResponse, pretend we
* already got and don't await it anymore, because
* Heartbeats don't make sense during handshakes anyway.
*/
if (s->tlsext_hb_pending)
{
s->tlsext_hb_pending = 0;
s->tlsext_hb_seq++;
}
#endif
for (;;)
{
state=s->state;