From 7840f81303a47fcea6e220b01f040a3d2dc70691 Mon Sep 17 00:00:00 2001 From: Jerry Yu Date: Sat, 29 Jan 2022 10:26:51 +0800 Subject: [PATCH] fix client_auth fail Signed-off-by: Jerry Yu --- library/ssl_tls13_client.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/ssl_tls13_client.c b/library/ssl_tls13_client.c index 2ba2d00113..f556c0f26b 100644 --- a/library/ssl_tls13_client.c +++ b/library/ssl_tls13_client.c @@ -1813,7 +1813,7 @@ static int ssl_tls13_parse_certificate_request( mbedtls_ssl_context *ssl, goto decode_error; } - ssl->client_auth = 1; + ssl->handshake->client_auth = 1; return( 0 ); decode_error: @@ -1861,7 +1861,7 @@ static int ssl_tls13_process_certificate_request( mbedtls_ssl_context *ssl ) } MBEDTLS_SSL_DEBUG_MSG( 3, ( "got %s certificate request", - ssl->client_auth ? "a" : "no" ) ); + ssl->handshake->client_auth ? "a" : "no" ) ); mbedtls_ssl_handshake_set_state( ssl, MBEDTLS_SSL_SERVER_CERTIFICATE );