Skip to content

Commit 0c00693

Browse files
committed
Use same types for i and chklen, bring all lines under 80 chars
1 parent 447f73c commit 0c00693

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

src/internal.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15427,7 +15427,8 @@ int ProcessPeerCerts(WOLFSSL* ssl, byte* input, word32* inOutIdx,
1542715427
if (CheckForAltNames(args->dCert,
1542815428
(char*)ssl->buffers.domainName.buffer,
1542915429
(ssl->buffers.domainName.buffer == NULL ? 0 :
15430-
(word32)XSTRLEN((const char *)ssl->buffers.domainName.buffer)),
15430+
(word32)XSTRLEN(
15431+
(const char *)ssl->buffers.domainName.buffer)),
1543115432
NULL) != 1) {
1543215433
WOLFSSL_MSG("DomainName match on alt names failed");
1543315434
/* try to get peer key still */
@@ -15441,7 +15442,9 @@ int ProcessPeerCerts(WOLFSSL* ssl, byte* input, word32* inOutIdx,
1544115442
args->dCert->subjectCNLen,
1544215443
(char*)ssl->buffers.domainName.buffer,
1544315444
(ssl->buffers.domainName.buffer == NULL ? 0 :
15444-
(word32)XSTRLEN((const char *)ssl->buffers.domainName.buffer))) == 0)
15445+
(word32)XSTRLEN(
15446+
(const char *)ssl->buffers.domainName.buffer)
15447+
)) == 0)
1544515448
{
1544615449
WOLFSSL_MSG("DomainName match on common name failed");
1544715450
ret = DOMAIN_NAME_MISMATCH;

src/x509.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13343,7 +13343,7 @@ int wolfSSL_X509_check_host(WOLFSSL_X509 *x, const char *chk, size_t chklen,
1334313343
unsigned int flags, char **peername)
1334413344
{
1334513345
int ret;
13346-
word32 i;
13346+
size_t i;
1334713347
#ifdef WOLFSSL_SMALL_STACK
1334813348
DecodedCert *dCert;
1334913349
#else

0 commit comments

Comments
 (0)