Fix code style in mbedtls_x509_string_to_names

Signed-off-by: Agathiyan Bragadeesh <agathiyan.bragadeesh2@arm.com>
This commit is contained in:
Agathiyan Bragadeesh 2023-08-07 12:19:43 +01:00
parent 7f639fc7ab
commit 97178f231f

View file

@ -296,7 +296,8 @@ int mbedtls_x509_string_to_names(mbedtls_asn1_named_data **head, const char *nam
if (!in_tag && ((*c == ',' && *(c-1) != '\\') || c == end)) { if (!in_tag && ((*c == ',' && *(c-1) != '\\') || c == end)) {
if (!numericoid) { if (!numericoid) {
if ((parse_ret = parse_attribute_value_string(s, (int) (c - s), data, &data_len)) != 0) { if ((parse_ret =
parse_attribute_value_string(s, (int) (c - s), data, &data_len)) != 0) {
return parse_ret; return parse_ret;
} }
tag = attr_descr->default_tag; tag = attr_descr->default_tag;
@ -304,7 +305,8 @@ int mbedtls_x509_string_to_names(mbedtls_asn1_named_data **head, const char *nam
if (numericoid) { if (numericoid) {
#if defined(MBEDTLS_ASN1_PARSE_C) #if defined(MBEDTLS_ASN1_PARSE_C)
if ((parse_ret = if ((parse_ret =
parse_attribute_value_ber_encoded(s, (int) (c - s), data, &data_len, &tag)) != 0) { parse_attribute_value_ber_encoded(s, (int) (c - s), data, &data_len,
&tag)) != 0) {
return parse_ret; return parse_ret;
} }
#else #else