1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-30 22:43:08 +03:00

Change dummy extension return

With error return, server can not receive
Client Hello message.

If received , we can test current status.

Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
This commit is contained in:
Jerry Yu
2021-09-01 15:59:36 +08:00
parent 3c28fd3393
commit 7533635e5a
2 changed files with 11 additions and 6 deletions

View File

@ -101,8 +101,9 @@ static int ssl_tls13_write_supported_groups_ext( mbedtls_ssl_context *ssl,
((void) ssl);
((void) buf);
((void) end);
((void) olen);
return( MBEDTLS_ERR_SSL_FEATURE_UNAVAILABLE );
*olen = 0;
MBEDTLS_SSL_DEBUG_MSG( 3, ( "supported groups extension is not available" ) );
return( 0 );
}
static int ssl_tls13_write_key_shares_ext( mbedtls_ssl_context *ssl,
@ -113,8 +114,9 @@ static int ssl_tls13_write_key_shares_ext( mbedtls_ssl_context *ssl,
((void) ssl);
((void) buf);
((void) end);
((void) olen);
return( MBEDTLS_ERR_SSL_FEATURE_UNAVAILABLE );
*olen = 0;
MBEDTLS_SSL_DEBUG_MSG( 3, ( "key share extension is not available" ) );
return( 0 );
}
#endif /* MBEDTLS_KEY_EXCHANGE_WITH_CERT_ENABLED */