Lines Matching full:fixture

30 static void tear_down(CIPHERLIST_TEST_FIXTURE *fixture)  in tear_down()  argument
32 if (fixture != NULL) { in tear_down()
33 SSL_CTX_free(fixture->server); in tear_down()
34 SSL_CTX_free(fixture->client); in tear_down()
35 fixture->server = fixture->client = NULL; in tear_down()
36 OPENSSL_free(fixture); in tear_down()
42 CIPHERLIST_TEST_FIXTURE *fixture; in set_up() local
44 if (!TEST_ptr(fixture = OPENSSL_zalloc(sizeof(*fixture)))) in set_up()
46 fixture->test_case_name = test_case_name; in set_up()
47 if (!TEST_ptr(fixture->server = SSL_CTX_new(TLS_server_method())) in set_up()
48 || !TEST_ptr(fixture->client = SSL_CTX_new(TLS_client_method()))) { in set_up()
49 tear_down(fixture); in set_up()
52 return fixture; in set_up()
183 static int execute_test(CIPHERLIST_TEST_FIXTURE *fixture) in execute_test() argument
185 return fixture != NULL in execute_test()
186 && test_default_cipherlist(fixture->server) in execute_test()
187 && test_default_cipherlist(fixture->client); in execute_test()
206 if (!TEST_true(SSL_CTX_set_cipher_list(fixture->server, "DEFAULT")) in test_default_cipherlist_explicit()
207 || !TEST_true(SSL_CTX_set_cipher_list(fixture->client, "DEFAULT"))) { in test_default_cipherlist_explicit()
208 tear_down(fixture); in test_default_cipherlist_explicit()
209 fixture = NULL; in test_default_cipherlist_explicit()
221 if (!TEST_int_eq(SSL_CTX_set_cipher_list(fixture->server, "no-such"), 0)) in test_default_cipherlist_clear()
227 s = SSL_new(fixture->client); in test_default_cipherlist_clear()
242 tear_down(fixture); in test_default_cipherlist_clear()
250 if (!TEST_true(SSL_CTX_set_cipher_list(fixture->server, TLS1_RFC_RSA_WITH_AES_128_SHA)) in test_stdname_cipherlist()
251 || !TEST_true(SSL_CTX_set_cipher_list(fixture->client, TLS1_RFC_RSA_WITH_AES_128_SHA))) { in test_stdname_cipherlist()
256 tear_down(fixture); in test_stdname_cipherlist()
257 fixture = NULL; in test_stdname_cipherlist()