Skip to content

Commit 404fafd

Browse files
authored
Merge pull request #8677 from SparkiDev/regression_fixes_17
Regression test fixes
2 parents a66fb12 + 4f3ce18 commit 404fafd

4 files changed

Lines changed: 18 additions & 4 deletions

File tree

src/dtls13.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1545,11 +1545,14 @@ static int Dtls13RtxSendBuffered(WOLFSSL* ssl)
15451545
byte* output;
15461546
int isLast;
15471547
int sendSz;
1548+
#ifndef NO_ASN_TIME
15481549
word32 now;
1550+
#endif
15491551
int ret;
15501552

15511553
WOLFSSL_ENTER("Dtls13RtxSendBuffered");
15521554

1555+
#ifndef NO_ASN_TIME
15531556
now = LowResTimer();
15541557
if (now - ssl->dtls13Rtx.lastRtx < DTLS13_MIN_RTX_INTERVAL) {
15551558
#ifdef WOLFSSL_DEBUG_TLS
@@ -1559,6 +1562,7 @@ static int Dtls13RtxSendBuffered(WOLFSSL* ssl)
15591562
}
15601563

15611564
ssl->dtls13Rtx.lastRtx = now;
1565+
#endif
15621566

15631567
r = ssl->dtls13Rtx.rtxRecords;
15641568
prevNext = &ssl->dtls13Rtx.rtxRecords;
@@ -1955,6 +1959,9 @@ int Dtls13DeriveSnKeys(WOLFSSL* ssl, int provision)
19551959

19561960
end:
19571961
ForceZero(key_dig, MAX_PRF_DIG);
1962+
#ifdef WOLFSSL_CHECK_MEM_ZERO
1963+
wc_MemZero_Check(key_dig, sizeof(key_dig));
1964+
#endif
19581965
return ret;
19591966
}
19601967

tests/api.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47887,6 +47887,12 @@ static int test_tls13_apis(void)
4788747887
#elif defined(HAVE_ECC)
4788847888
const char* ourCert = eccCertFile;
4788947889
const char* ourKey = eccKeyFile;
47890+
#elif defined(HAVE_ED25519)
47891+
const char* ourCert = edCertFile;
47892+
const char* ourKey = edKeyFile;
47893+
#elif defined(HAVE_ED448)
47894+
const char* ourCert = ed448CertFile;
47895+
const char* ourKey = ed448KeyFile;
4789047896
#endif
4789147897
#endif
4789247898
#endif

wolfcrypt/src/asn.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38392,7 +38392,8 @@ static int DecodeBasicOcspResponse(byte* source, word32* ioIndex,
3839238392
if (DecodeCerts(source, &idx, resp, size) < 0)
3839338393
return ASN_PARSE_E;
3839438394

38395-
ret = OcspCheckCert(resp, noVerify, noVerifySignature, cm, heap);
38395+
ret = OcspCheckCert(resp, noVerify, noVerifySignature,
38396+
(WOLFSSL_CERT_MANAGER*)cm, heap);
3839638397
if (ret == 0) {
3839738398
sigValid = 1;
3839838399
}
@@ -38407,7 +38408,7 @@ static int DecodeBasicOcspResponse(byte* source, word32* ioIndex,
3840738408
if (!noVerifySignature && !sigValid) {
3840838409
Signer* ca;
3840938410
SignatureCtx sigCtx;
38410-
ca = OcspFindSigner(resp, cm);
38411+
ca = OcspFindSigner(resp, (WOLFSSL_CERT_MANAGER*)cm);
3841138412
if (ca == NULL)
3841238413
return ASN_NO_SIGNER_E;
3841338414

wolfssl/wolfcrypt/mem_track.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,7 @@ static WC_INLINE int StackSizeCheck(struct func_args* args, thread_func tf)
596596
#endif
597597

598598
#ifdef PTHREAD_STACK_MIN
599-
if (stackSize < PTHREAD_STACK_MIN)
599+
if (stackSize < (size_t)PTHREAD_STACK_MIN)
600600
stackSize = PTHREAD_STACK_MIN;
601601
#endif
602602

@@ -677,7 +677,7 @@ static WC_INLINE int StackSizeCheck_launch(struct func_args* args,
677677
struct stack_size_debug_context* shim_args;
678678

679679
#ifdef PTHREAD_STACK_MIN
680-
if (stackSize < PTHREAD_STACK_MIN)
680+
if (stackSize < (size_t)PTHREAD_STACK_MIN)
681681
stackSize = PTHREAD_STACK_MIN;
682682
#endif
683683

0 commit comments

Comments
 (0)