mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-03 20:54:41 +02:00
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);
|
||||
}
|
||||
/* 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);
|
||||
}
|
||||
if (ssl->clSuites->suiteSz > WOLFSSL_MAX_SUITE_SZ)
|
||||
ERROR_OUT(BUFFER_ERROR, exit_dch);
|
||||
XMEMCPY(ssl->clSuites->suites, input + args->idx, ssl->clSuites->suiteSz);
|
||||
|
@@ -5382,6 +5382,9 @@ static WOLFSSL_X509* loadX509orX509REQFromBuffer(
|
||||
WOLFSSL_ERROR(ret);
|
||||
}
|
||||
|
||||
/* unused parameter when built without WOLFSSL_ENCRYPTED_KEYS */
|
||||
(void)cb;
|
||||
(void)u;
|
||||
return x509;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user