Skip to content

Commit 1d34b56

Browse files
authored
Merge pull request #7891 from SparkiDev/test_fixes_2
Test fixes
2 parents a39f521 + 56adefc commit 1d34b56

3 files changed

Lines changed: 12 additions & 7 deletions

File tree

tests/api.c

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59747,9 +59747,9 @@ static int test_wolfSSL_SESSION(void)
5974759747

5974859748
/* TLS v1.3 requires session tickets */
5974959749
/* CHACHA and POLY1305 required for myTicketEncCb */
59750-
#if defined(WOLFSSL_TLS13) && (!defined(HAVE_SESSION_TICKET) && \
59751-
!defined(WOLFSSL_NO_TLS12) || !(defined(HAVE_CHACHA) && \
59752-
defined(HAVE_POLY1305) && !defined(HAVE_AESGCM)))
59750+
#if !defined(WOLFSSL_NO_TLS12) && (!defined(WOLFSSL_TLS13) || \
59751+
!(defined(HAVE_SESSION_TICKET) && ((defined(HAVE_CHACHA) && \
59752+
defined(HAVE_POLY1305)) || defined(HAVE_AESGCM))))
5975359753
ExpectNotNull(ctx = wolfSSL_CTX_new(wolfTLSv1_2_client_method()));
5975459754
#else
5975559755
ExpectNotNull(ctx = wolfSSL_CTX_new(wolfSSLv23_client_method()));
@@ -82535,7 +82535,13 @@ static int test_dtls13_bad_epoch_ch(void)
8253582535
}
8253682536
#endif
8253782537

82538-
#if defined(HAVE_SSL_MEMIO_TESTS_DEPENDENCIES) && !defined(NO_SESSION_CACHE)
82538+
#if ((defined(WOLFSSL_TLS13) && !defined(WOLFSSL_NO_DEF_TICKET_ENC_CB) && \
82539+
defined(HAVE_SESSION_TICKET) && defined(WOLFSSL_TICKET_HAVE_ID) && \
82540+
!defined(WOLFSSL_TLS13_MIDDLEBOX_COMPAT)) || \
82541+
(!defined(NO_OLD_TLS) && ((!defined(NO_AES) && !defined(NO_AES_CBC)) || \
82542+
!defined(NO_DES3))) || !defined(WOLFSSL_NO_TLS12)) && \
82543+
!defined(NO_WOLFSSL_CLIENT) && !defined(NO_WOLFSSL_SERVER) && \
82544+
defined(HAVE_SSL_MEMIO_TESTS_DEPENDENCIES) && !defined(NO_SESSION_CACHE)
8253982545
static int test_short_session_id_ssl_ready(WOLFSSL* ssl)
8254082546
{
8254182547
EXPECT_DECLS;
@@ -82609,7 +82615,6 @@ static int test_short_session_id(void)
8260982615
ExpectIntEQ(test_wolfSSL_client_server_nofail_memio(&client_cbf,
8261082616
&server_cbf, NULL), TEST_SUCCESS);
8261182617
}
82612-
8261382618
return EXPECT_RESULT();
8261482619
}
8261582620
#else

wolfcrypt/src/sp_int.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13655,7 +13655,7 @@ static int _sp_exptmod_base_2(const sp_int* e, int digits, const sp_int* m,
1365513655
#ifndef WC_NO_HARDEN
1365613656
FREE_SP_INT_ARRAY(d, NULL);
1365713657
#else
13658-
FREE_SP_INT(tr, m->used * 2 + 1);
13658+
FREE_SP_INT(tr, NULL);
1365913659
#endif
1366013660
return err;
1366113661
}

wolfssl/wolfcrypt/ge_operations.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,6 @@ typedef struct {
112112
ge Z;
113113
ge T2d;
114114
} ge_cached;
115-
#endif /* !ED25519_SMALL */
116115

117116
#ifdef CURVED25519_ASM
118117
void ge_p1p1_to_p2(ge_p2 *r, const ge_p1p1 *p);
@@ -124,6 +123,7 @@ void ge_msub(ge_p1p1 *r, const ge_p3 *p, const ge_precomp *q);
124123
void ge_add(ge_p1p1 *r, const ge_p3 *p, const ge_cached *q);
125124
void ge_sub(ge_p1p1 *r, const ge_p3 *p, const ge_cached *q);
126125
#endif
126+
#endif /* !ED25519_SMALL */
127127

128128
#ifdef __cplusplus
129129
} /* extern "C" */

0 commit comments

Comments
 (0)