forked from wolfSSL/wolfssl
clang tidy unused parameter warning
This commit is contained in:
@@ -6917,8 +6917,10 @@ int DoTls13ClientHello(WOLFSSL* ssl, const byte* input, word32* inOutIdx,
|
|||||||
ERROR_OUT(INVALID_PARAMETER, exit_dch);
|
ERROR_OUT(INVALID_PARAMETER, exit_dch);
|
||||||
}
|
}
|
||||||
/* suites and compression length check */
|
/* suites and compression length check */
|
||||||
if ((args->idx - args->begin) + ssl->clSuites->suiteSz + OPAQUE8_LEN > helloSz)
|
if ((args->idx - args->begin) + ssl->clSuites->suiteSz + OPAQUE8_LEN >
|
||||||
|
helloSz) {
|
||||||
ERROR_OUT(BUFFER_ERROR, exit_dch);
|
ERROR_OUT(BUFFER_ERROR, exit_dch);
|
||||||
|
}
|
||||||
if (ssl->clSuites->suiteSz > WOLFSSL_MAX_SUITE_SZ)
|
if (ssl->clSuites->suiteSz > WOLFSSL_MAX_SUITE_SZ)
|
||||||
ERROR_OUT(BUFFER_ERROR, exit_dch);
|
ERROR_OUT(BUFFER_ERROR, exit_dch);
|
||||||
XMEMCPY(ssl->clSuites->suites, input + args->idx, ssl->clSuites->suiteSz);
|
XMEMCPY(ssl->clSuites->suites, input + args->idx, ssl->clSuites->suiteSz);
|
||||||
|
@@ -5382,6 +5382,9 @@ static WOLFSSL_X509* loadX509orX509REQFromBuffer(
|
|||||||
WOLFSSL_ERROR(ret);
|
WOLFSSL_ERROR(ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* unused parameter when built without WOLFSSL_ENCRYPTED_KEYS */
|
||||||
|
(void)cb;
|
||||||
|
(void)u;
|
||||||
return x509;
|
return x509;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user