fix various issues
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
This commit is contained in:
parent
bd1b3278b1
commit
6c6f10265d
2 changed files with 3 additions and 6 deletions
|
@ -1129,13 +1129,10 @@ static int ssl_tls13_write_certificate_verify_body( mbedtls_ssl_context *ssl,
|
|||
return( MBEDTLS_ERR_SSL_HANDSHAKE_FAILURE );
|
||||
}
|
||||
|
||||
ret = mbedtls_ssl_tls13_get_pk_type_and_md_alg_from_sig_alg( algorithm,
|
||||
&pk_type,
|
||||
&md_alg );
|
||||
if( ret != 0 )
|
||||
if( mbedtls_ssl_tls13_get_pk_type_and_md_alg_from_sig_alg(
|
||||
algorithm, &pk_type, &md_alg ) != 0 )
|
||||
{
|
||||
return( MBEDTLS_ERR_SSL_INTERNAL_ERROR );
|
||||
|
||||
}
|
||||
|
||||
/* Check there is space for the algorithm identifier (2 bytes) and the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue