Fix code style
Signed-off-by: Przemek Stekiel <przemyslaw.stekiel@mobica.com>
diff --git a/library/x509.c b/library/x509.c
index 747ba811..5f6715a 100644
--- a/library/x509.c
+++ b/library/x509.c
@@ -1205,7 +1205,7 @@
*
* In some cases while parsing subject alternative names the sequence tag is optional
* (e.g. CertSerialNumber). This function is designed to handle such case.
-*/
+ */
int mbedtls_x509_get_subject_alt_name_ext(unsigned char **p,
const unsigned char *end,
mbedtls_x509_sequence *subject_alt_name)
diff --git a/library/x509_crt.c b/library/x509_crt.c
index 276ec1a..9fb4499 100644
--- a/library/x509_crt.c
+++ b/library/x509_crt.c
@@ -663,16 +663,17 @@
/* authorityCertIssuer is an OPTIONAL field */
} else {
/* "end" also includes the CertSerialNumber field so "len" shall be used */
- ret = mbedtls_x509_get_subject_alt_name_ext(p,
- (*p+len),
- &authority_key_id->authorityCertIssuer);
+ ret = mbedtls_x509_get_subject_alt_name_ext(p,
+ (*p+len),
+ &authority_key_id->authorityCertIssuer);
}
}
if (*p < end) {
/* Getting authorityCertSerialNumber using the required specific class tag [2] */
if ((ret = mbedtls_asn1_get_tag(p, end, &len,
- MBEDTLS_ASN1_CONTEXT_SPECIFIC | MBEDTLS_ASN1_INTEGER | 2)) !=
+ MBEDTLS_ASN1_CONTEXT_SPECIFIC | MBEDTLS_ASN1_INTEGER |
+ 2)) !=
0) {
/* authorityCertSerialNumber is an OPTIONAL field */
return MBEDTLS_ERROR_ADD(MBEDTLS_ERR_X509_INVALID_EXTENSIONS, ret);