mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-01-30 06:33:06 +00:00
ssl_helpers.c: add mbedtls_test prefix for tweak_tls13_certificate*
Signed-off-by: Yanray Wang <yanray.wang@arm.com>
This commit is contained in:
parent
b088bfc453
commit
f56181a105
@ -547,7 +547,7 @@ void mbedtls_test_ssl_perform_handshake(
|
|||||||
* is expected to fail. All zeroes if no
|
* is expected to fail. All zeroes if no
|
||||||
* MBEDTLS_SSL_CHK_BUF_READ_PTR failure is expected.
|
* MBEDTLS_SSL_CHK_BUF_READ_PTR failure is expected.
|
||||||
*/
|
*/
|
||||||
int tweak_tls13_certificate_msg_vector_len(
|
int mbedtls_test_tweak_tls13_certificate_msg_vector_len(
|
||||||
unsigned char *buf, unsigned char **end, int tweak,
|
unsigned char *buf, unsigned char **end, int tweak,
|
||||||
int *expected_result, mbedtls_ssl_chk_buf_ptr_args *args);
|
int *expected_result, mbedtls_ssl_chk_buf_ptr_args *args);
|
||||||
#endif /* MBEDTLS_TEST_HOOKS */
|
#endif /* MBEDTLS_TEST_HOOKS */
|
||||||
|
@ -2131,7 +2131,7 @@ exit:
|
|||||||
#endif /* MBEDTLS_SSL_HANDSHAKE_WITH_CERT_ENABLED */
|
#endif /* MBEDTLS_SSL_HANDSHAKE_WITH_CERT_ENABLED */
|
||||||
|
|
||||||
#if defined(MBEDTLS_TEST_HOOKS)
|
#if defined(MBEDTLS_TEST_HOOKS)
|
||||||
int tweak_tls13_certificate_msg_vector_len(
|
int mbedtls_test_tweak_tls13_certificate_msg_vector_len(
|
||||||
unsigned char *buf, unsigned char **end, int tweak,
|
unsigned char *buf, unsigned char **end, int tweak,
|
||||||
int *expected_result, mbedtls_ssl_chk_buf_ptr_args *args)
|
int *expected_result, mbedtls_ssl_chk_buf_ptr_args *args)
|
||||||
{
|
{
|
||||||
|
@ -3358,7 +3358,7 @@ void tls13_server_certificate_msg_invalid_vector_len()
|
|||||||
* Tweak server Certificate message and parse it.
|
* Tweak server Certificate message and parse it.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
ret = tweak_tls13_certificate_msg_vector_len(
|
ret = mbedtls_test_tweak_tls13_certificate_msg_vector_len(
|
||||||
buf, &end, step, &expected_result, &expected_chk_buf_ptr_args);
|
buf, &end, step, &expected_result, &expected_chk_buf_ptr_args);
|
||||||
|
|
||||||
if (ret != 0) {
|
if (ret != 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user