mirror of
https://github.com/cuberite/polarssl.git
synced 2025-10-04 19:16:58 -04:00
fix write certificate fail
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
This commit is contained in:
parent
c19884f487
commit
72637c734b
@ -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…
x
Reference in New Issue
Block a user