fix various issues
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
This commit is contained in:
parent
4ff9e14356
commit
c6e6dbf2e7
1 changed files with 8 additions and 6 deletions
|
@ -1444,27 +1444,29 @@ cleanup:
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* State Handler : MBEDTLS_SSL_SERVER_CERTIFICATE
|
* Handler for MBEDTLS_SSL_SERVER_CERTIFICATE
|
||||||
*/
|
*/
|
||||||
int ssl_tls13_write_server_certificate( mbedtls_ssl_context *ssl )
|
static int ssl_tls13_write_server_certificate( mbedtls_ssl_context *ssl )
|
||||||
{
|
{
|
||||||
|
#if defined(MBEDTLS_KEY_EXCHANGE_WITH_CERT_ENABLED)
|
||||||
int ret = mbedtls_ssl_tls13_write_certificate( ssl );
|
int ret = mbedtls_ssl_tls13_write_certificate( ssl );
|
||||||
if(ret != 0)
|
if(ret != 0)
|
||||||
return( ret );
|
return( ret );
|
||||||
|
#endif /* MBEDTLS_KEY_EXCHANGE_WITH_CERT_ENABLED */
|
||||||
mbedtls_ssl_handshake_set_state( ssl, MBEDTLS_SSL_CERTIFICATE_VERIFY );
|
mbedtls_ssl_handshake_set_state( ssl, MBEDTLS_SSL_CERTIFICATE_VERIFY );
|
||||||
return( 0 );
|
return( 0 );
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* State Handler : MBEDTLS_SSL_CERTIFICATE_VERIFY
|
* Handler for MBEDTLS_SSL_CERTIFICATE_VERIFY
|
||||||
*/
|
*/
|
||||||
int ssl_tls13_write_certificate_verify( mbedtls_ssl_context *ssl )
|
static int ssl_tls13_write_certificate_verify( mbedtls_ssl_context *ssl )
|
||||||
{
|
{
|
||||||
|
#if defined(MBEDTLS_KEY_EXCHANGE_WITH_CERT_ENABLED)
|
||||||
int ret = mbedtls_ssl_tls13_write_certificate_verify( ssl );
|
int ret = mbedtls_ssl_tls13_write_certificate_verify( ssl );
|
||||||
if(ret != 0)
|
if(ret != 0)
|
||||||
return( ret );
|
return( ret );
|
||||||
|
#endif /* MBEDTLS_KEY_EXCHANGE_WITH_CERT_ENABLED */
|
||||||
mbedtls_ssl_handshake_set_state( ssl, MBEDTLS_SSL_SERVER_FINISHED );
|
mbedtls_ssl_handshake_set_state( ssl, MBEDTLS_SSL_SERVER_FINISHED );
|
||||||
return( 0 );
|
return( 0 );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue