Format preprocessor conditionals
Signed-off-by: Agathiyan Bragadeesh <agathiyan.bragadeesh2@arm.com>
diff --git a/library/x509.c b/library/x509.c
index 8145fb8..85aaf06 100644
--- a/library/x509.c
+++ b/library/x509.c
@@ -871,7 +871,7 @@
MBEDTLS_X509_SAFE_SNPRINTF;
if (print_hexstring) {
- #if defined(MBEDTLS_ASN1_WRITE_C)
+#if defined(MBEDTLS_ASN1_WRITE_C)
s[0] = '#';
c = name->val.tag;
@@ -897,9 +897,9 @@
s[j++] = nibble_to_hex_digit(highbits);
s[j] = nibble_to_hex_digit(lowbits);
}
- #else
+#else
return MBEDTLS_ERR_X509_FEATURE_UNAVAILABLE;
- #endif
+#endif
} else {
for (i = 0, j = 0; i < name->val.len; i++, j++) {
if (j >= sizeof(s) - 1) {
diff --git a/library/x509_create.c b/library/x509_create.c
index 2c91e78..e673be6 100644
--- a/library/x509_create.c
+++ b/library/x509_create.c
@@ -303,15 +303,15 @@
tag = attr_descr->default_tag;
}
if (numericoid) {
- #if defined(MBEDTLS_ASN1_PARSE_C)
+#if defined(MBEDTLS_ASN1_PARSE_C)
if ((parse_ret =
parse_attribute_value_ber_encoded(s, (int) (c - s), data, &data_len,
&tag)) != 0) {
return parse_ret;
}
- #else
+#else
return MBEDTLS_ERR_X509_INVALID_NAME;
- #endif
+#endif
}
mbedtls_asn1_named_data *cur =
mbedtls_asn1_store_named_data(head, oid, strlen(oid),