From a2423debcc7175a0e5450ced386283276e95ea1a Mon Sep 17 00:00:00 2001 From: Agathiyan Bragadeesh Date: Wed, 30 Aug 2023 16:24:31 +0100 Subject: [PATCH] Fix code style Signed-off-by: Agathiyan Bragadeesh --- library/x509_create.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/library/x509_create.c b/library/x509_create.c index 307e8be4ce..1da1587878 100644 --- a/library/x509_create.c +++ b/library/x509_create.c @@ -158,7 +158,7 @@ static int parse_attribute_value_string(const char *s, const char *end = s + len; unsigned char *d = data; int n; - + for (c = s; c < end; c++) { if (*c == '\\') { c++; @@ -175,9 +175,9 @@ static int parse_attribute_value_string(const char *s, return MBEDTLS_ERR_X509_INVALID_NAME; } } - + *(d++) = *c; - + if (d - data == MBEDTLS_X509_MAX_DN_NAME_SIZE) { return MBEDTLS_ERR_X509_INVALID_NAME; } @@ -200,7 +200,7 @@ static int parse_attribute_value_der_encoded(const char *s, unsigned char *p; unsigned char *d = data; int n; - + /* Converting from hexstring to raw binary so we can use asn1parse.c */ if ((len < 5) || (*c != '#')) { return MBEDTLS_ERR_X509_INVALID_NAME;