]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - apps/s_client.c
PR: 2658
[thirdparty/openssl.git] / apps / s_client.c
index b72e505fb1c536316a8f7aef3ab4feb82f0a61aa..b0702ce6fe3abef81ee8c68660e5e6b1d43e1a95 100644 (file)
@@ -1862,6 +1862,14 @@ printf("read=%d pending=%d peek=%d\n",k,SSL_pending(con),SSL_peek(con,zbuf,10240
                                SSL_renegotiate(con);
                                cbuf_len=0;
                                }
+#ifndef OPENSSL_NO_HEARTBEATS
+                       else if ((!c_ign_eof) && (cbuf[0] == 'B'))
+                               {
+                               BIO_printf(bio_err,"HEARTBEATING\n");
+                               SSL_heartbeat(con);
+                               cbuf_len=0;
+                               }
+#endif
                        else
                                {
                                cbuf_len=i;