Skip to content

Commit 370e0ce

Browse files
committed
Add formatting fixes
1 parent 8580ac0 commit 370e0ce

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

wolfcrypt/src/asn.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17363,8 +17363,7 @@ static int DecodeAltNames(const byte* input, int sz, DecodedCert* cert)
1736317363
cert->weOwnAltNames = 1;
1736417364

1736517365
while (length > 0) {
17366-
17367-
/* Verify idx can't overflow input buffer */
17366+
/* Verify idx can't overflow input buffer */
1736817367
if (idx >= (word32)sz) {
1736917368
WOLFSSL_MSG("\tBad Index");
1737017369
return BUFFER_E;
@@ -17411,7 +17410,8 @@ static int DecodeAltNames(const byte* input, int sz, DecodedCert* cert)
1741117410
idx += strLen;
1741217411
}
1741317412
#ifndef IGNORE_NAME_CONSTRAINTS
17414-
else if (current_byte == (ASN_CONTEXT_SPECIFIC | ASN_CONSTRUCTED | ASN_DIR_TYPE)) {
17413+
else if (current_byte ==
17414+
(ASN_CONTEXT_SPECIFIC | ASN_CONSTRUCTED | ASN_DIR_TYPE)) {
1741517415
DNS_entry* dirEntry;
1741617416
int strLen;
1741717417
word32 lenStartIdx = idx;
@@ -17605,8 +17605,8 @@ static int DecodeAltNames(const byte* input, int sz, DecodedCert* cert)
1760517605
}
1760617606
#endif /* WOLFSSL_QT || OPENSSL_ALL */
1760717607
#endif /* IGNORE_NAME_CONSTRAINTS */
17608-
else if (current_byte == (ASN_CONTEXT_SPECIFIC | ASN_CONSTRUCTED | ASN_OTHER_TYPE))
17609-
{
17608+
else if (current_byte ==
17609+
(ASN_CONTEXT_SPECIFIC | ASN_CONSTRUCTED | ASN_OTHER_TYPE)) {
1761017610
int strLen;
1761117611
word32 lenStartIdx = idx;
1761217612
word32 oid = 0;

0 commit comments

Comments
 (0)