diff options
author | Richard Levitte <levitte@openssl.org> | 2016-11-15 14:53:33 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2016-11-15 14:53:33 +0100 |
commit | b612799a80af398040efc2416e0d09dcb0da1cf5 (patch) | |
tree | fdc1238fdb3b4c6b642373b068708af7beea2ba1 /apps/s_client.c | |
parent | 6c62f9e1639a7d1a879f363a99882920104dfedb (diff) |
Revert "Remove heartbeats completely"
Done too soon, this is for future OpenSSL 1.2.0
This reverts commit 6c62f9e1639a7d1a879f363a99882920104dfedb.
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'apps/s_client.c')
-rw-r--r-- | apps/s_client.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/s_client.c b/apps/s_client.c index 1bcfe8e3dc..cfd7cbd79d 100644 --- a/apps/s_client.c +++ b/apps/s_client.c @@ -2448,6 +2448,13 @@ int s_client_main(int argc, char **argv) SSL_renegotiate(con); cbuf_len = 0; } +#ifndef OPENSSL_NO_HEARTBEATS + else if ((!c_ign_eof) && (cbuf[0] == 'B' && cmdletters)) { + BIO_printf(bio_err, "HEARTBEATING\n"); + SSL_heartbeat(con); + cbuf_len = 0; + } +#endif else { cbuf_len = i; cbuf_off = 0; |