提交 24020351 编写于 作者: S Shigeki Ohtsu 提交者: Matt Caswell

s_client: fix not to send a command letter of R

Before 1.1.0, this command letter is not sent to a server.

CLA: trivial
(cherry picked from commit bc180cb4887c2e82111cb714723a94de9f6d2c35)
Reviewed-by: NBen Kaduk <kaduk@mit.edu>
Reviewed-by: NMatt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/8081)

(cherry picked from commit 5478e2100260b8d6f9df77de875f37763d8eeec6)
上级 b62ef4e1
...@@ -3031,9 +3031,7 @@ int s_client_main(int argc, char **argv) ...@@ -3031,9 +3031,7 @@ int s_client_main(int argc, char **argv)
BIO_printf(bio_err, "RENEGOTIATING\n"); BIO_printf(bio_err, "RENEGOTIATING\n");
SSL_renegotiate(con); SSL_renegotiate(con);
cbuf_len = 0; cbuf_len = 0;
} } else if (!c_ign_eof && (cbuf[0] == 'K' || cbuf[0] == 'k' )
if (!c_ign_eof && (cbuf[0] == 'K' || cbuf[0] == 'k' )
&& cmdletters) { && cmdletters) {
BIO_printf(bio_err, "KEYUPDATE\n"); BIO_printf(bio_err, "KEYUPDATE\n");
SSL_key_update(con, SSL_key_update(con,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册