Lines Matching refs:cctx
350 SSL_CTX *cctx = NULL, *sctx = NULL; in test_keylog() local
366 &sctx, &cctx, cert, privkey))) in test_keylog()
370 SSL_CTX_set_options(cctx, SSL_OP_NO_TLSv1_3); in test_keylog()
374 if (!TEST_true(SSL_CTX_set_cipher_list(cctx, "RSA"))) in test_keylog()
377 if (!TEST_true(SSL_CTX_get_keylog_callback(cctx) == NULL) in test_keylog()
380 SSL_CTX_set_keylog_callback(cctx, client_keylog_callback); in test_keylog()
381 if (!TEST_true(SSL_CTX_get_keylog_callback(cctx) in test_keylog()
390 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, in test_keylog()
422 SSL_CTX_free(cctx); in test_keylog()
431 SSL_CTX *cctx = NULL, *sctx = NULL; in test_keylog_no_master_key() local
449 &sctx, &cctx, cert, privkey)) in test_keylog_no_master_key()
454 if (!TEST_true(SSL_CTX_get_keylog_callback(cctx) == NULL) in test_keylog_no_master_key()
458 SSL_CTX_set_keylog_callback(cctx, client_keylog_callback); in test_keylog_no_master_key()
459 if (!TEST_true(SSL_CTX_get_keylog_callback(cctx) in test_keylog_no_master_key()
469 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, in test_keylog_no_master_key()
507 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, in test_keylog_no_master_key()
539 SSL_CTX_free(cctx); in test_keylog_no_master_key()
574 SSL_CTX *cctx = NULL, *sctx = NULL; in test_client_cert_verify_cb() local
580 &sctx, &cctx, NULL, NULL))) in test_client_cert_verify_cb()
587 if (!TEST_true(SSL_CTX_load_verify_locations(cctx, root, NULL))) in test_client_cert_verify_cb()
589 SSL_CTX_set_verify(cctx, SSL_VERIFY_PEER, NULL); in test_client_cert_verify_cb()
590 SSL_CTX_set_cert_verify_callback(cctx, verify_retry_cb, NULL); in test_client_cert_verify_cb()
591 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, in test_client_cert_verify_cb()
632 SSL_CTX_free(cctx); in test_client_cert_verify_cb()
754 SSL_CTX *cctx = NULL, *sctx = NULL; in test_client_hello_cb() local
760 &sctx, &cctx, cert, privkey))) in test_client_hello_cb()
765 SSL_CTX_set_max_proto_version(cctx, TLS1_2_VERSION); in test_client_hello_cb()
767 if (!TEST_true(SSL_CTX_set_cipher_list(cctx, in test_client_hello_cb()
769 || !TEST_true(create_ssl_objects(sctx, cctx, &serverssl, in test_client_hello_cb()
789 SSL_CTX_free(cctx); in test_client_hello_cb()
796 SSL_CTX *cctx = NULL, *sctx = NULL; in test_no_ems() local
802 &sctx, &cctx, cert, privkey)) { in test_no_ems()
809 if (!create_ssl_objects(sctx, cctx, &serverssl, &clientssl, NULL, NULL)) { in test_no_ems()
840 SSL_CTX_free(cctx); in test_no_ems()
853 SSL_CTX *cctx = NULL, *sctx = NULL; in test_ccs_change_cipher() local
868 &sctx, &cctx, cert, privkey)) in test_ccs_change_cipher()
870 || !TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_ccs_change_cipher()
884 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_ccs_change_cipher()
904 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_ccs_change_cipher()
950 SSL_CTX_free(cctx); in test_ccs_change_cipher()
962 SSL_CTX *cctx = NULL, *sctx = NULL; in execute_test_large_message() local
967 max_version, &sctx, &cctx, cert, in execute_test_large_message()
978 || !TEST_true(SSL_CTX_set_cipher_list(cctx, in execute_test_large_message()
989 SSL_CTX_set_read_ahead(cctx, 1); in execute_test_large_message()
995 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in execute_test_large_message()
1013 SSL_CTX_free(cctx); in execute_test_large_message()
1133 SSL_CTX *cctx = NULL, *sctx = NULL; in execute_test_ktls() local
1162 &sctx, &cctx, cert, privkey))) in execute_test_ktls()
1166 if (!TEST_true(SSL_CTX_set_ciphersuites(cctx, cipher)) in execute_test_ktls()
1170 if (!TEST_true(SSL_CTX_set_cipher_list(cctx, cipher)) in execute_test_ktls()
1175 if (!TEST_true(create_ssl_objects2(sctx, cctx, &serverssl, in execute_test_ktls()
1290 SSL_CTX_free(cctx); in execute_test_ktls()
1306 SSL_CTX *cctx = NULL, *sctx = NULL; in execute_test_ktls_sendfile() local
1338 &sctx, &cctx, cert, privkey))) in execute_test_ktls_sendfile()
1342 if (!TEST_true(SSL_CTX_set_ciphersuites(cctx, cipher)) in execute_test_ktls_sendfile()
1346 if (!TEST_true(SSL_CTX_set_cipher_list(cctx, cipher)) in execute_test_ktls_sendfile()
1351 if (!TEST_true(create_ssl_objects2(sctx, cctx, &serverssl, in execute_test_ktls_sendfile()
1432 SSL_CTX_free(cctx); in execute_test_ktls_sendfile()
1551 SSL_CTX *cctx = NULL, *sctx = NULL; in test_large_app_data() local
1642 &sctx, &cctx, cert, privkey))) in test_large_app_data()
1647 if (!TEST_true(SSL_CTX_set_cipher_list(cctx, "DEFAULT:@SECLEVEL=0")) in test_large_app_data()
1653 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, in test_large_app_data()
1700 SSL_CTX_free(cctx); in test_large_app_data()
1711 SSL_CTX *cctx = NULL, *sctx = NULL; in execute_cleanse_plaintext() local
1724 &sctx, &cctx, cert, in execute_cleanse_plaintext()
1740 || !TEST_true(SSL_CTX_set_cipher_list(cctx, in execute_cleanse_plaintext()
1746 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in execute_cleanse_plaintext()
1807 SSL_CTX_free(cctx); in execute_cleanse_plaintext()
1898 SSL_CTX *cctx = NULL, *sctx = NULL; in test_tlsext_status_type() local
1907 &sctx, &cctx, cert, privkey)) in test_tlsext_status_type()
1910 if (SSL_CTX_get_tlsext_status_type(cctx) != -1) in test_tlsext_status_type()
1915 clientssl = SSL_new(cctx); in test_tlsext_status_type()
1928 if (!SSL_CTX_set_tlsext_status_type(cctx, TLSEXT_STATUSTYPE_ocsp) in test_tlsext_status_type()
1929 || SSL_CTX_get_tlsext_status_type(cctx) != TLSEXT_STATUSTYPE_ocsp) in test_tlsext_status_type()
1932 clientssl = SSL_new(cctx); in test_tlsext_status_type()
1944 SSL_CTX_set_tlsext_status_cb(cctx, ocsp_client_cb); in test_tlsext_status_type()
1945 SSL_CTX_set_tlsext_status_arg(cctx, &cdummyarg); in test_tlsext_status_type()
1948 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, in test_tlsext_status_type()
1964 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, in test_tlsext_status_type()
1984 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, in test_tlsext_status_type()
2020 SSL_CTX_free(cctx); in test_tlsext_status_type()
2063 SSL_CTX *sctx = NULL, *cctx = NULL; in execute_test_session() local
2080 &sctx, &cctx, cert, privkey))) in execute_test_session()
2087 SSL_CTX_set_min_proto_version(cctx, maxprot); in execute_test_session()
2088 SSL_CTX_set_max_proto_version(cctx, maxprot); in execute_test_session()
2092 SSL_CTX_sess_set_new_cb(cctx, new_session_cb); in execute_test_session()
2093 SSL_CTX_sess_set_remove_cb(cctx, remove_session_cb); in execute_test_session()
2097 SSL_CTX_set_session_cache_mode(cctx, SSL_SESS_CACHE_CLIENT); in execute_test_session()
2099 SSL_CTX_set_session_cache_mode(cctx, in execute_test_session()
2108 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl1, &clientssl1, in execute_test_session()
2116 if (use_int_cache && !TEST_false(SSL_CTX_add_session(cctx, sess1))) in execute_test_session()
2125 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl2, in execute_test_session()
2161 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl2, in execute_test_session()
2190 if (!TEST_true(SSL_CTX_add_session(cctx, sess2)) in execute_test_session()
2191 || !TEST_true(SSL_CTX_remove_session(cctx, sess2))) in execute_test_session()
2197 if (!TEST_false(SSL_CTX_remove_session(cctx, sess2))) in execute_test_session()
2208 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl3, in execute_test_session()
2222 if (use_int_cache && !TEST_true(SSL_CTX_add_session(cctx, sess2))) in execute_test_session()
2228 SSL_CTX_sess_set_new_cb(cctx, NULL); in execute_test_session()
2229 SSL_CTX_sess_set_remove_cb(cctx, NULL); in execute_test_session()
2236 SSL_CTX_set_session_cache_mode(cctx, 0); in execute_test_session()
2258 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl1, &clientssl1, in execute_test_session()
2308 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl2, in execute_test_session()
2371 SSL_CTX_free(cctx); in execute_test_session()
2468 SSL_CTX **cctx) in setup_ticket_test() argument
2474 sctx, cctx, cert, privkey)) in setup_ticket_test()
2484 SSL_CTX_set_session_cache_mode(*cctx, SSL_SESS_CACHE_CLIENT in setup_ticket_test()
2486 SSL_CTX_sess_set_new_cb(*cctx, new_cachesession_cb); in setup_ticket_test()
2491 static int check_resumption(int idx, SSL_CTX *sctx, SSL_CTX *cctx, int succ) in check_resumption() argument
2499 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, in check_resumption()
2550 SSL_CTX *sctx = NULL, *cctx = NULL; in test_tickets() local
2560 if (!setup_ticket_test(stateful, idx, &sctx, &cctx)) in test_tickets()
2563 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, in test_tickets()
2578 SSL_CTX_free(cctx); in test_tickets()
2580 sctx = cctx = NULL; in test_tickets()
2591 if (!setup_ticket_test(stateful, idx, &sctx, &cctx)) in test_tickets()
2594 if (!check_resumption(idx, sctx, cctx, 0)) in test_tickets()
2601 SSL_CTX_free(cctx); in test_tickets()
2602 sctx = cctx = NULL; in test_tickets()
2604 if (!setup_ticket_test(stateful, idx, &sctx, &cctx)) in test_tickets()
2607 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, in test_tickets()
2637 if (!check_resumption(idx, sctx, cctx, 1)) in test_tickets()
2650 SSL_CTX_free(cctx); in test_tickets()
2667 SSL_CTX *sctx = NULL, *cctx = NULL; in test_psk_tickets() local
2674 &sctx, &cctx, NULL, NULL)) in test_psk_tickets()
2680 SSL_CTX_set_session_cache_mode(cctx, SSL_SESS_CACHE_CLIENT in test_psk_tickets()
2682 SSL_CTX_set_psk_use_session_callback(cctx, use_session_cb); in test_psk_tickets()
2684 SSL_CTX_sess_set_new_cb(cctx, new_session_cb); in test_psk_tickets()
2690 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_psk_tickets()
2712 SSL_CTX_free(cctx); in test_psk_tickets()
2722 SSL_CTX *sctx = NULL, *cctx = NULL; in test_extra_tickets() local
2739 if (!TEST_ptr(bretry) || !setup_ticket_test(stateful, idx, &sctx, &cctx)) in test_extra_tickets()
2743 SSL_CTX_sess_set_new_cb(cctx, new_session_cb); in test_extra_tickets()
2745 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, in test_extra_tickets()
2876 SSL_CTX_free(cctx); in test_extra_tickets()
2878 sctx = cctx = NULL; in test_extra_tickets()
2933 SSL_CTX *sctx = NULL, *cctx = NULL; in test_ssl_set_bio() local
2962 &sctx, &cctx, cert, privkey))) in test_ssl_set_bio()
2973 SSL_CTX_set_max_proto_version(cctx, TLS1_2_VERSION); in test_ssl_set_bio()
2976 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_ssl_set_bio()
3051 SSL_CTX_free(cctx); in test_ssl_set_bio()
3172 SSL_CTX *cctx = NULL, *sctx = NULL; in test_set_sigalgs() local
3188 &sctx, &cctx, cert, privkey))) in test_set_sigalgs()
3191 SSL_CTX_set_max_proto_version(cctx, TLS1_2_VERSION); in test_set_sigalgs()
3197 ret = SSL_CTX_set1_sigalgs(cctx, curr->list, curr->listlen); in test_set_sigalgs()
3199 ret = SSL_CTX_set1_sigalgs_list(cctx, curr->liststr); in test_set_sigalgs()
3214 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, in test_set_sigalgs()
3247 SSL_CTX_free(cctx); in test_set_sigalgs()
3415 static int setupearly_data_test(SSL_CTX **cctx, SSL_CTX **sctx, SSL **clientssl, in setupearly_data_test() argument
3425 sctx, cctx, cert, privkey))) in setupearly_data_test()
3436 SSL_CTX_set_read_ahead(*cctx, 1); in setupearly_data_test()
3440 SSL_CTX_set_psk_use_session_callback(*cctx, use_session_cb); in setupearly_data_test()
3447 if (!TEST_true(create_ssl_objects(*sctx, *cctx, serverssl, clientssl, in setupearly_data_test()
3511 if (!TEST_true(create_ssl_objects(*sctx, *cctx, serverssl, in setupearly_data_test()
3540 SSL_CTX *cctx = NULL, *sctx = NULL; in test_early_data_read_write() local
3552 if (!TEST_true(setupearly_data_test(&cctx, &sctx, &clientssl, in test_early_data_read_write()
3709 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, in test_early_data_read_write()
3756 SSL_CTX_free(cctx); in test_early_data_read_write()
3785 SSL_CTX *cctx = NULL, *sctx = NULL; in test_early_data_replay_int() local
3797 &sctx, &cctx, cert, privkey))) in test_early_data_replay_int()
3821 if (!TEST_true(setupearly_data_test(&cctx, &sctx, &clientssl, in test_early_data_replay_int()
3840 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, in test_early_data_replay_int()
3901 SSL_CTX_free(cctx); in test_early_data_replay_int()
3943 SSL_CTX *cctx = NULL, *sctx = NULL; in early_data_skip_helper() local
3959 &sctx, &cctx, cert, privkey))) in early_data_skip_helper()
3964 SSL_CTX_set_security_level(cctx, 0); in early_data_skip_helper()
3968 || !TEST_true(SSL_CTX_set_ciphersuites(cctx, ciphersuites[cipher]))) in early_data_skip_helper()
3971 if (!TEST_true(setupearly_data_test(&cctx, &sctx, &clientssl, in early_data_skip_helper()
4115 SSL_CTX_free(cctx); in early_data_skip_helper()
4170 SSL_CTX *cctx = NULL, *sctx = NULL; in test_early_data_not_sent() local
4177 if (!TEST_true(setupearly_data_test(&cctx, &sctx, &clientssl, in test_early_data_not_sent()
4221 SSL_CTX_free(cctx); in test_early_data_not_sent()
4253 SSL_CTX *cctx = NULL, *sctx = NULL; in test_early_data_psk() local
4272 if (!TEST_true(setupearly_data_test(&cctx, &sctx, &clientssl, in test_early_data_psk()
4427 SSL_CTX_free(cctx); in test_early_data_psk()
4443 SSL_CTX *cctx = NULL, *sctx = NULL; in test_early_data_psk_with_all_ciphers() local
4498 if (!TEST_true(setupearly_data_test(&cctx, &sctx, &clientssl, in test_early_data_psk_with_all_ciphers()
4569 SSL_CTX_free(cctx); in test_early_data_psk_with_all_ciphers()
4579 SSL_CTX *cctx = NULL, *sctx = NULL; in test_early_data_not_expected() local
4586 if (!TEST_true(setupearly_data_test(&cctx, &sctx, &clientssl, in test_early_data_not_expected()
4628 SSL_CTX_free(cctx); in test_early_data_not_expected()
4640 SSL_CTX *cctx = NULL, *sctx = NULL; in test_early_data_tls1_2() local
4646 if (!TEST_true(setupearly_data_test(&cctx, &sctx, &clientssl, in test_early_data_tls1_2()
4702 SSL_CTX_free(cctx); in test_early_data_tls1_2()
4724 SSL_CTX *cctx = NULL, *sctx = NULL; in test_set_ciphersuite() local
4730 &sctx, &cctx, cert, privkey)) in test_set_ciphersuite()
4737 if (!TEST_true(SSL_CTX_set_cipher_list(cctx, "AES256-GCM-SHA384"))) in test_set_ciphersuite()
4743 if (!TEST_true(SSL_CTX_set_ciphersuites(cctx, in test_set_ciphersuite()
4748 if (!TEST_true(SSL_CTX_set_ciphersuites(cctx, in test_set_ciphersuite()
4753 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, in test_set_ciphersuite()
4784 SSL_CTX_free(cctx); in test_set_ciphersuite()
4791 SSL_CTX *cctx = NULL, *sctx = NULL; in test_ciphersuite_change() local
4800 &sctx, &cctx, cert, privkey)) in test_ciphersuite_change()
4805 || !TEST_true(SSL_CTX_set_ciphersuites(cctx, in test_ciphersuite_change()
4809 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_ciphersuite_change()
4825 if (!TEST_true(SSL_CTX_set_ciphersuites(cctx, in test_ciphersuite_change()
4827 || !TEST_true(create_ssl_objects(sctx, cctx, &serverssl, in test_ciphersuite_change()
4847 if (!TEST_true(SSL_CTX_set_ciphersuites(cctx, "TLS_AES_256_GCM_SHA384")) in test_ciphersuite_change()
4848 || !TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_ciphersuite_change()
4865 if (!TEST_true(SSL_CTX_set_ciphersuites(cctx, "TLS_AES_256_GCM_SHA384")) in test_ciphersuite_change()
4866 || !TEST_true(create_ssl_objects(sctx, cctx, &serverssl, in test_ciphersuite_change()
4879 if (!TEST_true(SSL_CTX_set_ciphersuites(cctx, in test_ciphersuite_change()
4883 || !TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_ciphersuite_change()
4917 SSL_CTX_free(cctx); in test_ciphersuite_change()
4953 SSL_CTX *sctx = NULL, *cctx = NULL; in test_key_exchange() local
5041 max_version, &sctx, &cctx, cert, in test_key_exchange()
5049 if (!TEST_true(SSL_CTX_set_ciphersuites(cctx, in test_key_exchange()
5064 if (!TEST_true(SSL_CTX_set_cipher_list(cctx, in test_key_exchange()
5070 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_key_exchange()
5110 SSL_CTX_free(cctx); in test_key_exchange()
5186 SSL_CTX *sctx = NULL, *cctx = NULL; in test_negotiated_group() local
5222 max_version, &sctx, &cctx, cert, in test_negotiated_group()
5235 if (!TEST_true(SSL_CTX_set_cipher_list(cctx, in test_negotiated_group()
5240 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_negotiated_group()
5266 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_negotiated_group()
5312 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_negotiated_group()
5333 SSL_CTX_free(cctx); in test_negotiated_group()
5348 SSL_CTX *sctx = NULL, *cctx = NULL; in test_tls13_ciphersuite() local
5411 &sctx, &cctx, cert, privkey))) in test_tls13_ciphersuite()
5416 SSL_CTX_set_security_level(cctx, 0); in test_tls13_ciphersuite()
5421 || !TEST_true(SSL_CTX_set_ciphersuites(cctx, t13_cipher))) in test_tls13_ciphersuite()
5425 || !TEST_true(SSL_CTX_set_cipher_list(cctx, in test_tls13_ciphersuite()
5431 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, in test_tls13_ciphersuite()
5480 SSL_CTX_free(cctx); in test_tls13_ciphersuite()
5481 cctx = NULL; in test_tls13_ciphersuite()
5490 SSL_CTX_free(cctx); in test_tls13_ciphersuite()
5503 SSL_CTX *sctx = NULL, *cctx = NULL; in test_tls13_psk() local
5516 &sctx, &cctx, idx == 3 ? NULL : cert, in test_tls13_psk()
5527 if (!TEST_true(SSL_CTX_set_ciphersuites(cctx, in test_tls13_psk()
5536 if (!TEST_true(SSL_CTX_set_ciphersuites(cctx, in test_tls13_psk()
5548 SSL_CTX_set_psk_use_session_callback(cctx, use_session_cb); in test_tls13_psk()
5553 SSL_CTX_set_psk_client_callback(cctx, psk_client_cb); in test_tls13_psk()
5568 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_tls13_psk()
5599 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_tls13_psk()
5642 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_tls13_psk()
5689 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_tls13_psk()
5727 SSL_CTX_free(cctx); in test_tls13_psk()
5744 SSL_CTX *sctx = NULL, *cctx = NULL; in test_tls13_no_dhe_kex() local
5766 &sctx, &cctx, cert, privkey))) in test_tls13_no_dhe_kex()
5769 SSL_CTX_set_session_cache_mode(cctx, SSL_SESS_CACHE_CLIENT in test_tls13_no_dhe_kex()
5773 SSL_CTX_set_options(cctx, client_options); in test_tls13_no_dhe_kex()
5775 SSL_CTX_sess_set_new_cb(cctx, new_cachesession_cb); in test_tls13_no_dhe_kex()
5777 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, in test_tls13_no_dhe_kex()
5794 SSL_CTX_free(cctx); in test_tls13_no_dhe_kex()
5796 cctx = NULL; in test_tls13_no_dhe_kex()
5805 NULL, &cctx, cert, privkey))) in test_tls13_no_dhe_kex()
5808 SSL_CTX_set_options(cctx, client_options); in test_tls13_no_dhe_kex()
5810 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, in test_tls13_no_dhe_kex()
5838 SSL_CTX_free(cctx); in test_tls13_no_dhe_kex()
5886 SSL_CTX *sctx = NULL, *cctx = NULL; in test_stateless() local
5892 &sctx, &cctx, cert, privkey))) in test_stateless()
5896 SSL_CTX_clear_options(cctx, SSL_OP_ENABLE_MIDDLEBOX_COMPAT); in test_stateless()
5898 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_stateless()
5922 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_stateless()
5939 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_stateless()
5964 SSL_CTX_free(cctx); in test_stateless()
6101 SSL_CTX *cctx = NULL, *sctx = NULL, *sctx2 = NULL; in test_custom_exts() local
6122 &sctx, &cctx, cert, privkey))) in test_custom_exts()
6133 SSL_CTX_set_options(cctx, SSL_OP_NO_TLSv1_3); in test_custom_exts()
6145 if (!TEST_int_eq(SSL_CTX_use_certificate_file(cctx, cert, in test_custom_exts()
6147 || !TEST_int_eq(SSL_CTX_use_PrivateKey_file(cctx, privkey, in test_custom_exts()
6149 || !TEST_int_eq(SSL_CTX_check_private_key(cctx), 1)) in test_custom_exts()
6166 if (!TEST_true(SSL_CTX_add_client_custom_ext(cctx, TEST_EXT_TYPE1, in test_custom_exts()
6172 if (!TEST_true(SSL_CTX_add_custom_ext(cctx, TEST_EXT_TYPE1, context, in test_custom_exts()
6179 if (!TEST_false(SSL_CTX_add_client_custom_ext(cctx, TEST_EXT_TYPE1, in test_custom_exts()
6183 || !TEST_false(SSL_CTX_add_custom_ext(cctx, TEST_EXT_TYPE1, in test_custom_exts()
6227 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, in test_custom_exts()
6275 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_custom_exts()
6320 SSL_CTX_free(cctx); in test_custom_exts()
6371 SSL_CTX *sctx = NULL, *cctx = NULL; in test_serverinfo_custom() local
6418 &sctx, &cctx, cert, privkey))) in test_serverinfo_custom()
6430 if (!TEST_true(SSL_CTX_add_custom_ext(cctx, TLSEXT_TYPE_signed_certificate_timestamp, in test_serverinfo_custom()
6435 || !TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_serverinfo_custom()
6451 SSL_CTX_free(cctx); in test_serverinfo_custom()
6467 SSL_CTX *cctx = NULL, *sctx = NULL, *sctx2 = NULL; in test_export_key_mat() local
6506 &sctx, &cctx, cert, privkey))) in test_export_key_mat()
6510 SSL_CTX_set_max_proto_version(cctx, protocols[tst]); in test_export_key_mat()
6511 SSL_CTX_set_min_proto_version(cctx, protocols[tst]); in test_export_key_mat()
6513 (!SSL_CTX_set_cipher_list(cctx, "DEFAULT:@SECLEVEL=0") in test_export_key_mat()
6517 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, NULL, in test_export_key_mat()
6645 SSL_CTX_free(cctx); in test_export_key_mat()
6662 SSL_CTX *cctx = NULL, *sctx = NULL; in test_export_key_mat_early() local
6671 if (!TEST_true(setupearly_data_test(&cctx, &sctx, &clientssl, &serverssl, in test_export_key_mat_early()
6723 SSL_CTX_free(cctx); in test_export_key_mat_early()
6734 SSL_CTX *cctx = NULL, *sctx = NULL; in test_key_update() local
6744 &sctx, &cctx, cert, privkey)) in test_key_update()
6745 || !TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_key_update()
6780 SSL_CTX_free(cctx); in test_key_update()
6793 SSL_CTX *cctx = NULL, *sctx = NULL; in test_key_update_peer_in_write() local
6807 &sctx, &cctx, cert, privkey)) in test_key_update_peer_in_write()
6808 || !TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_key_update_peer_in_write()
6872 SSL_CTX_free(cctx); in test_key_update_peer_in_write()
6888 SSL_CTX *cctx = NULL, *sctx = NULL; in test_key_update_peer_in_read() local
6900 &sctx, &cctx, cert, privkey)) in test_key_update_peer_in_read()
6901 || !TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_key_update_peer_in_read()
6958 SSL_CTX_free(cctx); in test_key_update_peer_in_read()
6971 SSL_CTX *cctx = NULL, *sctx = NULL; in test_key_update_local_in_write() local
6985 &sctx, &cctx, cert, privkey)) in test_key_update_local_in_write()
6986 || !TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_key_update_local_in_write()
7047 SSL_CTX_free(cctx); in test_key_update_local_in_write()
7062 SSL_CTX *cctx = NULL, *sctx = NULL; in test_key_update_local_in_read() local
7074 &sctx, &cctx, cert, privkey)) in test_key_update_local_in_read()
7075 || !TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_key_update_local_in_read()
7132 SSL_CTX_free(cctx); in test_key_update_local_in_read()
7152 SSL_CTX *cctx = NULL, *sctx = NULL; in test_ssl_clear() local
7175 &sctx, &cctx, cert, privkey)) in test_ssl_clear()
7177 && !TEST_true(SSL_CTX_set_max_proto_version(cctx, in test_ssl_clear()
7179 || !TEST_true(create_ssl_objects(sctx, cctx, &serverssl, in test_ssl_clear()
7242 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_ssl_clear()
7258 SSL_CTX_free(cctx); in test_ssl_clear()
7378 SSL_CTX *cctx = NULL, *sctx = NULL; in test_pha_key_update() local
7384 &sctx, &cctx, cert, privkey))) in test_pha_key_update()
7389 || !TEST_true(SSL_CTX_set_min_proto_version(cctx, TLS1_3_VERSION)) in test_pha_key_update()
7390 || !TEST_true(SSL_CTX_set_max_proto_version(cctx, TLS1_3_VERSION))) in test_pha_key_update()
7393 SSL_CTX_set_post_handshake_auth(cctx, 1); in test_pha_key_update()
7395 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_pha_key_update()
7428 SSL_CTX_free(cctx); in test_pha_key_update()
7582 SSL_CTX *cctx = NULL, *sctx = NULL; in test_srp() local
7607 &sctx, &cctx, cert, privkey))) in test_srp()
7611 || !TEST_true(SSL_CTX_set_cipher_list(cctx, "SRP-AES-128-CBC-SHA")) in test_srp()
7613 || !TEST_true(SSL_CTX_set_max_proto_version(cctx, TLS1_2_VERSION)) in test_srp()
7614 || !TEST_int_gt(SSL_CTX_set_srp_username(cctx, userid), 0)) in test_srp()
7618 if (!TEST_int_gt(SSL_CTX_set_srp_password(cctx, "badpass"), 0)) in test_srp()
7621 if (!TEST_int_gt(SSL_CTX_set_srp_password(cctx, password), 0)) in test_srp()
7625 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_srp()
7646 SSL_CTX_free(cctx); in test_srp()
7836 SSL_CTX *cctx = NULL, *sctx = NULL; in test_info_callback() local
7871 if (!TEST_true(setupearly_data_test(&cctx, &sctx, &clientssl, in test_info_callback()
7911 tlsvers, tlsvers, &sctx, &cctx, cert, in test_info_callback()
7922 SSL_CTX_set_info_callback((tst % 2) == 0 ? sctx : cctx, in test_info_callback()
7929 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, in test_info_callback()
7946 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, NULL, in test_info_callback()
7962 SSL_CTX_free(cctx); in test_info_callback()
7968 SSL_CTX *cctx = NULL, *sctx = NULL; in test_ssl_pending() local
7979 &sctx, &cctx, cert, privkey))) in test_ssl_pending()
7986 &sctx, &cctx, cert, privkey))) in test_ssl_pending()
8000 || !TEST_true(SSL_CTX_set_cipher_list(cctx, in test_ssl_pending()
8009 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_ssl_pending()
8033 SSL_CTX_free(cctx); in test_ssl_pending()
8125 SSL_CTX *cctx = NULL, *sctx = NULL; in int_test_ssl_get_shared_ciphers() local
8142 cctx = SSL_CTX_new_ex(tmplibctx, NULL, TLS_client_method()); in int_test_ssl_get_shared_ciphers()
8143 if (!TEST_ptr(cctx)) in int_test_ssl_get_shared_ciphers()
8155 &sctx, &cctx, cert, privkey))) in int_test_ssl_get_shared_ciphers()
8158 if (!TEST_true(SSL_CTX_set_cipher_list(cctx, in int_test_ssl_get_shared_ciphers()
8161 && !TEST_true(SSL_CTX_set_ciphersuites(cctx, in int_test_ssl_get_shared_ciphers()
8171 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in int_test_ssl_get_shared_ciphers()
8193 SSL_CTX_free(cctx); in int_test_ssl_get_shared_ciphers()
8368 SSL_CTX *cctx = NULL, *sctx = NULL; in test_ticket_callbacks() local
8428 &sctx, &cctx, cert, privkey))) in test_ticket_callbacks()
8452 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_ticket_callbacks()
8479 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, NULL, in test_ticket_callbacks()
8512 SSL_CTX_free(cctx); in test_ticket_callbacks()
8528 SSL_CTX *cctx = NULL, *sctx = NULL; in test_incorrect_shutdown() local
8536 &sctx, &cctx, cert, privkey))) in test_incorrect_shutdown()
8542 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_incorrect_shutdown()
8567 SSL_CTX_free(cctx); in test_incorrect_shutdown()
8587 SSL_CTX *cctx = NULL, *sctx = NULL; in test_shutdown() local
8609 &sctx, &cctx, cert, privkey))) in test_shutdown()
8613 SSL_CTX_set_post_handshake_auth(cctx, 1); in test_shutdown()
8615 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_shutdown()
8729 SSL_CTX_free(cctx); in test_shutdown()
8740 SSL_CTX *cctx = NULL, *sctx = NULL; in test_async_shutdown() local
8751 &sctx, &cctx, cert, privkey))) in test_async_shutdown()
8754 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, NULL, in test_async_shutdown()
8803 SSL_CTX_free(cctx); in test_async_shutdown()
8914 SSL_CTX *cctx = NULL, *sctx = NULL, *snictx = NULL; in test_cert_cb_int() local
8928 &sctx, &cctx, NULL, NULL))) in test_cert_cb_int()
8946 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_cert_cb_int()
8981 SSL_CTX_free(cctx); in test_cert_cb_int()
9040 SSL_CTX *cctx = NULL, *sctx = NULL; in test_client_cert_cb() local
9058 &sctx, &cctx, cert, privkey))) in test_client_cert_cb()
9065 SSL_CTX_set_client_cert_cb(cctx, client_cert_cb); in test_client_cert_cb()
9070 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_client_cert_cb()
9082 SSL_CTX_free(cctx); in test_client_cert_cb()
9097 SSL_CTX *cctx = NULL, *sctx = NULL; in test_ca_names_int() local
9121 &sctx, &cctx, cert, privkey))) in test_ca_names_int()
9136 SSL_CTX_set0_CA_list(cctx, sk2); in test_ca_names_int()
9149 SSL_CTX_set_client_CA_list(cctx, sk2); in test_ca_names_int()
9153 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_ca_names_int()
9197 SSL_CTX_free(cctx); in test_ca_names_int()
9247 SSL_CTX *cctx = NULL, *sctx = NULL; in test_multiblock_write() local
9276 max_version, &sctx, &cctx, cert, in test_multiblock_write()
9283 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_multiblock_write()
9289 if (!TEST_true(SSL_CTX_set_cipher_list(cctx, cipherlist))) in test_multiblock_write()
9314 SSL_CTX_free(cctx); in test_multiblock_write()
9453 SSL_CTX *sctx = NULL, *cctx = NULL; in test_session_cache_overflow() local
9473 &sctx, &cctx, cert, privkey)) in test_session_cache_overflow()
9482 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_session_cache_overflow()
9516 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_session_cache_overflow()
9540 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_session_cache_overflow()
9556 SSL_CTX_free(cctx); in test_session_cache_overflow()
9577 SSL_CTX *cctx = NULL, *sctx = NULL; in test_servername() local
9597 &sctx, &cctx, cert, privkey)) in test_servername()
9598 || !TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_servername()
9636 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, NULL, in test_servername()
9712 SSL_CTX_free(cctx); in test_servername()
9835 SSL_CTX *cctx = NULL, *sctx = NULL; in test_sigalgs_available() local
9884 cctx = SSL_CTX_new_ex(clientctx, NULL, TLS_client_method()); in test_sigalgs_available()
9886 if (!TEST_ptr(cctx) || !TEST_ptr(sctx)) in test_sigalgs_available()
9894 &sctx, &cctx, cert, privkey))) in test_sigalgs_available()
9901 &sctx, &cctx, cert2, privkey2))) in test_sigalgs_available()
9907 if (!TEST_true(SSL_CTX_set_cipher_list(cctx, in test_sigalgs_available()
9911 if (!TEST_true(SSL_CTX_set_cipher_list(cctx, in test_sigalgs_available()
9917 if (!SSL_CTX_set1_sigalgs_list(cctx, in test_sigalgs_available()
9925 if (!SSL_CTX_set1_sigalgs_list(cctx, "rsa_pss_rsae_sha256:ECDSA+SHA256") in test_sigalgs_available()
9940 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_sigalgs_available()
9966 SSL_CTX_free(cctx); in test_sigalgs_available()
9981 SSL_CTX *cctx = NULL, *sctx = NULL; in test_pluggable_group() local
9996 &sctx, &cctx, cert, privkey)) in test_pluggable_group()
9997 || !TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_pluggable_group()
10024 SSL_CTX_free(cctx); in test_pluggable_group()
10089 SSL_CTX *cctx = NULL, *sctx = NULL; in test_pluggable_signature() local
10108 &sctx, &cctx, certfilename, privkeyfilename)) in test_pluggable_signature()
10109 || !TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_pluggable_signature()
10143 SSL_CTX_free(cctx); in test_pluggable_signature()
10154 SSL_CTX *cctx = NULL, *sctx = NULL; in test_ssl_dup() local
10163 &sctx, &cctx, cert, privkey))) in test_ssl_dup()
10166 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_ssl_dup()
10214 SSL_CTX_free(cctx); in test_ssl_dup()
10240 SSL_CTX *cctx = NULL, *sctx = NULL; in test_session_secret_cb() local
10249 &sctx, &cctx, cert, privkey))) in test_session_secret_cb()
10253 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_session_secret_cb()
10272 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_session_secret_cb()
10302 SSL_CTX_free(cctx); in test_session_secret_cb()
10405 SSL_CTX *cctx = NULL, *sctx = NULL; in test_set_tmp_dh() local
10436 &sctx, &cctx, cert, privkey))) in test_set_tmp_dh()
10458 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_set_tmp_dh()
10502 SSL_CTX_free(cctx); in test_set_tmp_dh()
10513 SSL_CTX *cctx = SSL_CTX_new_ex(libctx, NULL, TLS_client_method()); in test_dh_auto() local
10522 if (!TEST_ptr(sctx) || !TEST_ptr(cctx)) in test_dh_auto()
10536 SSL_CTX_set_security_level(cctx, 1); in test_dh_auto()
10582 &sctx, &cctx, thiscert, thiskey))) in test_dh_auto()
10585 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_dh_auto()
10619 SSL_CTX_free(cctx); in test_dh_auto()
10636 SSL_CTX *cctx = NULL, *sctx = NULL, *sctx2 = NULL; in test_sni_tls13() local
10650 &sctx2, &cctx, cert, privkey))) in test_sni_tls13()
10662 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, in test_sni_tls13()
10679 SSL_CTX_free(cctx); in test_sni_tls13()
10690 SSL_CTX *cctx = NULL, *sctx = NULL; in test_ticket_lifetime() local
10708 &sctx, &cctx, cert, privkey))) in test_ticket_lifetime()
10711 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, in test_ticket_lifetime()
10741 SSL_CTX_free(cctx); in test_ticket_lifetime()
11030 SSL_CONF_CTX *cctx = NULL; in test_load_dhfile() local
11036 || !TEST_ptr(cctx = SSL_CONF_CTX_new())) in test_load_dhfile()
11039 SSL_CONF_CTX_set_ssl_ctx(cctx, ctx); in test_load_dhfile()
11040 SSL_CONF_CTX_set_flags(cctx, in test_load_dhfile()
11045 if (!TEST_int_eq(SSL_CONF_cmd(cctx, "DHParameters", dhfile), 2)) in test_load_dhfile()
11050 SSL_CONF_CTX_free(cctx); in test_load_dhfile()
11063 SSL_CTX *cctx = NULL, *sctx = NULL; in test_read_ahead_key_change() local
11073 &sctx, &cctx, cert, privkey))) in test_read_ahead_key_change()
11078 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, in test_read_ahead_key_change()
11120 SSL_CTX_free(cctx); in test_read_ahead_key_change()
11163 SSL_CTX *cctx = NULL, *sctx = NULL; in test_tls13_record_padding() local
11174 &sctx, &cctx, cert, privkey))) in test_tls13_record_padding()
11178 SSL_CTX_set_record_padding_callback(cctx, record_pad_cb); in test_tls13_record_padding()
11179 SSL_CTX_set_record_padding_callback_arg(cctx, &called); in test_tls13_record_padding()
11180 if (!TEST_ptr_eq(SSL_CTX_get_record_padding_callback_arg(cctx), &called)) in test_tls13_record_padding()
11184 if (!TEST_false(SSL_CTX_set_block_padding(cctx, in test_tls13_record_padding()
11187 if (!TEST_true(SSL_CTX_set_block_padding(cctx, 512))) in test_tls13_record_padding()
11191 if (!TEST_true(SSL_CTX_set_block_padding_ex(cctx, 0, 512))) in test_tls13_record_padding()
11195 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, in test_tls13_record_padding()
11257 SSL_CTX_free(cctx); in test_tls13_record_padding()
11283 SSL_CTX *cctx = NULL, *sctx = NULL; in test_pipelining() local
11302 TLS1_2_VERSION, &sctx, &cctx, cert, in test_pipelining()
11314 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, in test_pipelining()
11448 SSL_CTX_free(cctx); in test_pipelining()
11499 SSL_CTX *cctx = NULL, *sctx = NULL; in test_version() local
11562 version, &sctx, &cctx, cert, privkey))) in test_version()
11566 || !TEST_true(SSL_CTX_set_cipher_list(cctx, in test_version()
11570 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, in test_version()
11606 SSL_CTX_free(cctx); in test_version()
11615 SSL_CTX *cctx = NULL, *sctx = NULL; in test_rstate_string() local
11631 0, &sctx, &cctx, cert, privkey))) in test_rstate_string()
11634 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, in test_rstate_string()
11676 SSL_CTX_free(cctx); in test_rstate_string()
11699 SSL_CTX *cctx = NULL, *sctx = NULL; in test_handshake_retry() local
11718 &sctx, &cctx, cert, privkey))) in test_handshake_retry()
11738 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, in test_handshake_retry()
11769 SSL_CTX_free(cctx); in test_handshake_retry()
11781 SSL_CTX *cctx = NULL, *sctx = NULL; in test_data_retry() local
11798 TLS_client_method(), 0, 0, &sctx, &cctx, in test_data_retry()
11802 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, NULL, in test_data_retry()
11866 SSL_CTX_free(cctx); in test_data_retry()
11874 SSL_CTX *cctx; member
11898 if (!TEST_true(create_ssl_objects(cbdata->sctx, cbdata->cctx, &serverssl, in resume_servername_cb()
11931 SSL_CTX *sctx = NULL, *cctx = NULL; in test_multi_resume() local
11952 max_version, &sctx, &cctx, cert, in test_multi_resume()
11972 cbdata.cctx = cctx; in test_multi_resume()
11978 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_multi_resume()
12038 SSL_CTX_free(cctx); in test_multi_resume()
12241 SSL_CTX *sctx = NULL, *cctx = NULL; in test_npn() local
12247 &sctx, &cctx, cert, privkey))) in test_npn()
12251 SSL_CTX_set_next_proto_select_cb(cctx, npn_select_cb, &idx); in test_npn()
12253 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, NULL, in test_npn()
12296 SSL_CTX_free(cctx); in test_npn()
12339 SSL_CTX *sctx = NULL, *cctx = NULL; in test_alpn() local
12347 &sctx, &cctx, cert, privkey))) in test_alpn()
12352 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, NULL, in test_alpn()
12399 SSL_CTX_free(cctx); in test_alpn()