@@ -151,20 +151,22 @@ int test_tls12_curve_intersection(void) {
151151 struct test_memio_ctx test_ctx ;
152152 int ret ;
153153 const char * curve_name ;
154- int test1 [] = {WOLFSSL_ECC_SECP256R1 };
155- int test2 [] = {WOLFSSL_ECC_SECP384R1 };
156- int test3 [] = {WOLFSSL_ECC_SECP256R1 , WOLFSSL_ECC_SECP384R1 };
157- int test4 [] = {WOLFSSL_ECC_SECP384R1 , WOLFSSL_ECC_SECP256R1 };
154+ int test1 [] = {WOLFSSL_ECC_SECP256R1 };
155+ int test2 [] = {WOLFSSL_ECC_SECP384R1 };
156+ int test3 [] = {WOLFSSL_ECC_SECP256R1 , WOLFSSL_ECC_SECP384R1 };
157+ int test4 [] = {WOLFSSL_ECC_SECP384R1 , WOLFSSL_ECC_SECP256R1 };
158158 XMEMSET (& test_ctx , 0 , sizeof (test_ctx ));
159159 ExpectIntEQ (test_memio_setup (& test_ctx , & ctx_c , & ctx_s , & ssl_c , & ssl_s ,
160160 wolfTLSv1_2_client_method , wolfTLSv1_2_server_method ), 0 );
161161 ExpectIntEQ (wolfSSL_set_groups (ssl_c ,
162162 test1 , 1 ), WOLFSSL_SUCCESS );
163163 ExpectIntEQ (test_memio_do_handshake (ssl_c , ssl_s , 10 , NULL ), 0 );
164164
165- // Fix: Get curve name and compare with string comparison or use curve ID function
165+ /* Fix: Get curve name and compare with string comparison or use curve
166+ * ID function */
166167 curve_name = wolfSSL_get_curve_name (ssl_s );
167- ExpectStrEQ (curve_name , "SECP256R1" ); // or use appropriate string comparison
168+ /* or use appropriate string comparison */
169+ ExpectStrEQ (curve_name , "SECP256R1" );
168170 curve_name = wolfSSL_get_curve_name (ssl_c );
169171 ExpectStrEQ (curve_name , "SECP256R1" );
170172
@@ -187,7 +189,7 @@ int test_tls12_curve_intersection(void) {
187189 ExpectIntNE (test_memio_do_handshake (ssl_c , ssl_s , 10 , NULL ), 0 );
188190 ret = wolfSSL_get_error (ssl_s , WOLFSSL_FATAL_ERROR );
189191
190- // Fix: Use proper constant or define HANDSHAKE_FAILURE
192+ /* Fix: Use proper constant or define HANDSHAKE_FAILURE */
191193 ExpectTrue (ret == WC_NO_ERR_TRACE (ECC_CURVE_ERROR ));
192194
193195 wolfSSL_free (ssl_c );
@@ -231,7 +233,7 @@ int test_tls13_curve_intersection(void) {
231233 WOLFSSL * ssl_c = NULL , * ssl_s = NULL ;
232234 struct test_memio_ctx test_ctx ;
233235 const char * curve_name ;
234- int test1 [] = {WOLFSSL_ECC_SECP256R1 };
236+ int test1 [] = {WOLFSSL_ECC_SECP256R1 };
235237
236238 XMEMSET (& test_ctx , 0 , sizeof (test_ctx ));
237239 ExpectIntEQ (test_memio_setup (& test_ctx , & ctx_c , & ctx_s , & ssl_c , & ssl_s ,
0 commit comments