fix write certificate fail
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
This commit is contained in:
parent
c19884f487
commit
72637c734b
1 changed files with 7 additions and 2 deletions
|
@ -1970,8 +1970,13 @@ static int ssl_tls13_write_client_finished( mbedtls_ssl_context *ssl )
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
mbedtls_ssl_set_outbound_transform( ssl, ssl->handshake->transform_handshake );
|
if( !ssl->handshake->client_auth )
|
||||||
|
{
|
||||||
|
MBEDTLS_SSL_DEBUG_MSG( 1,
|
||||||
|
( "Switch to handshake traffic keys for outbound traffic" ) );
|
||||||
|
mbedtls_ssl_set_outbound_transform( ssl,
|
||||||
|
ssl->handshake->transform_handshake );
|
||||||
|
}
|
||||||
ret = mbedtls_ssl_tls13_write_finished_message( ssl );
|
ret = mbedtls_ssl_tls13_write_finished_message( ssl );
|
||||||
if( ret != 0 )
|
if( ret != 0 )
|
||||||
return( ret );
|
return( ret );
|
||||||
|
|
Loading…
Reference in a new issue