Lines Matching refs:fixture
31 static void tear_down(CIPHERLIST_TEST_FIXTURE *fixture) in tear_down() argument
33 if (fixture != NULL) { in tear_down()
34 SSL_CTX_free(fixture->server); in tear_down()
35 SSL_CTX_free(fixture->client); in tear_down()
36 fixture->server = fixture->client = NULL; in tear_down()
37 OPENSSL_free(fixture); in tear_down()
43 CIPHERLIST_TEST_FIXTURE *fixture; in set_up() local
45 if (!TEST_ptr(fixture = OPENSSL_zalloc(sizeof(*fixture)))) in set_up()
47 fixture->test_case_name = test_case_name; in set_up()
48 if (!TEST_ptr(fixture->server = SSL_CTX_new(TLS_server_method())) in set_up()
49 || !TEST_ptr(fixture->client = SSL_CTX_new(TLS_client_method()))) { in set_up()
50 tear_down(fixture); in set_up()
53 return fixture; in set_up()
184 static int execute_test(CIPHERLIST_TEST_FIXTURE *fixture) in execute_test() argument
186 return fixture != NULL in execute_test()
187 && test_default_cipherlist(fixture->server) in execute_test()
188 && test_default_cipherlist(fixture->client); in execute_test()
207 if (!TEST_true(SSL_CTX_set_cipher_list(fixture->server, "DEFAULT")) in test_default_cipherlist_explicit()
208 || !TEST_true(SSL_CTX_set_cipher_list(fixture->client, "DEFAULT"))) { in test_default_cipherlist_explicit()
209 tear_down(fixture); in test_default_cipherlist_explicit()
210 fixture = NULL; in test_default_cipherlist_explicit()
222 if (!TEST_int_eq(SSL_CTX_set_cipher_list(fixture->server, "no-such"), 0)) in test_default_cipherlist_clear()
228 s = SSL_new(fixture->client); in test_default_cipherlist_clear()
243 tear_down(fixture); in test_default_cipherlist_clear()