PR: 2658
Submitted by: Robin Seggelmann <seggelmann@fh-muenster.de> Reviewed by: steve Support for TLS/DTLS heartbeats.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user