Adjust renegotiation slightly.
authorBen Laurie <ben@openssl.org>
Sat, 10 Apr 1999 12:08:46 +0000 (12:08 +0000)
committerBen Laurie <ben@openssl.org>
Sat, 10 Apr 1999 12:08:46 +0000 (12:08 +0000)
apps/s_client.c

index 2afb031..c6b7938 100644 (file)
@@ -623,9 +623,9 @@ printf("read=%d pending=%d peek=%d\n",k,SSL_pending(con),SSL_peek(con,zbuf,10240
 
                        if ((!c_quiet) && (cbuf[0] == 'R'))
                                {
+                               BIO_printf(bio_err,"RENEGOTIATING\n");
                                SSL_renegotiate(con);
-                               read_tty=0;
-                               write_ssl=1;
+                               cbuf_len=0;
                                }
                        else
                                {
@@ -633,8 +633,8 @@ printf("read=%d pending=%d peek=%d\n",k,SSL_pending(con),SSL_peek(con,zbuf,10240
                                cbuf_off=0;
                                }
 
-                       read_tty=0;
                        write_ssl=1;
+                       read_tty=0;
                        }
 #endif
                }