mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-29 11:41:15 +03:00
@ -1449,7 +1449,10 @@ cleanup:
|
|||||||
static 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)
|
#if defined(MBEDTLS_KEY_EXCHANGE_WITH_CERT_ENABLED)
|
||||||
int ret = mbedtls_ssl_tls13_write_certificate( ssl );
|
int ret;
|
||||||
|
if( mbedtls_ssl_own_cert( ssl ) == NULL )
|
||||||
|
return( MBEDTLS_ERR_SSL_HANDSHAKE_FAILURE );
|
||||||
|
ret = mbedtls_ssl_tls13_write_certificate( ssl );
|
||||||
if( ret != 0 )
|
if( ret != 0 )
|
||||||
return( ret );
|
return( ret );
|
||||||
#endif /* MBEDTLS_KEY_EXCHANGE_WITH_CERT_ENABLED */
|
#endif /* MBEDTLS_KEY_EXCHANGE_WITH_CERT_ENABLED */
|
||||||
|
Reference in New Issue
Block a user