mirror of
https://github.com/cuberite/polarssl.git
synced 2025-10-04 11:09:00 -04:00
Merge pull request #5517 from yuhaoth/pr/fix-client-auth-fail
BUG fix :fix client_auth fail
This commit is contained in:
commit
196a1c4256
@ -1813,7 +1813,7 @@ static int ssl_tls13_parse_certificate_request( mbedtls_ssl_context *ssl,
|
|||||||
goto decode_error;
|
goto decode_error;
|
||||||
}
|
}
|
||||||
|
|
||||||
ssl->client_auth = 1;
|
ssl->handshake->client_auth = 1;
|
||||||
return( 0 );
|
return( 0 );
|
||||||
|
|
||||||
decode_error:
|
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",
|
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 );
|
mbedtls_ssl_handshake_set_state( ssl, MBEDTLS_SSL_SERVER_CERTIFICATE );
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user