• Home
  • Raw
  • Download

Lines Matching refs:TEST_true

330     if (!TEST_true(create_ssl_ctx_pair(TLS_server_method(),  in test_keylog()
341 if (!TEST_true(SSL_CTX_set_cipher_list(cctx, "RSA"))) in test_keylog()
344 if (!TEST_true(SSL_CTX_get_keylog_callback(cctx) == NULL) in test_keylog()
345 || !TEST_true(SSL_CTX_get_keylog_callback(sctx) == NULL)) in test_keylog()
348 if (!TEST_true(SSL_CTX_get_keylog_callback(cctx) in test_keylog()
352 if (!TEST_true(SSL_CTX_get_keylog_callback(sctx) in test_keylog()
357 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, in test_keylog()
359 || !TEST_true(create_ssl_connection(serverssl, clientssl, in test_keylog()
374 if (!TEST_true(test_keylog_output(client_log_buffer, clientssl, in test_keylog()
379 if (!TEST_true(test_keylog_output(server_log_buffer, serverssl, in test_keylog()
413 if (!TEST_true(create_ssl_ctx_pair(TLS_server_method(), TLS_client_method(), in test_keylog_no_master_key()
416 || !TEST_true(SSL_CTX_set_max_early_data(sctx, in test_keylog_no_master_key()
420 if (!TEST_true(SSL_CTX_get_keylog_callback(cctx) == NULL) in test_keylog_no_master_key()
421 || !TEST_true(SSL_CTX_get_keylog_callback(sctx) == NULL)) in test_keylog_no_master_key()
425 if (!TEST_true(SSL_CTX_get_keylog_callback(cctx) in test_keylog_no_master_key()
430 if (!TEST_true(SSL_CTX_get_keylog_callback(sctx) in test_keylog_no_master_key()
435 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, in test_keylog_no_master_key()
437 || !TEST_true(create_ssl_connection(serverssl, clientssl, in test_keylog_no_master_key()
452 if (!TEST_true(test_keylog_output(client_log_buffer, clientssl, in test_keylog_no_master_key()
454 || !TEST_true(test_keylog_output(server_log_buffer, serverssl, in test_keylog_no_master_key()
473 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, in test_keylog_no_master_key()
475 || !TEST_true(SSL_set_session(clientssl, sess)) in test_keylog_no_master_key()
477 || !TEST_true(SSL_write_early_data(clientssl, NULL, 0, &written)) in test_keylog_no_master_key()
483 || !TEST_true(create_ssl_connection(serverssl, clientssl, in test_keylog_no_master_key()
485 || !TEST_true(SSL_session_reused(clientssl))) in test_keylog_no_master_key()
491 if (!TEST_true(test_keylog_output(client_log_buffer, clientssl, in test_keylog_no_master_key()
493 || !TEST_true(test_keylog_output(server_log_buffer, serverssl, in test_keylog_no_master_key()
559 if (!TEST_true(create_ssl_ctx_pair(TLS_server_method(), TLS_client_method(), in test_client_hello_cb()
568 if (!TEST_true(SSL_CTX_set_cipher_list(cctx, in test_client_hello_cb()
570 || !TEST_true(create_ssl_objects(sctx, cctx, &serverssl, in test_client_hello_cb()
580 || !TEST_true(create_ssl_connection(serverssl, clientssl, in test_client_hello_cb()
615 if (!TEST_true(create_ssl_ctx_pair(TLS_server_method(), in test_ccs_change_cipher()
619 || !TEST_true(SSL_CTX_set_options(sctx, SSL_OP_NO_TICKET)) in test_ccs_change_cipher()
620 || !TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_ccs_change_cipher()
622 || !TEST_true(SSL_set_cipher_list(clientssl, "AES128-GCM-SHA256")) in test_ccs_change_cipher()
623 || !TEST_true(create_ssl_connection(serverssl, clientssl, in test_ccs_change_cipher()
634 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_ccs_change_cipher()
636 || !TEST_true(SSL_set_session(clientssl, sess)) in test_ccs_change_cipher()
637 || !TEST_true(SSL_set_cipher_list(clientssl, "AES256-GCM-SHA384:AES128-GCM-SHA256")) in test_ccs_change_cipher()
638 || !TEST_true(create_ssl_connection(serverssl, clientssl, in test_ccs_change_cipher()
640 || !TEST_true(SSL_session_reused(clientssl)) in test_ccs_change_cipher()
641 || !TEST_true(SSL_session_reused(serverssl)) in test_ccs_change_cipher()
654 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_ccs_change_cipher()
656 || !TEST_true(SSL_set_cipher_list(clientssl, "AES128-GCM-SHA256")) in test_ccs_change_cipher()
657 || !TEST_true(create_ssl_connection(serverssl, clientssl, in test_ccs_change_cipher()
660 || !TEST_true(SSL_set_cipher_list(clientssl, "AES256-GCM-SHA384")) in test_ccs_change_cipher()
661 || !TEST_true(SSL_renegotiate(clientssl)) in test_ccs_change_cipher()
662 || !TEST_true(SSL_renegotiate_pending(clientssl))) in test_ccs_change_cipher()
728 if (!TEST_true(create_ssl_ctx_pair(smeth, cmeth, min_version, max_version, in execute_test_large_message()
759 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in execute_test_large_message()
761 || !TEST_true(create_ssl_connection(serverssl, clientssl, in execute_test_large_message()
769 if (!TEST_true(SSL_clear(serverssl))) in execute_test_large_message()
878 || !TEST_true(SSL_set_tlsext_status_type(clientssl, in test_tlsext_status_type()
905 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, in test_tlsext_status_type()
907 || !TEST_true(create_ssl_connection(serverssl, clientssl, in test_tlsext_status_type()
909 || !TEST_true(ocsp_client_called) in test_tlsext_status_type()
910 || !TEST_true(ocsp_server_called)) in test_tlsext_status_type()
921 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, in test_tlsext_status_type()
941 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, in test_tlsext_status_type()
954 || !TEST_true(OCSP_RESPID_set_by_key(id, ocspcert)) in test_tlsext_status_type()
955 || !TEST_true(sk_OCSP_RESPID_push(ids, id))) in test_tlsext_status_type()
965 if (!TEST_true(create_ssl_connection(serverssl, clientssl, in test_tlsext_status_type()
967 || !TEST_true(ocsp_client_called) in test_tlsext_status_type()
968 || !TEST_true(ocsp_server_called)) in test_tlsext_status_type()
1035 if (!TEST_true(create_ssl_ctx_pair(TLS_server_method(), TLS_client_method(), in execute_test_session()
1061 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl1, &clientssl1, in execute_test_session()
1063 || !TEST_true(create_ssl_connection(serverssl1, clientssl1, in execute_test_session()
1078 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl2, in execute_test_session()
1080 || !TEST_true(SSL_set_session(clientssl2, sess1)) in execute_test_session()
1081 || !TEST_true(create_ssl_connection(serverssl2, clientssl2, in execute_test_session()
1083 || !TEST_true(SSL_session_reused(clientssl2))) in execute_test_session()
1114 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl2, in execute_test_session()
1116 || !TEST_true(create_ssl_connection(serverssl2, clientssl2, in execute_test_session()
1133 if (!TEST_true(SSL_set_session(clientssl2, sess1))) in execute_test_session()
1143 if (!TEST_true(SSL_CTX_add_session(cctx, sess2)) in execute_test_session()
1144 || !TEST_true(SSL_CTX_remove_session(cctx, sess2))) in execute_test_session()
1161 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl3, in execute_test_session()
1163 || !TEST_true(SSL_set_session(clientssl3, sess1)) in execute_test_session()
1175 if (use_int_cache && !TEST_true(SSL_CTX_add_session(cctx, sess2))) in execute_test_session()
1211 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl1, &clientssl1, in execute_test_session()
1213 || !TEST_true(create_ssl_connection(serverssl1, clientssl1, in execute_test_session()
1250 || !TEST_true(SSL_CTX_remove_session(sctx, sess2))) in execute_test_session()
1259 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl2, in execute_test_session()
1261 || !TEST_true(SSL_set_session(clientssl2, sess1)) in execute_test_session()
1262 || !TEST_true(create_ssl_connection(serverssl2, clientssl2, in execute_test_session()
1264 || !TEST_true(SSL_session_reused(clientssl2))) in execute_test_session()
1364 if (!TEST_true(SSL_verify_client_post_handshake(sssl))) in post_handshake_verify()
1371 || !TEST_true(create_ssl_connection(sssl, cssl, in post_handshake_verify()
1383 if (!TEST_true(create_ssl_ctx_pair(TLS_server_method(), TLS_client_method(), in setup_ticket_test()
1386 || !TEST_true(SSL_CTX_set_num_tickets(*sctx, idx)) in setup_ticket_test()
1387 || !TEST_true(SSL_CTX_set_session_id_context(*sctx, in setup_ticket_test()
1410 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, in check_resumption()
1412 || !TEST_true(SSL_set_session(clientssl, sesscache[i]))) in check_resumption()
1417 if (!TEST_true(create_ssl_connection(serverssl, clientssl, in check_resumption()
1426 if (!TEST_true(SSL_session_reused(clientssl)) in check_resumption()
1474 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, in test_tickets()
1478 if (!TEST_true(create_ssl_connection(serverssl, clientssl, in test_tickets()
1518 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, in test_tickets()
1524 if (!TEST_true(create_ssl_connection(serverssl, clientssl, in test_tickets()
1583 if (!TEST_true(create_ssl_ctx_pair(TLS_server_method(), TLS_client_method(), in test_psk_tickets()
1586 || !TEST_true(SSL_CTX_set_session_id_context(sctx, in test_psk_tickets()
1601 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_psk_tickets()
1609 if (!TEST_true(create_ssl_connection(serverssl, clientssl, in test_psk_tickets()
1709 if (!TEST_true(create_ssl_ctx_pair(TLS_server_method(), TLS_client_method(), in test_ssl_set_bio()
1725 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_ssl_set_bio()
1762 && !TEST_true(create_ssl_connection(serverssl, clientssl, in test_ssl_set_bio()
1936 if (!TEST_true(create_ssl_ctx_pair(TLS_server_method(), TLS_client_method(), in test_set_sigalgs()
1968 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, in test_set_sigalgs()
2158 || !TEST_true(SSL_SESSION_set1_master_key(sess, key, in create_a_psk()
2160 || !TEST_true(SSL_SESSION_set_cipher(sess, cipher)) in create_a_psk()
2161 || !TEST_true( in create_a_psk()
2178 && !TEST_true(create_ssl_ctx_pair(TLS_server_method(), in setupearly_data_test()
2184 if (!TEST_true(SSL_CTX_set_max_early_data(*sctx, SSL3_RT_MAX_PLAIN_LENGTH))) in setupearly_data_test()
2200 if (!TEST_true(create_ssl_objects(*sctx, *cctx, serverssl, clientssl, in setupearly_data_test()
2211 && !TEST_true(SSL_set_tlsext_host_name(*clientssl, "localhost"))) in setupearly_data_test()
2221 || !TEST_true(SSL_SESSION_set_max_early_data(clientpsk, in setupearly_data_test()
2223 || !TEST_true(SSL_SESSION_up_ref(clientpsk))) { in setupearly_data_test()
2231 if (!TEST_true(SSL_SESSION_up_ref(clientpsk))) { in setupearly_data_test()
2245 if (!TEST_true(create_ssl_connection(*serverssl, *clientssl, in setupearly_data_test()
2256 if (!TEST_true(create_ssl_objects(*sctx, *cctx, serverssl, in setupearly_data_test()
2258 || !TEST_true(SSL_set_session(*clientssl, *sess))) in setupearly_data_test()
2274 if (!TEST_true(setupearly_data_test(&cctx, &sctx, &clientssl, in test_early_data_read_write()
2279 if (!TEST_true(SSL_write_early_data(clientssl, MSG1, strlen(MSG1), in test_early_data_read_write()
2294 if (!TEST_true(SSL_write_early_data(serverssl, MSG2, strlen(MSG2), in test_early_data_read_write()
2297 || !TEST_true(SSL_read_ex(clientssl, buf, sizeof(buf), &readbytes)) in test_early_data_read_write()
2302 if (!TEST_true(SSL_write_early_data(clientssl, MSG3, strlen(MSG3), in test_early_data_read_write()
2315 if (!TEST_true(SSL_write_early_data(serverssl, MSG4, strlen(MSG4), in test_early_data_read_write()
2318 || !TEST_true(SSL_read_ex(clientssl, buf, sizeof(buf), &readbytes)) in test_early_data_read_write()
2326 if (!TEST_true(SSL_write_ex(clientssl, MSG5, strlen(MSG5), &written)) in test_early_data_read_write()
2339 if (!TEST_true(BIO_read_ex(rbio, data, sizeof(data), &rawread)) in test_early_data_read_write()
2346 if (!TEST_true(BIO_write_ex(rbio, data, eoedlen, &rawwritten)) in test_early_data_read_write()
2361 if (!TEST_true(SSL_write_early_data(serverssl, MSG6, strlen(MSG6), in test_early_data_read_write()
2367 if (!TEST_true(BIO_write_ex(rbio, data + eoedlen, rawread - eoedlen, in test_early_data_read_write()
2373 if (!TEST_true(SSL_read_ex(serverssl, buf, sizeof(buf), &readbytes)) in test_early_data_read_write()
2389 if (!TEST_true(SSL_read_ex(clientssl, buf, sizeof(buf), &readbytes)) in test_early_data_read_write()
2404 if (!TEST_true(SSL_write_ex(serverssl, MSG7, strlen(MSG7), &written)) in test_early_data_read_write()
2406 || !TEST_true(SSL_read_ex(clientssl, buf, sizeof(buf), &readbytes)) in test_early_data_read_write()
2420 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, in test_early_data_read_write()
2422 || !TEST_true(SSL_set_session(clientssl, sess))) in test_early_data_read_write()
2426 if (!TEST_true(SSL_write_early_data(clientssl, MSG1, strlen(MSG1), in test_early_data_read_write()
2451 if (!TEST_true(SSL_write_ex(clientssl, MSG5, strlen(MSG5), &written)) in test_early_data_read_write()
2453 || !TEST_true(SSL_read_ex(serverssl, buf, sizeof(buf), &readbytes)) in test_early_data_read_write()
2505 if (!TEST_true(create_ssl_ctx_pair(TLS_server_method(), TLS_client_method(), in test_early_data_replay_int()
2531 if (!TEST_true(setupearly_data_test(&cctx, &sctx, &clientssl, in test_early_data_replay_int()
2539 if (!TEST_true(create_ssl_connection(serverssl, clientssl, SSL_ERROR_NONE)) in test_early_data_replay_int()
2540 || !TEST_true(SSL_session_reused(clientssl))) in test_early_data_replay_int()
2549 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, in test_early_data_replay_int()
2551 || !TEST_true(SSL_set_session(clientssl, sess))) in test_early_data_replay_int()
2555 if (!TEST_true(SSL_write_early_data(clientssl, MSG1, strlen(MSG1), in test_early_data_replay_int()
2591 if (!TEST_true(create_ssl_connection(serverssl, clientssl, SSL_ERROR_NONE)) in test_early_data_replay_int()
2639 if (!TEST_true(setupearly_data_test(&cctx, &sctx, &clientssl, in early_data_skip_helper()
2645 if (!TEST_true(SSL_set1_groups_list(serverssl, "P-256"))) in early_data_skip_helper()
2659 if (!TEST_true(SSL_SESSION_set_time(sess, (long)(time(NULL) - 20)))) in early_data_skip_helper()
2664 && !TEST_true(SSL_set_recv_max_early_data(serverssl, 0))) in early_data_skip_helper()
2668 if (!TEST_true(SSL_write_early_data(clientssl, MSG1, strlen(MSG1), in early_data_skip_helper()
2720 if (!TEST_true(BIO_write_ex(wbio, bad_early_data, in early_data_skip_helper()
2749 if (!TEST_true(SSL_write_ex(clientssl, MSG2, strlen(MSG2), &written)) in early_data_skip_helper()
2753 || !TEST_true(SSL_read_ex(serverssl, buf, sizeof(buf), &readbytes)) in early_data_skip_helper()
2821 if (!TEST_true(setupearly_data_test(&cctx, &sctx, &clientssl, in test_early_data_not_sent()
2842 if (!TEST_true(SSL_write_ex(clientssl, MSG1, strlen(MSG1), &written)) in test_early_data_not_sent()
2844 || !TEST_true(SSL_read_ex(serverssl, buf, sizeof(buf), &readbytes)) in test_early_data_not_sent()
2850 if (!TEST_true(SSL_read_ex(clientssl, buf, sizeof(buf), &readbytes)) in test_early_data_not_sent()
2915 if (!TEST_true(setupearly_data_test(&cctx, &sctx, &clientssl, in test_early_data_psk()
2931 if (!TEST_true(SSL_SESSION_set1_hostname(sess, "goodhost")) in test_early_data_psk()
2932 || !TEST_true(SSL_set_tlsext_host_name(clientssl, "badhost"))) in test_early_data_psk()
2940 if (!TEST_true(SSL_SESSION_set1_alpn_selected(sess, GOODALPN, in test_early_data_psk()
2954 if (!TEST_true(SSL_SESSION_set_protocol_version(sess, TLS1_2_VERSION))) in test_early_data_psk()
2968 || !TEST_true(SSL_SESSION_set1_hostname(serverpsk, "badhost"))) in test_early_data_psk()
2973 if (!TEST_true(SSL_SESSION_set1_hostname(sess, "goodhost")) in test_early_data_psk()
2974 || !TEST_true(SSL_set_tlsext_host_name(clientssl, "goodhost")) in test_early_data_psk()
2975 || !TEST_true(SSL_CTX_set_tlsext_servername_callback(sctx, in test_early_data_psk()
2997 if (!TEST_true(SSL_SESSION_set1_alpn_selected(sess, GOODALPN + 1, in test_early_data_psk()
3011 || !TEST_true(SSL_SESSION_set1_alpn_selected(clientpsk, in test_early_data_psk()
3014 || !TEST_true(SSL_SESSION_set1_alpn_selected(serverpsk, in test_early_data_psk()
3040 if (!TEST_true(SSL_write_early_data(clientssl, MSG1, strlen(MSG1), in test_early_data_psk()
3111 if (!TEST_true(setupearly_data_test(&cctx, &sctx, &clientssl, in test_early_data_psk_with_all_ciphers()
3115 if (!TEST_true(SSL_set_ciphersuites(clientssl, cipher_str[idx])) in test_early_data_psk_with_all_ciphers()
3116 || !TEST_true(SSL_set_ciphersuites(serverssl, cipher_str[idx]))) in test_early_data_psk_with_all_ciphers()
3127 if (!TEST_ptr(cipher) || !TEST_true(SSL_SESSION_set_cipher(sess, cipher))) in test_early_data_psk_with_all_ciphers()
3131 if (!TEST_true(SSL_write_early_data(clientssl, MSG1, strlen(MSG1), in test_early_data_psk_with_all_ciphers()
3146 if (!TEST_true(SSL_write_ex(clientssl, MSG2, strlen(MSG2), &written)) in test_early_data_psk_with_all_ciphers()
3150 if (!TEST_true(SSL_read_ex(serverssl, buf, sizeof(buf), &readbytes)) in test_early_data_psk_with_all_ciphers()
3184 if (!TEST_true(setupearly_data_test(&cctx, &sctx, &clientssl, in test_early_data_not_expected()
3189 if (!TEST_true(SSL_write_early_data(clientssl, MSG1, strlen(MSG1), in test_early_data_not_expected()
3207 if (!TEST_true(SSL_write_ex(clientssl, MSG2, strlen(MSG2), &written)) in test_early_data_not_expected()
3211 if (!TEST_true(SSL_read_ex(serverssl, buf, sizeof(buf), &readbytes)) in test_early_data_not_expected()
3243 if (!TEST_true(setupearly_data_test(&cctx, &sctx, &clientssl, in test_early_data_tls1_2()
3277 if (!TEST_true(SSL_write_ex(clientssl, MSG1, strlen(MSG1), &written)) in test_early_data_tls1_2()
3281 || !TEST_true(SSL_read_ex(serverssl, buf, sizeof(buf), &readbytes)) in test_early_data_tls1_2()
3283 || !TEST_true(SSL_write_ex(serverssl, MSG2, strlen(MSG2), &written)) in test_early_data_tls1_2()
3324 if (!TEST_true(create_ssl_ctx_pair(TLS_server_method(), TLS_client_method(), in test_set_ciphersuite()
3327 || !TEST_true(SSL_CTX_set_ciphersuites(sctx, in test_set_ciphersuite()
3333 if (!TEST_true(SSL_CTX_set_cipher_list(cctx, "AES256-GCM-SHA384"))) in test_set_ciphersuite()
3339 if (!TEST_true(SSL_CTX_set_ciphersuites(cctx, in test_set_ciphersuite()
3344 if (!TEST_true(SSL_CTX_set_ciphersuites(cctx, in test_set_ciphersuite()
3349 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, in test_set_ciphersuite()
3355 if (!TEST_true(SSL_set_cipher_list(clientssl, "AES256-GCM-SHA384"))) in test_set_ciphersuite()
3361 if (!TEST_true(SSL_set_ciphersuites(clientssl, in test_set_ciphersuite()
3366 if (!TEST_true(SSL_set_ciphersuites(clientssl, in test_set_ciphersuite()
3371 if (!TEST_true(create_ssl_connection(serverssl, clientssl, SSL_ERROR_NONE))) in test_set_ciphersuite()
3394 if (!TEST_true(create_ssl_ctx_pair(TLS_server_method(), TLS_client_method(), in test_ciphersuite_change()
3397 || !TEST_true(SSL_CTX_set_ciphersuites(cctx, in test_ciphersuite_change()
3399 || !TEST_true(create_ssl_objects(sctx, cctx, &serverssl, in test_ciphersuite_change()
3401 || !TEST_true(create_ssl_connection(serverssl, clientssl, in test_ciphersuite_change()
3416 if (!TEST_true(SSL_CTX_set_ciphersuites(cctx, in test_ciphersuite_change()
3418 || !TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_ciphersuite_change()
3420 || !TEST_true(SSL_set_session(clientssl, clntsess)) in test_ciphersuite_change()
3421 || !TEST_true(create_ssl_connection(serverssl, clientssl, in test_ciphersuite_change()
3423 || !TEST_true(SSL_session_reused(clientssl))) in test_ciphersuite_change()
3439 if (!TEST_true(SSL_CTX_set_ciphersuites(cctx, "TLS_AES_256_GCM_SHA384")) in test_ciphersuite_change()
3440 || !TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_ciphersuite_change()
3442 || !TEST_true(SSL_set_session(clientssl, clntsess)) in test_ciphersuite_change()
3443 || !TEST_true(create_ssl_connection(serverssl, clientssl, in test_ciphersuite_change()
3457 if (!TEST_true(SSL_CTX_set_ciphersuites(cctx, "TLS_AES_256_GCM_SHA384")) in test_ciphersuite_change()
3458 || !TEST_true(create_ssl_objects(sctx, cctx, &serverssl, in test_ciphersuite_change()
3460 || !TEST_true(create_ssl_connection(serverssl, clientssl, in test_ciphersuite_change()
3471 if (!TEST_true(SSL_CTX_set_ciphersuites(cctx, in test_ciphersuite_change()
3473 || !TEST_true(SSL_CTX_set_ciphersuites(sctx, in test_ciphersuite_change()
3475 || !TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_ciphersuite_change()
3477 || !TEST_true(SSL_set_session(clientssl, clntsess)) in test_ciphersuite_change()
3569 if (!TEST_true(create_ssl_ctx_pair(TLS_server_method(), in test_tls13_ciphersuite()
3576 if (!TEST_true(SSL_CTX_set_ciphersuites(sctx, t13_cipher)) in test_tls13_ciphersuite()
3577 || !TEST_true(SSL_CTX_set_ciphersuites(cctx, t13_cipher))) in test_tls13_ciphersuite()
3580 if (!TEST_true(SSL_CTX_set_cipher_list(sctx, t12_cipher)) in test_tls13_ciphersuite()
3581 || !TEST_true(SSL_CTX_set_cipher_list(cctx, in test_tls13_ciphersuite()
3587 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, in test_tls13_ciphersuite()
3592 if (!TEST_true(SSL_set_ciphersuites(serverssl, t13_cipher)) in test_tls13_ciphersuite()
3593 || !TEST_true(SSL_set_ciphersuites(clientssl, t13_cipher))) in test_tls13_ciphersuite()
3596 if (!TEST_true(SSL_set_cipher_list(serverssl, t12_cipher)) in test_tls13_ciphersuite()
3597 || !TEST_true(SSL_set_cipher_list(clientssl, in test_tls13_ciphersuite()
3603 if (!TEST_true(create_ssl_connection(serverssl, clientssl, in test_tls13_ciphersuite()
3670 if (!TEST_true(create_ssl_ctx_pair(TLS_server_method(), TLS_client_method(), in test_tls13_psk()
3683 if (!TEST_true(SSL_CTX_set_ciphersuites(cctx, in test_tls13_psk()
3714 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_tls13_psk()
3716 || !TEST_true(create_ssl_connection(serverssl, clientssl, in test_tls13_psk()
3723 if (!TEST_true(use_session_cb_cnt == 1) in test_tls13_psk()
3724 || !TEST_true(find_session_cb_cnt == 0) in test_tls13_psk()
3729 || !TEST_true(psk_client_cb_cnt == idx) in test_tls13_psk()
3730 || !TEST_true(psk_server_cb_cnt == 0)) in test_tls13_psk()
3733 if (!TEST_true(use_session_cb_cnt == 0) in test_tls13_psk()
3734 || !TEST_true(find_session_cb_cnt == 0) in test_tls13_psk()
3735 || !TEST_true(psk_client_cb_cnt == 1) in test_tls13_psk()
3736 || !TEST_true(psk_server_cb_cnt == 0)) in test_tls13_psk()
3745 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_tls13_psk()
3754 || !TEST_true(SSL_SESSION_set1_master_key(clientpsk, key, in test_tls13_psk()
3756 || !TEST_true(SSL_SESSION_set_cipher(clientpsk, cipher)) in test_tls13_psk()
3757 || !TEST_true(SSL_SESSION_set_protocol_version(clientpsk, in test_tls13_psk()
3759 || !TEST_true(SSL_SESSION_up_ref(clientpsk))) in test_tls13_psk()
3764 if (!TEST_true(create_ssl_connection(serverssl, clientssl, SSL_ERROR_NONE)) in test_tls13_psk()
3765 || !TEST_true(SSL_session_reused(clientssl)) in test_tls13_psk()
3766 || !TEST_true(SSL_session_reused(serverssl))) in test_tls13_psk()
3770 if (!TEST_true(use_session_cb_cnt == 1) in test_tls13_psk()
3771 || !TEST_true(find_session_cb_cnt == 1) in test_tls13_psk()
3772 || !TEST_true(psk_client_cb_cnt == 0) in test_tls13_psk()
3773 || !TEST_true(psk_server_cb_cnt == 0)) in test_tls13_psk()
3776 if (!TEST_true(use_session_cb_cnt == 0) in test_tls13_psk()
3777 || !TEST_true(find_session_cb_cnt == 0) in test_tls13_psk()
3778 || !TEST_true(psk_client_cb_cnt == 1) in test_tls13_psk()
3779 || !TEST_true(psk_server_cb_cnt == 1)) in test_tls13_psk()
3788 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_tls13_psk()
3793 if (!TEST_true(SSL_set1_groups_list(serverssl, "P-256"))) in test_tls13_psk()
3800 if (!TEST_true(create_ssl_connection(serverssl, clientssl, SSL_ERROR_NONE)) in test_tls13_psk()
3801 || !TEST_true(SSL_session_reused(clientssl)) in test_tls13_psk()
3802 || !TEST_true(SSL_session_reused(serverssl))) in test_tls13_psk()
3806 if (!TEST_true(use_session_cb_cnt == 2) in test_tls13_psk()
3807 || !TEST_true(find_session_cb_cnt == 2) in test_tls13_psk()
3808 || !TEST_true(psk_client_cb_cnt == 0) in test_tls13_psk()
3809 || !TEST_true(psk_server_cb_cnt == 0)) in test_tls13_psk()
3812 if (!TEST_true(use_session_cb_cnt == 0) in test_tls13_psk()
3813 || !TEST_true(find_session_cb_cnt == 0) in test_tls13_psk()
3814 || !TEST_true(psk_client_cb_cnt == 2) in test_tls13_psk()
3815 || !TEST_true(psk_server_cb_cnt == 2)) in test_tls13_psk()
3830 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_tls13_psk()
3832 || !TEST_true(create_ssl_connection(serverssl, clientssl, in test_tls13_psk()
3839 if (!TEST_true(use_session_cb_cnt == 1) in test_tls13_psk()
3840 || !TEST_true(find_session_cb_cnt == 1) in test_tls13_psk()
3841 || !TEST_true(psk_client_cb_cnt == 0) in test_tls13_psk()
3846 || !TEST_true(psk_server_cb_cnt == idx)) in test_tls13_psk()
3849 if (!TEST_true(use_session_cb_cnt == 0) in test_tls13_psk()
3850 || !TEST_true(find_session_cb_cnt == 0) in test_tls13_psk()
3851 || !TEST_true(psk_client_cb_cnt == 1) in test_tls13_psk()
3852 || !TEST_true(psk_server_cb_cnt == 1)) in test_tls13_psk()
3918 if (!TEST_true(create_ssl_ctx_pair(TLS_server_method(), TLS_client_method(), in test_stateless()
3926 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_stateless()
3950 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_stateless()
3967 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_stateless()
3980 || !TEST_true(create_ssl_connection(serverssl, clientssl, in test_stateless()
4148 if (!TEST_true(create_ssl_ctx_pair(TLS_server_method(), TLS_client_method(), in test_custom_exts()
4154 && !TEST_true(create_ssl_ctx_pair(TLS_server_method(), NULL, in test_custom_exts()
4194 if (!TEST_true(SSL_CTX_add_client_custom_ext(cctx, TEST_EXT_TYPE1, in test_custom_exts()
4200 if (!TEST_true(SSL_CTX_add_custom_ext(cctx, TEST_EXT_TYPE1, context, in test_custom_exts()
4219 if (!TEST_true(SSL_CTX_add_server_custom_ext(sctx, TEST_EXT_TYPE1, in test_custom_exts()
4225 if (!TEST_true(SSL_CTX_add_custom_ext(sctx, TEST_EXT_TYPE1, context, in test_custom_exts()
4230 && !TEST_true(SSL_CTX_add_custom_ext(sctx2, TEST_EXT_TYPE1, in test_custom_exts()
4250 if (!TEST_true(SSL_CTX_set_tlsext_servername_callback(sctx, sni_cb)) in test_custom_exts()
4251 || !TEST_true(SSL_CTX_set_tlsext_servername_arg(sctx, sctx2))) in test_custom_exts()
4255 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, in test_custom_exts()
4257 || !TEST_true(create_ssl_connection(serverssl, clientssl, in test_custom_exts()
4303 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_custom_exts()
4305 || !TEST_true(SSL_set_session(clientssl, sess)) in test_custom_exts()
4306 || !TEST_true(create_ssl_connection(serverssl, clientssl, in test_custom_exts()
4398 if (!TEST_true(ret == expected)) in test_serverinfo()
4452 if (!TEST_true(create_ssl_ctx_pair(TLS_server_method(), TLS_client_method(), in test_export_key_mat()
4461 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, NULL, in test_export_key_mat()
4474 if (!TEST_true(create_ssl_connection(serverssl, clientssl, in test_export_key_mat()
4591 if (!TEST_true(setupearly_data_test(&cctx, &sctx, &clientssl, &serverssl, in test_export_key_mat_early()
4596 if (!TEST_true(SSL_write_early_data(clientssl, NULL, 0, &written)) in test_export_key_mat_early()
4660 if (!TEST_true(create_ssl_ctx_pair(TLS_server_method(), in test_key_update()
4665 || !TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_key_update()
4667 || !TEST_true(create_ssl_connection(serverssl, clientssl, in test_key_update()
4674 if (!TEST_true(SSL_key_update(clientssl, in test_key_update()
4678 || !TEST_true(SSL_do_handshake(clientssl))) in test_key_update()
4723 || !TEST_true(create_ssl_ctx_pair(TLS_server_method(), in test_key_update_in_write()
4728 || !TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_key_update_in_write()
4730 || !TEST_true(create_ssl_connection(serverssl, clientssl, in test_key_update_in_write()
4737 if (!TEST_true(SSL_key_update(peerupdate, SSL_KEY_UPDATE_REQUESTED)) in test_key_update_in_write()
4738 || !TEST_true(SSL_do_handshake(peerupdate))) in test_key_update_in_write()
4743 if (!TEST_ptr(tmp) || !TEST_true(BIO_up_ref(tmp))) { in test_key_update_in_write()
4803 if (!TEST_true(create_ssl_ctx_pair(TLS_server_method(), TLS_client_method(), in test_ssl_clear()
4807 && !TEST_true(SSL_CTX_set_max_proto_version(cctx, in test_ssl_clear()
4809 || !TEST_true(create_ssl_objects(sctx, cctx, &serverssl, in test_ssl_clear()
4811 || !TEST_true(create_ssl_connection(serverssl, clientssl, in test_ssl_clear()
4821 if (!TEST_true(SSL_clear(clientssl))) in test_ssl_clear()
4824 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_ssl_clear()
4826 || !TEST_true(create_ssl_connection(serverssl, clientssl, in test_ssl_clear()
4828 || !TEST_true(SSL_session_reused(clientssl))) in test_ssl_clear()
4856 if (!TEST_true( PACKET_buf_init( &pkt, data, len ) ) in get_MFL_from_client_hello()
4860 || !TEST_true(PACKET_forward(&pkt, SSL3_HM_HEADER_LENGTH)) in get_MFL_from_client_hello()
4862 || !TEST_true(PACKET_forward(&pkt, CLIENT_VERSION_LEN in get_MFL_from_client_hello()
4865 || !TEST_true(PACKET_get_length_prefixed_1(&pkt, &pkt2)) in get_MFL_from_client_hello()
4867 || !TEST_true(PACKET_get_length_prefixed_2(&pkt, &pkt2)) in get_MFL_from_client_hello()
4869 || !TEST_true(PACKET_get_length_prefixed_1(&pkt, &pkt2)) in get_MFL_from_client_hello()
4871 || !TEST_true(PACKET_as_length_prefixed_2(&pkt, &pkt2))) in get_MFL_from_client_hello()
4876 if (!TEST_true(PACKET_get_net_2(&pkt2, &type)) in get_MFL_from_client_hello()
4877 || !TEST_true(PACKET_get_length_prefixed_2(&pkt2, &pkt3))) in get_MFL_from_client_hello()
4882 || !TEST_true(PACKET_get_1(&pkt3, &MFL_code))) in get_MFL_from_client_hello()
4913 if (!TEST_true(SSL_CTX_set_tlsext_max_fragment_length( in test_max_fragment_len_ext()
4937 if (!TEST_true(get_MFL_from_client_hello(wbio, &MFL_mode))) in test_max_fragment_len_ext()
4940 if (!TEST_true(max_fragment_len_test[idx_tst] == MFL_mode)) in test_max_fragment_len_ext()
4959 if (!TEST_true(create_ssl_ctx_pair(TLS_server_method(), TLS_client_method(), in test_pha_key_update()
4964 if (!TEST_true(SSL_CTX_set_min_proto_version(sctx, TLS1_3_VERSION)) in test_pha_key_update()
4965 || !TEST_true(SSL_CTX_set_max_proto_version(sctx, TLS1_3_VERSION)) in test_pha_key_update()
4966 || !TEST_true(SSL_CTX_set_min_proto_version(cctx, TLS1_3_VERSION)) in test_pha_key_update()
4967 || !TEST_true(SSL_CTX_set_max_proto_version(cctx, TLS1_3_VERSION))) in test_pha_key_update()
4972 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_pha_key_update()
4976 if (!TEST_true(create_ssl_connection(serverssl, clientssl, in test_pha_key_update()
4981 if (!TEST_true(SSL_verify_client_post_handshake(serverssl))) in test_pha_key_update()
4984 if (!TEST_true(SSL_key_update(clientssl, SSL_KEY_UPDATE_NOT_REQUESTED))) in test_pha_key_update()
4992 if (!TEST_true(create_ssl_connection(serverssl, clientssl, in test_pha_key_update()
5081 || !TEST_true(TXT_DB_insert(db, row))) in create_new_vfile()
5114 if (!TEST_true(SRP_create_verifier_BN(userid, password, &salt, &verifier, in create_new_vbase()
5168 if (!TEST_true(create_new_vbase(userid, password))) in test_srp()
5172 if (!TEST_true(create_new_vfile(userid, password, tmpfilename))) in test_srp()
5182 if (!TEST_true(create_ssl_ctx_pair(TLS_server_method(), TLS_client_method(), in test_srp()
5188 || !TEST_true(SSL_CTX_set_cipher_list(cctx, "SRP-AES-128-CBC-SHA")) in test_srp()
5189 || !TEST_true(SSL_CTX_set_max_proto_version(sctx, TLS1_2_VERSION)) in test_srp()
5190 || !TEST_true(SSL_CTX_set_max_proto_version(cctx, TLS1_2_VERSION)) in test_srp()
5202 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_srp()
5208 if (!TEST_true(tst % 2 == 0)) in test_srp()
5211 if (!TEST_true(tst % 2 == 1)) in test_srp()
5346 if (!TEST_true((where & state[info_cb_this_state].where) != 0)) { in sslapi_info_callback()
5413 if (!TEST_true(setupearly_data_test(&cctx, &sctx, &clientssl, in test_info_callback()
5424 if (!TEST_true(SSL_write_early_data(clientssl, MSG1, strlen(MSG1), in test_info_callback()
5433 || !TEST_true(create_ssl_connection(serverssl, clientssl, in test_info_callback()
5443 if (!TEST_true(create_ssl_ctx_pair(TLS_server_method(), in test_info_callback()
5456 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, in test_info_callback()
5458 || !TEST_true(create_ssl_connection(serverssl, clientssl, in test_info_callback()
5473 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, NULL, in test_info_callback()
5475 || !TEST_true(SSL_set_session(clientssl, clntsess)) in test_info_callback()
5476 || !TEST_true(create_ssl_connection(serverssl, clientssl, in test_info_callback()
5478 || !TEST_true(SSL_session_reused(clientssl)) in test_info_callback()
5503 if (!TEST_true(create_ssl_ctx_pair(TLS_server_method(), in test_ssl_pending()
5510 if (!TEST_true(create_ssl_ctx_pair(DTLS_server_method(), in test_ssl_pending()
5520 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_ssl_pending()
5522 || !TEST_true(create_ssl_connection(serverssl, clientssl, in test_ssl_pending()
5530 || !TEST_true(SSL_write_ex(serverssl, msg, sizeof(msg), &written)) in test_ssl_pending()
5532 || !TEST_true(SSL_read_ex(clientssl, buf, sizeof(buf), &readbytes)) in test_ssl_pending()
5535 || !TEST_true(SSL_has_pending(clientssl))) in test_ssl_pending()
5622 if (!TEST_true(create_ssl_ctx_pair(TLS_server_method(), in test_ssl_get_shared_ciphers()
5629 if (!TEST_true(SSL_CTX_set_cipher_list(cctx, in test_ssl_get_shared_ciphers()
5632 && !TEST_true(SSL_CTX_set_ciphersuites(cctx, in test_ssl_get_shared_ciphers()
5634 || !TEST_true(SSL_CTX_set_cipher_list(sctx, in test_ssl_get_shared_ciphers()
5637 && !TEST_true(SSL_CTX_set_ciphersuites(sctx, in test_ssl_get_shared_ciphers()
5642 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_ssl_get_shared_ciphers()
5644 || !TEST_true(create_ssl_connection(serverssl, clientssl, in test_ssl_get_shared_ciphers()
5692 if (!TEST_true(status == SSL_TICKET_SUCCESS in dec_tick_cb()
5696 if (!TEST_true(SSL_SESSION_get0_ticket_appdata(ss, &tickdata, in dec_tick_cb()
5805 if (!TEST_true(create_ssl_ctx_pair(TLS_server_method(), in test_ticket_callbacks()
5817 if (!TEST_true(SSL_CTX_set_session_cache_mode(sctx, SSL_SESS_CACHE_OFF))) in test_ticket_callbacks()
5820 if (!TEST_true(SSL_CTX_set_session_ticket_cb(sctx, gen_tick_cb, dec_tick_cb, in test_ticket_callbacks()
5825 && !TEST_true(SSL_CTX_set_tlsext_ticket_key_cb(sctx, tick_key_cb))) in test_ticket_callbacks()
5828 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_ticket_callbacks()
5830 || !TEST_true(create_ssl_connection(serverssl, clientssl, in test_ticket_callbacks()
5855 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, NULL, in test_ticket_callbacks()
5857 || !TEST_true(SSL_set_session(clientssl, clntsess)) in test_ticket_callbacks()
5858 || !TEST_true(create_ssl_connection(serverssl, clientssl, in test_ticket_callbacks()
5867 if (!TEST_true(SSL_session_reused(clientssl))) in test_ticket_callbacks()
5923 if (!TEST_true(create_ssl_ctx_pair(TLS_server_method(), in test_shutdown()
5934 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_shutdown()
5939 if (!TEST_true(create_bare_ssl_connection(serverssl, clientssl, in test_shutdown()
5944 } else if (!TEST_true(create_ssl_connection(serverssl, clientssl, in test_shutdown()
5947 || !TEST_true(SSL_SESSION_is_resumable(sess))) { in test_shutdown()
5968 || !TEST_true(SSL_write(serverssl, msg, sizeof(msg)))) in test_shutdown()
5971 && !TEST_true(SSL_key_update(serverssl, in test_shutdown()
5976 if (!TEST_true(SSL_verify_client_post_handshake(serverssl))) in test_shutdown()
5980 && !TEST_true(SSL_write(serverssl, msg, sizeof(msg)))) in test_shutdown()
5986 if (!TEST_true(SSL_read_ex(clientssl, buf, sizeof(buf), in test_shutdown()
5990 || !TEST_true(SSL_read_ex(clientssl, buf, sizeof(buf), in test_shutdown()
6016 || !TEST_true(SSL_SESSION_is_resumable(sess)) in test_shutdown()
6027 || !TEST_true(SSL_SESSION_is_resumable(sess))) in test_shutdown()
6078 if (!TEST_true(SSL_use_certificate_file(s, cert, SSL_FILETYPE_PEM)) in cert_cb()
6079 || !TEST_true(SSL_use_PrivateKey_file(s, privkey, in cert_cb()
6081 || !TEST_true(SSL_check_private_key(s))) in cert_cb()
6099 || !TEST_true(sk_X509_push(chain, rootx))) in cert_cb()
6163 if (!TEST_true(create_ssl_ctx_pair(TLS_server_method(), in test_cert_cb_int()
6181 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_cert_cb_int()
6190 if (!TEST_true(SSL_set1_sigalgs_list(clientssl, in test_cert_cb_int()
6198 if (!TEST_true(SSL_set1_sigalgs_list(clientssl, in test_cert_cb_int()
6204 if (!TEST_true(tst == 0 || tst == 4 || tst == 5 ? !ret : ret) in test_cert_cb_int()
6292 if (!TEST_true(create_ssl_ctx_pair(TLS_server_method(), in test_client_cert_cb()
6309 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_client_cert_cb()
6311 || !TEST_true(create_ssl_connection(serverssl, clientssl, in test_client_cert_cb()
6348 || !TEST_true(X509_NAME_add_entry_by_txt(name[i], "CN", in test_ca_names_int()
6356 if (!TEST_true(create_ssl_ctx_pair(TLS_server_method(), in test_ca_names_int()
6367 || !TEST_true(sk_X509_NAME_push(sk1, X509_NAME_dup(name[0]))) in test_ca_names_int()
6368 || !TEST_true(sk_X509_NAME_push(sk1, X509_NAME_dup(name[1]))) in test_ca_names_int()
6370 || !TEST_true(sk_X509_NAME_push(sk2, X509_NAME_dup(name[0]))) in test_ca_names_int()
6371 || !TEST_true(sk_X509_NAME_push(sk2, X509_NAME_dup(name[1])))) in test_ca_names_int()
6380 || !TEST_true(sk_X509_NAME_push(sk1, X509_NAME_dup(name[2]))) in test_ca_names_int()
6381 || !TEST_true(sk_X509_NAME_push(sk1, X509_NAME_dup(name[3]))) in test_ca_names_int()
6383 || !TEST_true(sk_X509_NAME_push(sk2, X509_NAME_dup(name[2]))) in test_ca_names_int()
6384 || !TEST_true(sk_X509_NAME_push(sk2, X509_NAME_dup(name[3])))) in test_ca_names_int()
6392 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_ca_names_int()
6394 || !TEST_true(create_ssl_connection(serverssl, clientssl, in test_ca_names_int()
6489 if (!TEST_true(create_ssl_ctx_pair(TLS_server_method(), in test_servername()
6495 || !TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_servername()
6500 if (!TEST_true(SSL_CTX_set_tlsext_servername_callback(sctx, in test_servername()
6506 if (!TEST_true(SSL_set_tlsext_host_name(clientssl, "goodhost"))) in test_servername()
6511 if (!TEST_true(create_ssl_connection(serverssl, clientssl, SSL_ERROR_NONE))) in test_servername()
6525 || !TEST_true(SSL_SESSION_is_resumable(sess)) in test_servername()
6533 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, NULL, in test_servername()
6537 if (!TEST_true(SSL_set_session(clientssl, sess))) in test_servername()
6543 if (!TEST_true(SSL_set_tlsext_host_name(clientssl, "altgoodhost"))) in test_servername()
6569 if (!TEST_true(SSL_set_tlsext_host_name(clientssl, "goodhost"))) in test_servername()
6589 if (!TEST_true(create_ssl_connection(serverssl, clientssl, SSL_ERROR_NONE))) in test_servername()
6592 if (!TEST_true(SSL_session_reused(clientssl)) in test_servername()
6593 || !TEST_true(SSL_session_reused(serverssl)) in test_servername()
6622 if (!TEST_true(create_ssl_ctx_pair(TLS_server_method(), in test_ssl_dup()
6629 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_ssl_dup()
6633 if (!TEST_true(SSL_set_min_proto_version(clientssl, TLS1_2_VERSION)) in test_ssl_dup()
6634 || !TEST_true(SSL_set_max_proto_version(clientssl, TLS1_2_VERSION))) in test_ssl_dup()
6640 || !TEST_true(BIO_up_ref(rbio))) in test_ssl_dup()
6646 if (!TEST_ptr(wbio) || !TEST_true(BIO_up_ref(wbio))) in test_ssl_dup()
6660 if (!TEST_true(create_ssl_connection(serverssl, client2ssl, SSL_ERROR_NONE))) in test_ssl_dup()
6703 if (!TEST_true(create_ssl_ctx_pair(TLS_server_method(), TLS_client_method(), in test_sni_tls13()
6709 if (!TEST_true(SSL_CTX_set_tlsext_servername_callback(sctx, sni_cb)) in test_sni_tls13()
6710 || !TEST_true(SSL_CTX_set_tlsext_servername_arg(sctx, sctx2))) in test_sni_tls13()
6717 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, in test_sni_tls13()
6719 || !TEST_true(create_ssl_connection(serverssl, clientssl, in test_sni_tls13()
6766 if (!TEST_true(SSL_CTX_set_alpn_protos(ctx, good, 1))) in test_set_alpn()
6768 if (!TEST_true(SSL_CTX_set_alpn_protos(ctx, bad0, sizeof(bad0)))) in test_set_alpn()
6770 if (!TEST_true(SSL_CTX_set_alpn_protos(ctx, bad1, sizeof(bad1)))) in test_set_alpn()
6772 if (!TEST_true(SSL_CTX_set_alpn_protos(ctx, bad2, sizeof(bad2)))) in test_set_alpn()
6774 if (!TEST_true(SSL_CTX_set_alpn_protos(ctx, bad3, sizeof(bad3)))) in test_set_alpn()
6776 if (!TEST_true(SSL_CTX_set_alpn_protos(ctx, bad4, sizeof(bad4)))) in test_set_alpn()
6789 if (!TEST_true(SSL_set_alpn_protos(ssl, good, 1))) in test_set_alpn()
6791 if (!TEST_true(SSL_set_alpn_protos(ssl, bad0, sizeof(bad0)))) in test_set_alpn()
6793 if (!TEST_true(SSL_set_alpn_protos(ssl, bad1, sizeof(bad1)))) in test_set_alpn()
6795 if (!TEST_true(SSL_set_alpn_protos(ssl, bad2, sizeof(bad2)))) in test_set_alpn()
6797 if (!TEST_true(SSL_set_alpn_protos(ssl, bad3, sizeof(bad3)))) in test_set_alpn()
6799 if (!TEST_true(SSL_set_alpn_protos(ssl, bad4, sizeof(bad4)))) in test_set_alpn()