Lines Matching refs:sctx
350 SSL_CTX *cctx = NULL, *sctx = NULL; in test_keylog() local
366 &sctx, &cctx, cert, privkey))) in test_keylog()
371 SSL_CTX_set_options(sctx, SSL_OP_NO_TLSv1_3); in test_keylog()
378 || !TEST_true(SSL_CTX_get_keylog_callback(sctx) == NULL)) in test_keylog()
384 SSL_CTX_set_keylog_callback(sctx, server_keylog_callback); in test_keylog()
385 if (!TEST_true(SSL_CTX_get_keylog_callback(sctx) in test_keylog()
390 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, in test_keylog()
421 SSL_CTX_free(sctx); 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()
450 || !TEST_true(SSL_CTX_set_max_early_data(sctx, in test_keylog_no_master_key()
455 || !TEST_true(SSL_CTX_get_keylog_callback(sctx) == NULL)) in test_keylog_no_master_key()
463 SSL_CTX_set_keylog_callback(sctx, server_keylog_callback); in test_keylog_no_master_key()
464 if (!TEST_true(SSL_CTX_get_keylog_callback(sctx) 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()
538 SSL_CTX_free(sctx); 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()
582 if (!TEST_int_eq(SSL_CTX_use_certificate_chain_file(sctx, leaf), 1) in test_client_cert_verify_cb()
583 || !TEST_int_eq(SSL_CTX_use_PrivateKey_file(sctx, skey, in test_client_cert_verify_cb()
585 || !TEST_int_eq(SSL_CTX_check_private_key(sctx), 1)) in test_client_cert_verify_cb()
591 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, in test_client_cert_verify_cb()
631 SSL_CTX_free(sctx); 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()
762 SSL_CTX_set_client_hello_cb(sctx, full_client_hello_callback, &testctr); in test_client_hello_cb()
769 || !TEST_true(create_ssl_objects(sctx, cctx, &serverssl, in test_client_hello_cb()
788 SSL_CTX_free(sctx); 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()
807 SSL_CTX_set_options(sctx, SSL_OP_NO_EXTENDED_MASTER_SECRET); in test_no_ems()
809 if (!create_ssl_objects(sctx, cctx, &serverssl, &clientssl, NULL, NULL)) { in test_no_ems()
839 SSL_CTX_free(sctx); 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()
869 || !TEST_true(SSL_CTX_set_options(sctx, SSL_OP_NO_TICKET)) 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()
949 SSL_CTX_free(sctx); 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()
977 if (!TEST_true(SSL_CTX_set_cipher_list(sctx, "DEFAULT:@SECLEVEL=0")) in execute_test_large_message()
992 if (!ssl_ctx_add_large_cert_chain(libctx, sctx, cert)) in execute_test_large_message()
995 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in execute_test_large_message()
1012 SSL_CTX_free(sctx); 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()
1167 || !TEST_true(SSL_CTX_set_ciphersuites(sctx, cipher))) in execute_test_ktls()
1171 || !TEST_true(SSL_CTX_set_cipher_list(sctx, cipher))) in execute_test_ktls()
1175 if (!TEST_true(create_ssl_objects2(sctx, cctx, &serverssl, in execute_test_ktls()
1289 SSL_CTX_free(sctx); 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()
1343 || !TEST_true(SSL_CTX_set_ciphersuites(sctx, cipher))) in execute_test_ktls_sendfile()
1347 || !TEST_true(SSL_CTX_set_cipher_list(sctx, cipher))) in execute_test_ktls_sendfile()
1351 if (!TEST_true(create_ssl_objects2(sctx, cctx, &serverssl, in execute_test_ktls_sendfile()
1431 SSL_CTX_free(sctx); 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()
1648 || !TEST_true(SSL_CTX_set_cipher_list(sctx, in test_large_app_data()
1653 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, in test_large_app_data()
1699 SSL_CTX_free(sctx); 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()
1739 if (!TEST_true(SSL_CTX_set_cipher_list(sctx, "DEFAULT:@SECLEVEL=0")) in execute_cleanse_plaintext()
1746 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in execute_cleanse_plaintext()
1806 SSL_CTX_free(sctx); 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()
1946 SSL_CTX_set_tlsext_status_cb(sctx, ocsp_server_cb); in test_tlsext_status_type()
1947 SSL_CTX_set_tlsext_status_arg(sctx, &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()
2019 SSL_CTX_free(sctx); 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()
2105 SSL_CTX_set_options(sctx, s_options); in execute_test_session()
2108 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl1, &clientssl1, 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()
2207 SSL_CTX_set_max_proto_version(sctx, TLS1_1_VERSION); in execute_test_session()
2208 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl3, in execute_test_session()
2230 SSL_CTX_sess_set_new_cb(sctx, new_session_cb); in execute_test_session()
2231 SSL_CTX_sess_set_remove_cb(sctx, remove_session_cb); in execute_test_session()
2232 SSL_CTX_sess_set_get_cb(sctx, get_session_cb); in execute_test_session()
2239 SSL_CTX_set_session_cache_mode(sctx, in execute_test_session()
2254 SSL_CTX_set_max_proto_version(sctx, maxprot); in execute_test_session()
2256 SSL_CTX_set_options(sctx, SSL_OP_NO_TICKET); in execute_test_session()
2258 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl1, &clientssl1, in execute_test_session()
2274 if (!TEST_false(SSL_CTX_remove_session(sctx, sess2))) in execute_test_session()
2278 if (!TEST_false(SSL_CTX_add_session(sctx, sess2))) in execute_test_session()
2299 || !TEST_true(SSL_CTX_remove_session(sctx, sess2))) in execute_test_session()
2308 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl2, in execute_test_session()
2344 if (!TEST_long_ne(SSL_CTX_sess_set_cache_size(sctx, 1), 0)) in execute_test_session()
2348 SSL_CTX_add_session(sctx, sess1); in execute_test_session()
2349 SSL_CTX_add_session(sctx, sess2); in execute_test_session()
2352 if (!TEST_true(SSL_CTX_add_session(sctx, sess1)) in execute_test_session()
2370 SSL_CTX_free(sctx); in execute_test_session()
2467 static int setup_ticket_test(int stateful, int idx, SSL_CTX **sctx, in setup_ticket_test() argument
2474 sctx, cctx, cert, privkey)) in setup_ticket_test()
2475 || !TEST_true(SSL_CTX_set_num_tickets(*sctx, idx)) in setup_ticket_test()
2476 || !TEST_true(SSL_CTX_set_session_id_context(*sctx, in setup_ticket_test()
2482 SSL_CTX_set_options(*sctx, SSL_OP_NO_TICKET); 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()
2577 SSL_CTX_free(sctx); 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()
2600 SSL_CTX_free(sctx); 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()
2649 SSL_CTX_free(sctx); in test_tickets()
2667 SSL_CTX *sctx = NULL, *cctx = NULL; in test_psk_tickets() local
2674 &sctx, &cctx, NULL, NULL)) in test_psk_tickets()
2675 || !TEST_true(SSL_CTX_set_session_id_context(sctx, in test_psk_tickets()
2683 SSL_CTX_set_psk_find_session_callback(sctx, find_session_cb); in test_psk_tickets()
2690 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_psk_tickets()
2711 SSL_CTX_free(sctx); 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()
2741 SSL_CTX_sess_set_new_cb(sctx, new_session_cb); in test_extra_tickets()
2745 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, in test_extra_tickets()
2875 SSL_CTX_free(sctx); 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()
2972 SSL_CTX_set_min_proto_version(sctx, TLS1_3_VERSION); in test_ssl_set_bio()
2976 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_ssl_set_bio()
3050 SSL_CTX_free(sctx); 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()
3214 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, in test_set_sigalgs()
3246 SSL_CTX_free(sctx); in test_set_sigalgs()
3415 static int setupearly_data_test(SSL_CTX **cctx, SSL_CTX **sctx, SSL **clientssl, in setupearly_data_test() argument
3421 if (*sctx == NULL in setupearly_data_test()
3425 sctx, cctx, cert, privkey))) in setupearly_data_test()
3429 SSL_CTX_set_session_ticket_cb(*sctx, ed_gen_cb, NULL, NULL); in setupearly_data_test()
3431 if (!TEST_true(SSL_CTX_set_max_early_data(*sctx, SSL3_RT_MAX_PLAIN_LENGTH))) in setupearly_data_test()
3437 SSL_CTX_set_read_ahead(*sctx, 1); in setupearly_data_test()
3441 SSL_CTX_set_psk_find_session_callback(*sctx, find_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()
3755 SSL_CTX_free(sctx); 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()
3802 SSL_CTX_set_options(sctx, SSL_OP_NO_ANTI_REPLAY); in test_early_data_replay_int()
3810 SSL_CONF_CTX_set_ssl_ctx(confctx, sctx); in test_early_data_replay_int()
3818 SSL_CTX_set_allow_early_data_cb(sctx, allow_early_data_cb, &usecb); 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()
3900 SSL_CTX_free(sctx); 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()
3963 SSL_CTX_set_security_level(sctx, 0); in early_data_skip_helper()
3967 if (!TEST_true(SSL_CTX_set_ciphersuites(sctx, ciphersuites[cipher])) in early_data_skip_helper()
3971 if (!TEST_true(setupearly_data_test(&cctx, &sctx, &clientssl, in early_data_skip_helper()
4114 SSL_CTX_free(sctx); 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()
4220 SSL_CTX_free(sctx); 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()
4333 || !TEST_true(SSL_CTX_set_tlsext_servername_callback(sctx, in test_early_data_psk()
4361 SSL_CTX_set_alpn_select_cb(sctx, alpn_select_cb, NULL); in test_early_data_psk()
4378 SSL_CTX_set_alpn_select_cb(sctx, alpn_select_cb, NULL); in test_early_data_psk()
4426 SSL_CTX_free(sctx); 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()
4568 SSL_CTX_free(sctx); 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()
4627 SSL_CTX_free(sctx); 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()
4701 SSL_CTX_free(sctx); 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()
4731 || !TEST_true(SSL_CTX_set_ciphersuites(sctx, in test_set_ciphersuite()
4753 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, in test_set_ciphersuite()
4783 SSL_CTX_free(sctx); 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()
4801 || !TEST_true(SSL_CTX_set_ciphersuites(sctx, in test_ciphersuite_change()
4809 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_ciphersuite_change()
4827 || !TEST_true(create_ssl_objects(sctx, cctx, &serverssl, in test_ciphersuite_change()
4848 || !TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_ciphersuite_change()
4866 || !TEST_true(create_ssl_objects(sctx, cctx, &serverssl, in test_ciphersuite_change()
4881 || !TEST_true(SSL_CTX_set_ciphersuites(sctx, in test_ciphersuite_change()
4883 || !TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_ciphersuite_change()
4916 SSL_CTX_free(sctx); 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()
5045 if (!TEST_true(SSL_CTX_set_ciphersuites(sctx, in test_key_exchange()
5053 if (!TEST_true(SSL_CTX_set_cipher_list(sctx, in test_key_exchange()
5056 || !TEST_true(SSL_CTX_set_dh_auto(sctx, 1))) in test_key_exchange()
5070 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_key_exchange()
5109 SSL_CTX_free(sctx); 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()
5230 if (!TEST_true(SSL_CTX_set_cipher_list(sctx, in test_negotiated_group()
5233 || !TEST_true(SSL_CTX_set_dh_auto(sctx, 1))) 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()
5332 SSL_CTX_free(sctx); 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()
5415 SSL_CTX_set_security_level(sctx, 0); in test_tls13_ciphersuite()
5420 if (!TEST_true(SSL_CTX_set_ciphersuites(sctx, t13_cipher)) in test_tls13_ciphersuite()
5424 if (!TEST_true(SSL_CTX_set_cipher_list(sctx, t12_cipher)) in test_tls13_ciphersuite()
5431 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, in test_tls13_ciphersuite()
5478 SSL_CTX_free(sctx); in test_tls13_ciphersuite()
5479 sctx = NULL; in test_tls13_ciphersuite()
5489 SSL_CTX_free(sctx); 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()
5549 SSL_CTX_set_psk_find_session_callback(sctx, find_session_cb); in test_tls13_psk()
5554 SSL_CTX_set_psk_server_callback(sctx, psk_server_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()
5726 SSL_CTX_free(sctx); 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()
5772 SSL_CTX_set_options(sctx, server_options); in test_tls13_no_dhe_kex()
5777 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, in test_tls13_no_dhe_kex()
5810 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, in test_tls13_no_dhe_kex()
5837 SSL_CTX_free(sctx); 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()
5898 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_stateless()
5915 SSL_CTX_set_stateless_cookie_generate_cb(sctx, generate_stateless_cookie_callback); in test_stateless()
5916 SSL_CTX_set_stateless_cookie_verify_cb(sctx, verify_stateless_cookie_callback); 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()
5963 SSL_CTX_free(sctx); 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()
6134 SSL_CTX_set_options(sctx, SSL_OP_NO_TLSv1_3); in test_custom_exts()
6142 SSL_CTX_set_verify(sctx, in test_custom_exts()
6191 if (!TEST_true(SSL_CTX_add_server_custom_ext(sctx, TEST_EXT_TYPE1, in test_custom_exts()
6197 if (!TEST_true(SSL_CTX_add_custom_ext(sctx, TEST_EXT_TYPE1, context, in test_custom_exts()
6210 if (!TEST_false(SSL_CTX_add_server_custom_ext(sctx, TEST_EXT_TYPE1, in test_custom_exts()
6214 || !TEST_false(SSL_CTX_add_custom_ext(sctx, TEST_EXT_TYPE1, in test_custom_exts()
6222 if (!TEST_true(SSL_CTX_set_tlsext_servername_callback(sctx, sni_cb)) in test_custom_exts()
6223 || !TEST_true(SSL_CTX_set_tlsext_servername_arg(sctx, sctx2))) 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()
6319 SSL_CTX_free(sctx); 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()
6422 if (!TEST_true(SSL_CTX_use_serverinfo_ex(sctx, serverinfo_version, in test_serverinfo_custom()
6426 if (!TEST_true(SSL_CTX_use_serverinfo(sctx, si, si_len))) in test_serverinfo_custom()
6435 || !TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_serverinfo_custom()
6450 SSL_CTX_free(sctx); 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()
6514 || !SSL_CTX_set_cipher_list(sctx, "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()
6644 SSL_CTX_free(sctx); 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()
6722 SSL_CTX_free(sctx); 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()
6779 SSL_CTX_free(sctx); 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()
6871 SSL_CTX_free(sctx); 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()
6957 SSL_CTX_free(sctx); 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()
7046 SSL_CTX_free(sctx); 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()
7131 SSL_CTX_free(sctx); 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()
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()
7257 SSL_CTX_free(sctx); 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()
7387 if (!TEST_true(SSL_CTX_set_min_proto_version(sctx, TLS1_3_VERSION)) in test_pha_key_update()
7388 || !TEST_true(SSL_CTX_set_max_proto_version(sctx, TLS1_3_VERSION)) in test_pha_key_update()
7395 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_pha_key_update()
7427 SSL_CTX_free(sctx); in test_pha_key_update()
7582 SSL_CTX *cctx = NULL, *sctx = NULL; in test_srp() local
7607 &sctx, &cctx, cert, privkey))) in test_srp()
7610 if (!TEST_int_gt(SSL_CTX_set_srp_username_callback(sctx, ssl_srp_cb), 0) in test_srp()
7612 || !TEST_true(SSL_CTX_set_max_proto_version(sctx, TLS1_2_VERSION)) in test_srp()
7625 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_srp()
7645 SSL_CTX_free(sctx); 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()
7915 if (!TEST_true(SSL_CTX_set_dh_auto(sctx, 1))) in test_info_callback()
7922 SSL_CTX_set_info_callback((tst % 2) == 0 ? sctx : cctx, in test_info_callback()
7925 if (!SSL_CTX_compress_certs(sctx, 0)) 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()
7961 SSL_CTX_free(sctx); 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()
7999 if (!TEST_true(SSL_CTX_set_cipher_list(sctx, "DEFAULT:@SECLEVEL=0")) in test_ssl_pending()
8009 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_ssl_pending()
8032 SSL_CTX_free(sctx); in test_ssl_pending()
8125 SSL_CTX *cctx = NULL, *sctx = NULL; in int_test_ssl_get_shared_ciphers() local
8146 sctx = SSL_CTX_new_ex(tmplibctx, NULL, TLS_server_method()); in int_test_ssl_get_shared_ciphers()
8147 if (!TEST_ptr(sctx)) in int_test_ssl_get_shared_ciphers()
8155 &sctx, &cctx, cert, privkey))) in int_test_ssl_get_shared_ciphers()
8163 || !TEST_true(SSL_CTX_set_cipher_list(sctx, in int_test_ssl_get_shared_ciphers()
8166 && !TEST_true(SSL_CTX_set_ciphersuites(sctx, 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()
8192 SSL_CTX_free(sctx); 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()
8435 if (!TEST_true(SSL_CTX_set_session_cache_mode(sctx, SSL_SESS_CACHE_OFF))) in test_ticket_callbacks()
8438 if (!TEST_true(SSL_CTX_set_session_ticket_cb(sctx, gen_tick_cb, dec_tick_cb, in test_ticket_callbacks()
8443 if (!TEST_true(SSL_CTX_set_tlsext_ticket_key_evp_cb(sctx, tick_key_evp_cb))) in test_ticket_callbacks()
8447 if (!TEST_true(SSL_CTX_set_tlsext_ticket_key_cb(sctx, tick_key_cb))) 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()
8511 SSL_CTX_free(sctx); 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()
8540 SSL_CTX_set_options(sctx, SSL_OP_IGNORE_UNEXPECTED_EOF); in test_incorrect_shutdown()
8542 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_incorrect_shutdown()
8566 SSL_CTX_free(sctx); in test_incorrect_shutdown()
8587 SSL_CTX *cctx = NULL, *sctx = NULL; in test_shutdown() local
8609 &sctx, &cctx, cert, privkey))) in test_shutdown()
8615 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_shutdown()
8728 SSL_CTX_free(sctx); 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()
8802 SSL_CTX_free(sctx); 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()
8944 SSL_CTX_set_cert_cb(sctx, cert_cb, snictx); in test_cert_cb_int()
8946 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_cert_cb_int()
8980 SSL_CTX_free(sctx); 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()
9066 SSL_CTX_set_verify(sctx, in test_client_cert_cb()
9070 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_client_cert_cb()
9081 SSL_CTX_free(sctx); 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()
9124 SSL_CTX_set_verify(sctx, SSL_VERIFY_PEER, NULL); in test_ca_names_int()
9135 SSL_CTX_set0_CA_list(sctx, sk1); in test_ca_names_int()
9148 SSL_CTX_set_client_CA_list(sctx, sk1); in test_ca_names_int()
9153 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_ca_names_int()
9196 SSL_CTX_free(sctx); 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()
9280 if (!TEST_true(SSL_CTX_set_max_send_fragment(sctx, MULTIBLOCK_FRAGSIZE))) in test_multiblock_write()
9283 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_multiblock_write()
9313 SSL_CTX_free(sctx); 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()
9474 || !TEST_true(SSL_CTX_set_options(sctx, SSL_OP_NO_TICKET))) in test_session_cache_overflow()
9477 SSL_CTX_sess_set_get_cb(sctx, get_session_cb); in test_session_cache_overflow()
9480 SSL_CTX_sess_set_cache_size(sctx, 1); 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()
9555 SSL_CTX_free(sctx); 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()
9603 if (!TEST_true(SSL_CTX_set_tlsext_servername_callback(sctx, in test_servername()
9636 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, NULL, in test_servername()
9711 SSL_CTX_free(sctx); in test_servername()
9835 SSL_CTX *cctx = NULL, *sctx = NULL; in test_sigalgs_available() local
9885 sctx = SSL_CTX_new_ex(serverctx, NULL, TLS_server_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()
9920 || !SSL_CTX_set1_sigalgs_list(sctx, in test_sigalgs_available()
9926 || !SSL_CTX_set1_sigalgs_list(sctx, in test_sigalgs_available()
9932 && (!TEST_int_eq(SSL_CTX_use_certificate_file(sctx, cert2, in test_sigalgs_available()
9934 || !TEST_int_eq(SSL_CTX_use_PrivateKey_file(sctx, in test_sigalgs_available()
9937 || !TEST_int_eq(SSL_CTX_check_private_key(sctx), 1))) in test_sigalgs_available()
9940 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_sigalgs_available()
9965 SSL_CTX_free(sctx); 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()
10023 SSL_CTX_free(sctx); 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()
10142 SSL_CTX_free(sctx); 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()
10213 SSL_CTX_free(sctx); 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()
10301 SSL_CTX_free(sctx); 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()
10440 if (!TEST_true(SSL_CTX_set_dh_auto(sctx, dhauto))) in test_set_tmp_dh()
10445 if (!TEST_true(SSL_CTX_set0_tmp_dh_pkey(sctx, dhpkey))) in test_set_tmp_dh()
10451 if (!TEST_true(SSL_CTX_set_tmp_dh(sctx, dh))) in test_set_tmp_dh()
10454 SSL_CTX_set_tmp_dh_callback(sctx, tmp_dh_callback); in test_set_tmp_dh()
10458 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_set_tmp_dh()
10501 SSL_CTX_free(sctx); in test_set_tmp_dh()
10514 SSL_CTX *sctx = SSL_CTX_new_ex(libctx, NULL, TLS_server_method()); in test_dh_auto() local
10522 if (!TEST_ptr(sctx) || !TEST_ptr(cctx)) in test_dh_auto()
10535 SSL_CTX_set_security_level(sctx, 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()
10618 SSL_CTX_free(sctx); in test_dh_auto()
10636 SSL_CTX *cctx = NULL, *sctx = NULL, *sctx2 = NULL; in test_sni_tls13() local
10644 sctx = SSL_CTX_new_ex(libctx, NULL, TLS_server_method()); in test_sni_tls13()
10645 if (!TEST_ptr(sctx)) in test_sni_tls13()
10654 if (!TEST_true(SSL_CTX_set_tlsext_servername_callback(sctx, sni_cb)) in test_sni_tls13()
10655 || !TEST_true(SSL_CTX_set_tlsext_servername_arg(sctx, sctx2))) in test_sni_tls13()
10662 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, in test_sni_tls13()
10678 SSL_CTX_free(sctx); 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()
10719 if (!TEST_long_eq(SSL_CTX_set_timeout(sctx, TWO_WEEK_SEC), in test_ticket_lifetime()
10740 SSL_CTX_free(sctx); in test_ticket_lifetime()
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()
11076 SSL_CTX_set_read_ahead(sctx, 1); in test_read_ahead_key_change()
11078 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, in test_read_ahead_key_change()
11119 SSL_CTX_free(sctx); 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()
11195 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, in test_tls13_record_padding()
11256 SSL_CTX_free(sctx); 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()
11447 SSL_CTX_free(sctx); in test_pipelining()
11499 SSL_CTX *cctx = NULL, *sctx = NULL; in test_version() local
11562 version, &sctx, &cctx, cert, privkey))) in test_version()
11565 if (!TEST_true(SSL_CTX_set_cipher_list(sctx, "DEFAULT:@SECLEVEL=0")) in test_version()
11570 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, in test_version()
11605 SSL_CTX_free(sctx); 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()
11675 SSL_CTX_free(sctx); 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()
11725 if ((idx & 1) == 1 && !ssl_ctx_add_large_cert_chain(libctx, sctx, cert)) in test_handshake_retry()
11733 SSL_CTX_set_verify(sctx, SSL_VERIFY_PEER, NULL); in test_handshake_retry()
11738 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, in test_handshake_retry()
11768 SSL_CTX_free(sctx); 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()
11865 SSL_CTX_free(sctx); in test_data_retry()
11875 SSL_CTX *sctx; 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()
11961 if (!TEST_true(SSL_CTX_set_max_early_data(sctx, 1024))) in test_multi_resume()
11965 SSL_CTX_set_options(sctx, SSL_OP_NO_TICKET); in test_multi_resume()
11967 SSL_CTX_sess_set_cache_size(sctx, 5); in test_multi_resume()
11970 SSL_CTX_set_tlsext_servername_callback(sctx, resume_servername_cb); in test_multi_resume()
11971 SSL_CTX_set_tlsext_servername_arg(sctx, &cbdata); in test_multi_resume()
11973 cbdata.sctx = sctx; in test_multi_resume()
11978 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_multi_resume()
12030 if (!TEST_long_le(SSL_CTX_sess_number(sctx), 5)) in test_multi_resume()
12037 SSL_CTX_free(sctx); in test_multi_resume()
12241 SSL_CTX *sctx = NULL, *cctx = NULL; in test_npn() local
12247 &sctx, &cctx, cert, privkey))) in test_npn()
12250 SSL_CTX_set_next_protos_advertised_cb(sctx, npn_advert_cb, &idx); in test_npn()
12253 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, NULL, in test_npn()
12295 SSL_CTX_free(sctx); in test_npn()
12339 SSL_CTX *sctx = NULL, *cctx = NULL; in test_alpn() local
12347 &sctx, &cctx, cert, privkey))) in test_alpn()
12350 SSL_CTX_set_alpn_select_cb(sctx, alpn_select_cb2, &idx); in test_alpn()
12352 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, NULL, in test_alpn()
12398 SSL_CTX_free(sctx); in test_alpn()