ssl_test_lib: fix variable naming for curve group
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
This commit is contained in:
parent
54e23792c8
commit
5bdebb2004
1 changed files with 7 additions and 7 deletions
|
@ -455,7 +455,7 @@ static const struct {
|
||||||
uint16_t tls_id;
|
uint16_t tls_id;
|
||||||
const char *name;
|
const char *name;
|
||||||
uint8_t is_supported;
|
uint8_t is_supported;
|
||||||
} tls_id_curve_name_table[] =
|
} tls_id_group_name_table[] =
|
||||||
{
|
{
|
||||||
#if defined(MBEDTLS_ECP_DP_SECP521R1_ENABLED) || defined(PSA_WANT_ECC_SECP_R1_521)
|
#if defined(MBEDTLS_ECP_DP_SECP521R1_ENABLED) || defined(PSA_WANT_ECC_SECP_R1_521)
|
||||||
{ MBEDTLS_SSL_IANA_TLS_GROUP_SECP521R1, "secp521r1", 1 },
|
{ MBEDTLS_SSL_IANA_TLS_GROUP_SECP521R1, "secp521r1", 1 },
|
||||||
|
@ -545,9 +545,9 @@ static uint16_t mbedtls_ssl_get_curve_tls_id_from_name(const char *name)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int i = 0; tls_id_curve_name_table[i].tls_id != 0; i++) {
|
for (int i = 0; tls_id_group_name_table[i].tls_id != 0; i++) {
|
||||||
if (strcmp(tls_id_curve_name_table[i].name, name) == 0) {
|
if (strcmp(tls_id_group_name_table[i].name, name) == 0) {
|
||||||
return tls_id_curve_name_table[i].tls_id;
|
return tls_id_group_name_table[i].tls_id;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -556,9 +556,9 @@ static uint16_t mbedtls_ssl_get_curve_tls_id_from_name(const char *name)
|
||||||
|
|
||||||
static void mbedtls_ssl_print_supported_curves_list(void)
|
static void mbedtls_ssl_print_supported_curves_list(void)
|
||||||
{
|
{
|
||||||
for (int i = 0; tls_id_curve_name_table[i].tls_id != 0; i++) {
|
for (int i = 0; tls_id_group_name_table[i].tls_id != 0; i++) {
|
||||||
if (tls_id_curve_name_table[i].is_supported == 1) {
|
if (tls_id_group_name_table[i].is_supported == 1) {
|
||||||
mbedtls_printf("%s ", tls_id_curve_name_table[i].name);
|
mbedtls_printf("%s ", tls_id_group_name_table[i].name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue