mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-01-26 21:35:35 +00:00
Add server certificate verfiy
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
This commit is contained in:
parent
1bff711a36
commit
4ff9e14356
@ -1448,7 +1448,6 @@ cleanup:
|
||||
*/
|
||||
int ssl_tls13_write_server_certificate( mbedtls_ssl_context *ssl )
|
||||
{
|
||||
((void) ssl);
|
||||
int ret = mbedtls_ssl_tls13_write_certificate( ssl );
|
||||
if(ret != 0)
|
||||
return( ret );
|
||||
@ -1462,8 +1461,12 @@ int ssl_tls13_write_server_certificate( mbedtls_ssl_context *ssl )
|
||||
*/
|
||||
int ssl_tls13_write_certificate_verify( mbedtls_ssl_context *ssl )
|
||||
{
|
||||
((void) ssl);
|
||||
return( MBEDTLS_ERR_SSL_FEATURE_UNAVAILABLE );
|
||||
int ret = mbedtls_ssl_tls13_write_certificate_verify( ssl );
|
||||
if(ret != 0)
|
||||
return( ret );
|
||||
|
||||
mbedtls_ssl_handshake_set_state( ssl, MBEDTLS_SSL_SERVER_FINISHED );
|
||||
return( 0 );
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user