Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions src/internal.c
Original file line number Diff line number Diff line change
Expand Up @@ -27241,11 +27241,6 @@ int SendCertificateStatus(WOLFSSL* ssl)
else {
while (ret == 0 && i < MAX_CHAIN_DEPTH &&
NULL != (request = ssl->ctx->chainOcspRequest[i])) {
if ((i + 1) >= MAX_CERT_EXTENSIONS) {
ret = MAX_CERT_EXTENSIONS_ERR;
break;
}

request->ssl = ssl;
ret = CheckOcspRequest(SSL_CM(ssl)->ocsp_stapling,
request, &responses[++i], ssl->heap);
Expand Down
3 changes: 3 additions & 0 deletions tests/api.c
Original file line number Diff line number Diff line change
Expand Up @@ -15015,6 +15015,9 @@ static int ech_find_extension(byte* buf, word16* idx_p, word16 extType)
if (seekRet < 0) {
return seekRet;
}
if (extLen > MAX_RECORD_SIZE) {
return BAD_FUNC_ARG;
}
idx = extIdx = ((word16)seekRet + *idx_p);

while (idx - extIdx < extLen) {
Expand Down
4 changes: 2 additions & 2 deletions tests/api/test_ossl_x509_vp.c
Original file line number Diff line number Diff line change
Expand Up @@ -170,13 +170,13 @@ int test_wolfSSL_X509_VERIFY_PARAM(void)
paramTo->flags = WOLFSSL_USE_CHECK_TIME;
paramFrom->check_time = 22;
ExpectIntEQ(X509_VERIFY_PARAM_inherit(paramTo, paramFrom), 1);
ExpectIntEQ(paramTo->check_time, 11);
ExpectIntEQ(paramTo->check_time == 11, 1);
ExpectIntEQ(paramTo->flags & WOLFSSL_USE_CHECK_TIME,
WOLFSSL_USE_CHECK_TIME);

paramTo->inherit_flags = X509_VP_FLAG_OVERWRITE;
ExpectIntEQ(X509_VERIFY_PARAM_inherit(paramTo, paramFrom), 1);
ExpectIntEQ(paramTo->check_time, 22);
ExpectIntEQ(paramTo->check_time == 22, 1);
ExpectIntEQ(paramTo->flags & WOLFSSL_USE_CHECK_TIME, 0);

/* test for incorrect parameters */
Expand Down
4 changes: 2 additions & 2 deletions wolfcrypt/test/test.c
Original file line number Diff line number Diff line change
Expand Up @@ -75717,7 +75717,7 @@ static int myCryptoDevCb(int devIdArg, wc_CryptoInfo* info, void* ctx)
use SW */
myCryptoDevCtx* myCtx = (myCryptoDevCtx*)ctx;

if (info == NULL)
if (info == NULL || myCtx == NULL)
return BAD_FUNC_ARG;

#ifdef DEBUG_WOLFSSL
Expand Down Expand Up @@ -76010,7 +76010,7 @@ static int myCryptoDevCb(int devIdArg, wc_CryptoInfo* info, void* ctx)
}
else {
ret = 0;
if (myCtx != NULL && myCtx->eccCheckPubExpectZeroPoint) {
if (myCtx->eccCheckPubExpectZeroPoint) {
const byte* pub = info->pk.ecc_check_pub.pubKey;
word32 curveSz = (word32)k->dp->size;
word32 ptSz = 1 + 2 * curveSz;
Expand Down
Loading