Skip to content

Commit f4b8f84

Browse files
committed
indent {.*;} macro args
1 parent b5c5854 commit f4b8f84

5 files changed

Lines changed: 21 additions & 5 deletions

File tree

src/internal.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15908,7 +15908,10 @@ int ProcessPeerCerts(WOLFSSL* ssl, byte* input, word32* inOutIdx,
1590815908

1590915909
WC_ALLOC_VAR_EX(dCertAdd, DecodedCert, 1, ssl->heap,
1591015910
DYNAMIC_TYPE_TMP_BUFFER,
15911-
{ret=MEMORY_E;goto exit_req_v2;});
15911+
{
15912+
ret=MEMORY_E;
15913+
goto exit_req_v2;
15914+
});
1591215915
InitDecodedCert(dCertAdd, cert->buffer, cert->length,
1591315916
ssl->heap);
1591415917
dCertAdd_inited = 1;

src/ssl.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23475,7 +23475,11 @@ int set_curves_list(WOLFSSL* ssl, WOLFSSL_CTX *ctx, const char* names,
2347523475
const WOLF_EC_NIST_NAME* nist_name;
2347623476

2347723477
WC_ALLOC_VAR_EX(groups, int, WOLFSSL_MAX_GROUP_COUNT, heap,
23478-
DYNAMIC_TYPE_TMP_BUFFER, {ret=MEMORY_E;goto leave;});
23478+
DYNAMIC_TYPE_TMP_BUFFER,
23479+
{
23480+
ret=MEMORY_E;
23481+
goto leave;
23482+
});
2347923483

2348023484
for (idx = 1; names[idx-1] != '\0'; idx++) {
2348123485
if (names[idx] != ':' && names[idx] != '\0')

src/ssl_certman.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -746,7 +746,10 @@ int CM_VerifyBuffer_ex(WOLFSSL_CERT_MANAGER* cm, const unsigned char* buff,
746746

747747
/* Allocate memory for decoded certificate. */
748748
WC_ALLOC_VAR_EX(cert, DecodedCert, 1, cm->heap, DYNAMIC_TYPE_DCERT,
749-
{ret=MEMORY_E;fatal=1;});
749+
{
750+
ret=MEMORY_E;
751+
fatal=1;
752+
});
750753
if (WC_VAR_OK(cert))
751754
{
752755
/* Reset fields of decoded certificate. */

wolfcrypt/src/asn.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3974,7 +3974,10 @@ int wc_BerToDer(const byte* ber, word32 berSz, byte* der, word32* derSz)
39743974
return BAD_FUNC_ARG;
39753975

39763976
WC_ALLOC_VAR_EX(indefItems, IndefItems, 1, NULL, DYNAMIC_TYPE_TMP_BUFFER,
3977-
{ret=MEMORY_E;goto end;});
3977+
{
3978+
ret=MEMORY_E;
3979+
goto end;
3980+
});
39783981

39793982
XMEMSET(indefItems, 0, sizeof(*indefItems));
39803983

wolfcrypt/src/pkcs7.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11442,7 +11442,10 @@ static int wc_PKCS7_DecryptKari(wc_PKCS7* pkcs7, byte* in, word32 inSz,
1144211442

1144311443
WC_ALLOC_VAR_EX(encryptedKey, byte, MAX_ENCRYPTED_KEY_SZ,
1144411444
pkcs7->heap, DYNAMIC_TYPE_PKCS7,
11445-
{wc_PKCS7_KariFree(kari);return MEMORY_E;});
11445+
{
11446+
wc_PKCS7_KariFree(kari);
11447+
return MEMORY_E;
11448+
});
1144611449
encryptedKeySz = MAX_ENCRYPTED_KEY_SZ;
1144711450

1144811451
/* parse cert and key */

0 commit comments

Comments
 (0)