mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-29 11:41:15 +03:00
Add braces to a switch case
Signed-off-by: Andrzej Kurek <andrzej.kurek@arm.com>
This commit is contained in:
@ -177,6 +177,7 @@ int mbedtls_x509write_crt_set_subject_alternative_name(mbedtls_x509write_cert *c
|
|||||||
buflen += cur->node.san.unstructured_name.len + 4 + 1;
|
buflen += cur->node.san.unstructured_name.len + 4 + 1;
|
||||||
break;
|
break;
|
||||||
case MBEDTLS_X509_SAN_DIRECTORY_NAME:
|
case MBEDTLS_X509_SAN_DIRECTORY_NAME:
|
||||||
|
{
|
||||||
const mbedtls_asn1_named_data *chunk = &cur->node.san.directory_name;
|
const mbedtls_asn1_named_data *chunk = &cur->node.san.directory_name;
|
||||||
while (chunk != NULL) {
|
while (chunk != NULL) {
|
||||||
// 5 bytes for OID, max 4 bytes for length, +1 for tag,
|
// 5 bytes for OID, max 4 bytes for length, +1 for tag,
|
||||||
@ -187,6 +188,7 @@ int mbedtls_x509write_crt_set_subject_alternative_name(mbedtls_x509write_cert *c
|
|||||||
}
|
}
|
||||||
buflen += cur->node.san.unstructured_name.len + 4 + 1;
|
buflen += cur->node.san.unstructured_name.len + 4 + 1;
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
/* Not supported - skip. */
|
/* Not supported - skip. */
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user