Fix code style

Signed-off-by: Przemek Stekiel <przemyslaw.stekiel@mobica.com>
This commit is contained in:
Przemek Stekiel 2023-04-04 22:49:44 +02:00
parent 294ec1274d
commit 725688b143
2 changed files with 6 additions and 5 deletions

View File

@ -672,7 +672,8 @@ static int x509_get_authority_key_id(unsigned char **p,
if (*p < end) { if (*p < end) {
/* Getting authorityCertSerialNumber using the required specific class tag [2] */ /* Getting authorityCertSerialNumber using the required specific class tag [2] */
if ((ret = mbedtls_asn1_get_tag(p, end, &len, 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) { 0) {
/* authorityCertSerialNumber is an OPTIONAL field */ /* authorityCertSerialNumber is an OPTIONAL field */
return MBEDTLS_ERROR_ADD(MBEDTLS_ERR_X509_INVALID_EXTENSIONS, ret); return MBEDTLS_ERROR_ADD(MBEDTLS_ERR_X509_INVALID_EXTENSIONS, ret);