@@ -39,11 +39,11 @@ int test_utils_memio_move_message(void)
3939#if defined(HAVE_MANUAL_MEMIO_TESTS_DEPENDENCIES )
4040 WOLFSSL_CTX * ctx_c = NULL , * ctx_s = NULL ;
4141 WOLFSSL * ssl_c = NULL , * ssl_s = NULL ;
42+ struct test_memio_ctx test_ctx ;
4243 (void )ctx_c ;
4344 (void )ssl_c ;
4445 (void )ctx_s ;
4546 (void )ssl_s ;
46- struct test_memio_ctx test_ctx ;
4747 (void )test_ctx ;
4848
4949 XMEMSET (& test_ctx , 0 , sizeof (test_ctx ));
@@ -193,11 +193,11 @@ int test_tls12_curve_intersection(void) {
193193 defined(HAVE_CURVE25519 )
194194 WOLFSSL_CTX * ctx_c = NULL , * ctx_s = NULL ;
195195 WOLFSSL * ssl_c = NULL , * ssl_s = NULL ;
196+ struct test_memio_ctx test_ctx ;
196197 (void )ctx_c ;
197198 (void )ssl_c ;
198199 (void )ctx_s ;
199200 (void )ssl_s ;
200- struct test_memio_ctx test_ctx ;
201201 (void )test_ctx ;
202202 int ret ;
203203 const char * curve_name ;
@@ -281,11 +281,11 @@ int test_tls13_curve_intersection(void) {
281281 defined(WOLFSSL_TLS13 ) && defined(HAVE_ECC ) && defined(HAVE_CURVE25519 )
282282 WOLFSSL_CTX * ctx_c = NULL , * ctx_s = NULL ;
283283 WOLFSSL * ssl_c = NULL , * ssl_s = NULL ;
284+ struct test_memio_ctx test_ctx ;
284285 (void )ctx_c ;
285286 (void )ssl_c ;
286287 (void )ctx_s ;
287288 (void )ssl_s ;
288- struct test_memio_ctx test_ctx ;
289289 (void )test_ctx ;
290290 const char * curve_name ;
291291 int test1 [] = {WOLFSSL_ECC_SECP256R1 };
@@ -323,11 +323,11 @@ int test_tls_certreq_order(void)
323323 */
324324 WOLFSSL_CTX * ctx_c = NULL , * ctx_s = NULL ;
325325 WOLFSSL * ssl_c = NULL , * ssl_s = NULL ;
326+ struct test_memio_ctx test_ctx ;
326327 (void )ctx_c ;
327328 (void )ssl_c ;
328329 (void )ctx_s ;
329330 (void )ssl_s ;
330- struct test_memio_ctx test_ctx ;
331331 (void )test_ctx ;
332332 int i = 0 ;
333333 const char * msg = NULL ;
@@ -1111,11 +1111,11 @@ int test_tls_tlsx_sni_options_coverage(void)
11111111 !defined(WOLFSSL_NO_TLS12 ) && defined(HAVE_SNI )
11121112 WOLFSSL_CTX * ctx_c = NULL , * ctx_s = NULL ;
11131113 WOLFSSL * ssl_c = NULL , * ssl_s = NULL ;
1114+ struct test_memio_ctx test_ctx ;
11141115 (void )ctx_c ;
11151116 (void )ssl_c ;
11161117 (void )ctx_s ;
11171118 (void )ssl_s ;
1118- struct test_memio_ctx test_ctx ;
11191119 (void )test_ctx ;
11201120
11211121 /* --- Subtest 1: client sends "example.com", server expects "example.com"
@@ -1226,11 +1226,11 @@ int test_tls_tlsx_sc_parse_coverage(void)
12261226 !defined(NO_WOLFSSL_CLIENT )
12271227 WOLFSSL_CTX * ctx_c = NULL , * ctx_s = NULL ;
12281228 WOLFSSL * ssl_c = NULL , * ssl_s = NULL ;
1229+ struct test_memio_ctx test_ctx ;
12291230 (void )ctx_c ;
12301231 (void )ssl_c ;
12311232 (void )ctx_s ;
12321233 (void )ssl_s ;
1233- struct test_memio_ctx test_ctx ;
12341234 (void )test_ctx ;
12351235
12361236 /* --- Subtest 1: normal curve intersection (extension != NULL path,
@@ -1323,11 +1323,11 @@ int test_tls_tlsx_sv_parse_coverage(void)
13231323 defined(WOLFSSL_TLS13 ) && !defined(WOLFSSL_NO_TLS12 )
13241324 WOLFSSL_CTX * ctx_c = NULL , * ctx_s = NULL ;
13251325 WOLFSSL * ssl_c = NULL , * ssl_s = NULL ;
1326+ struct test_memio_ctx test_ctx ;
13261327 (void )ctx_c ;
13271328 (void )ssl_c ;
13281329 (void )ctx_s ;
13291330 (void )ssl_s ;
1330- struct test_memio_ctx test_ctx ;
13311331 (void )test_ctx ;
13321332
13331333 /* --- Subtest 1: pure TLS 1.3 handshake.
@@ -1454,11 +1454,11 @@ int test_tls_build_handshake_hash_coverage(void)
14541454 !defined(WOLFSSL_NO_TLS12 ) && !defined(NO_RSA )
14551455 WOLFSSL_CTX * ctx_c = NULL , * ctx_s = NULL ;
14561456 WOLFSSL * ssl_c = NULL , * ssl_s = NULL ;
1457+ struct test_memio_ctx test_ctx ;
14571458 (void )ctx_c ;
14581459 (void )ssl_c ;
14591460 (void )ctx_s ;
14601461 (void )ssl_s ;
1461- struct test_memio_ctx test_ctx ;
14621462 (void )test_ctx ;
14631463
14641464 /* --- Subtest 1: TLS 1.2 with AES-128-CBC-SHA256 (sha256_mac).
@@ -1807,11 +1807,11 @@ int test_tls_tlsx_validate_curves_coverage(void)
18071807 !defined(NO_AES ) && defined(HAVE_AES_CBC )
18081808 WOLFSSL_CTX * ctx_c = NULL , * ctx_s = NULL ;
18091809 WOLFSSL * ssl_c = NULL , * ssl_s = NULL ;
1810+ struct test_memio_ctx test_ctx ;
18101811 (void )ctx_c ;
18111812 (void )ssl_c ;
18121813 (void )ctx_s ;
18131814 (void )ssl_s ;
1814- struct test_memio_ctx test_ctx ;
18151815 (void )test_ctx ;
18161816
18171817 /* --- Subtest 1: ECDHE-RSA cipher + client restricts to SECP256R1,
@@ -1954,11 +1954,11 @@ int test_tls_tlsx_psk_coverage(void)
19541954 !defined(NO_RSA ) && defined(HAVE_ECC )
19551955 WOLFSSL_CTX * ctx_c = NULL , * ctx_s = NULL ;
19561956 WOLFSSL * ssl_c = NULL , * ssl_s = NULL ;
1957+ struct test_memio_ctx test_ctx ;
19571958 (void )ctx_c ;
19581959 (void )ssl_c ;
19591960 (void )ctx_s ;
19601961 (void )ssl_s ;
1961- struct test_memio_ctx test_ctx ;
19621962 (void )test_ctx ;
19631963
19641964 /* --- Subtest 1: full TLS 1.3 handshake followed by session-ticket
@@ -2185,11 +2185,11 @@ int test_tls_tlsx_keyshare_coverage(void)
21852185 !defined(NO_RSA ) && defined(HAVE_ECC )
21862186 WOLFSSL_CTX * ctx_c = NULL , * ctx_s = NULL ;
21872187 WOLFSSL * ssl_c = NULL , * ssl_s = NULL ;
2188+ struct test_memio_ctx test_ctx ;
21882189 (void )ctx_c ;
21892190 (void )ssl_c ;
21902191 (void )ctx_s ;
21912192 (void )ssl_s ;
2192- struct test_memio_ctx test_ctx ;
21932193 (void )test_ctx ;
21942194
21952195 /* --- Subtest 1: TLS 1.3 normal handshake, client offers SECP256R1,
@@ -2326,11 +2326,11 @@ int test_tls_tlsx_csr_coverage(void)
23262326 !defined(NO_RSA ) && defined(HAVE_ECC )
23272327 WOLFSSL_CTX * ctx_c = NULL , * ctx_s = NULL ;
23282328 WOLFSSL * ssl_c = NULL , * ssl_s = NULL ;
2329+ struct test_memio_ctx test_ctx ;
23292330 (void )ctx_c ;
23302331 (void )ssl_c ;
23312332 (void )ctx_s ;
23322333 (void )ssl_s ;
2333- struct test_memio_ctx test_ctx ;
23342334 (void )test_ctx ;
23352335
23362336 /* --- Subtest 1: TLS 1.2: client requests OCSP stapling via
@@ -2425,11 +2425,11 @@ int test_tls_tlsx_write_request_coverage(void)
24252425 !defined(NO_WOLFSSL_SERVER ) && !defined(NO_RSA )
24262426 WOLFSSL_CTX * ctx_c = NULL , * ctx_s = NULL ;
24272427 WOLFSSL * ssl_c = NULL , * ssl_s = NULL ;
2428+ struct test_memio_ctx test_ctx ;
24282429 (void )ctx_c ;
24292430 (void )ssl_c ;
24302431 (void )ctx_s ;
24312432 (void )ssl_s ;
2432- struct test_memio_ctx test_ctx ;
24332433 (void )test_ctx ;
24342434
24352435 /* --- Subtest 1: TLS 1.2 client WriteRequest.
@@ -4272,11 +4272,11 @@ int test_tls_build_handshake_hash_batch4(void)
42724272
42734273 WOLFSSL_CTX * ctx_c = NULL , * ctx_s = NULL ;
42744274 WOLFSSL * ssl_c = NULL , * ssl_s = NULL ;
4275+ struct test_memio_ctx test_ctx ;
42754276 (void )ctx_c ;
42764277 (void )ssl_c ;
42774278 (void )ctx_s ;
42784279 (void )ssl_s ;
4279- struct test_memio_ctx test_ctx ;
42804280 (void )test_ctx ;
42814281
42824282 /* --- Subtest 1: TLS 1.2 with DHE-RSA-AES128-SHA (sha_mac <= sha256_mac).
0 commit comments