mirror of
https://github.com/openssl/openssl.git
synced 2024-11-21 01:15:20 +08:00
Fix trace of TLSv1.3 Certificate Request message
A TLSv1.3 Certificate Request message was issuing a "Message length parse error" using the -trace option to s_server/s_client. Reviewed-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Ben Kaduk <kaduk@mit.edu> (Merged from https://github.com/openssl/openssl/pull/5008)
This commit is contained in:
parent
436ad81f05
commit
818b625d6c
@ -1244,6 +1244,10 @@ static int ssl_print_cert_request(BIO *bio, int indent, const SSL *ssl,
|
|||||||
if (SSL_IS_TLS13(ssl)) {
|
if (SSL_IS_TLS13(ssl)) {
|
||||||
if (!ssl_print_hexbuf(bio, indent, "request_context", 1, &msg, &msglen))
|
if (!ssl_print_hexbuf(bio, indent, "request_context", 1, &msg, &msglen))
|
||||||
return 0;
|
return 0;
|
||||||
|
if (!ssl_print_extensions(bio, indent, 1,
|
||||||
|
SSL3_MT_CERTIFICATE_REQUEST, &msg, &msglen))
|
||||||
|
return 0;
|
||||||
|
return 1;
|
||||||
} else {
|
} else {
|
||||||
if (msglen < 1)
|
if (msglen < 1)
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user