Fix code style in mbedtls_x509_string_to_names
Signed-off-by: Agathiyan Bragadeesh <agathiyan.bragadeesh2@arm.com>
This commit is contained in:
parent
7f639fc7ab
commit
97178f231f
1 changed files with 4 additions and 2 deletions
|
@ -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 (!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;
|
||||
}
|
||||
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 defined(MBEDTLS_ASN1_PARSE_C)
|
||||
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;
|
||||
}
|
||||
#else
|
||||
|
|
Loading…
Reference in a new issue