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

@@ -2192,6 +2192,16 @@ static int sv_body(char *hostname, int s, unsigned char *context)
goto err;
}
#ifndef OPENSSL_NO_HEARTBEATS
if ((buf[0] == 'B') &&
((buf[1] == '\n') || (buf[1] == '\r')))
{
BIO_printf(bio_err,"HEARTBEATING\n");
SSL_heartbeat(con);
i=0;
continue;
}
#endif
if ((buf[0] == 'r') &&
((buf[1] == '\n') || (buf[1] == '\r')))
{