mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 18:57:27 +02:00
Use same types for i and chklen, bring all lines under 80 chars
This commit is contained in:
@ -15427,7 +15427,8 @@ int ProcessPeerCerts(WOLFSSL* ssl, byte* input, word32* inOutIdx,
|
|||||||
if (CheckForAltNames(args->dCert,
|
if (CheckForAltNames(args->dCert,
|
||||||
(char*)ssl->buffers.domainName.buffer,
|
(char*)ssl->buffers.domainName.buffer,
|
||||||
(ssl->buffers.domainName.buffer == NULL ? 0 :
|
(ssl->buffers.domainName.buffer == NULL ? 0 :
|
||||||
(word32)XSTRLEN((const char *)ssl->buffers.domainName.buffer)),
|
(word32)XSTRLEN(
|
||||||
|
(const char *)ssl->buffers.domainName.buffer)),
|
||||||
NULL) != 1) {
|
NULL) != 1) {
|
||||||
WOLFSSL_MSG("DomainName match on alt names failed");
|
WOLFSSL_MSG("DomainName match on alt names failed");
|
||||||
/* try to get peer key still */
|
/* try to get peer key still */
|
||||||
@ -15441,7 +15442,9 @@ int ProcessPeerCerts(WOLFSSL* ssl, byte* input, word32* inOutIdx,
|
|||||||
args->dCert->subjectCNLen,
|
args->dCert->subjectCNLen,
|
||||||
(char*)ssl->buffers.domainName.buffer,
|
(char*)ssl->buffers.domainName.buffer,
|
||||||
(ssl->buffers.domainName.buffer == NULL ? 0 :
|
(ssl->buffers.domainName.buffer == NULL ? 0 :
|
||||||
(word32)XSTRLEN((const char *)ssl->buffers.domainName.buffer))) == 0)
|
(word32)XSTRLEN(
|
||||||
|
(const char *)ssl->buffers.domainName.buffer)
|
||||||
|
)) == 0)
|
||||||
{
|
{
|
||||||
WOLFSSL_MSG("DomainName match on common name failed");
|
WOLFSSL_MSG("DomainName match on common name failed");
|
||||||
ret = DOMAIN_NAME_MISMATCH;
|
ret = DOMAIN_NAME_MISMATCH;
|
||||||
|
@ -13343,7 +13343,7 @@ int wolfSSL_X509_check_host(WOLFSSL_X509 *x, const char *chk, size_t chklen,
|
|||||||
unsigned int flags, char **peername)
|
unsigned int flags, char **peername)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
word32 i;
|
size_t i;
|
||||||
#ifdef WOLFSSL_SMALL_STACK
|
#ifdef WOLFSSL_SMALL_STACK
|
||||||
DecodedCert *dCert;
|
DecodedCert *dCert;
|
||||||
#else
|
#else
|
||||||
|
Reference in New Issue
Block a user