Rename tls13 prefix to fix coding issues
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
diff --git a/library/ecdh.c b/library/ecdh.c
index 8884260..27e5d73 100644
--- a/library/ecdh.c
+++ b/library/ecdh.c
@@ -806,9 +806,9 @@
#endif
}
-static int ecdh_tls1_3_read_public_internal( mbedtls_ecdh_context_mbed *ctx,
- const unsigned char *buf,
- size_t blen )
+static int ecdh_tls13_read_public_internal( mbedtls_ecdh_context_mbed *ctx,
+ const unsigned char *buf,
+ size_t blen )
{
int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED;
const unsigned char *p = buf;
@@ -838,15 +838,15 @@
/*
* Parse and import the client's TLS 1.3 public value
*/
-int mbedtls_ecdh_tls1_3_read_public( mbedtls_ecdh_context *ctx,
- const unsigned char *buf,
- size_t blen )
+int mbedtls_ecdh_tls13_read_public( mbedtls_ecdh_context *ctx,
+ const unsigned char *buf,
+ size_t blen )
{
ECDH_VALIDATE_RET( ctx != NULL );
ECDH_VALIDATE_RET( buf != NULL );
#if defined(MBEDTLS_ECDH_LEGACY_CONTEXT)
- return( ecdh_tls1_3_read_public_internal( ctx, buf, blen ) );
+ return( ecdh_tls13_read_public_internal( ctx, buf, blen ) );
#else
switch( ctx->var )
{
@@ -855,8 +855,8 @@
return( MBEDTLS_ERR_ECP_FEATURE_UNAVAILABLE );
#endif
case MBEDTLS_ECDH_VARIANT_MBEDTLS_2_0:
- return( ecdh_tls1_3_read_public_internal( &ctx->ctx.mbed_ecdh,
- buf, blen ) );
+ return( ecdh_tls13_read_public_internal( &ctx->ctx.mbed_ecdh,
+ buf, blen ) );
default:
return MBEDTLS_ERR_ECP_BAD_INPUT_DATA;
}