Lines Matching refs:qtserv

54     QUIC_TSERVER *qtserv = NULL;  in test_quic_write_read()  local
74 &qtserv, &clientquic, in test_quic_write_read()
82 if (!TEST_true(qtest_create_quic_connection(qtserv, clientquic))) in test_quic_write_read()
86 if (!TEST_true(BIO_get_fd(ossl_quic_tserver_get0_rbio(qtserv), in test_quic_write_read()
105 ossl_quic_tserver_tick(qtserv); in test_quic_write_read()
107 if (!TEST_true(ossl_quic_tserver_read(qtserv, sid, buf, in test_quic_write_read()
121 ossl_quic_tserver_tick(qtserv); in test_quic_write_read()
122 if (!TEST_true(ossl_quic_tserver_write(qtserv, sid, in test_quic_write_read()
126 ossl_quic_tserver_tick(qtserv); in test_quic_write_read()
176 if (!TEST_true(qtest_shutdown(qtserv, clientquic))) in test_quic_write_read()
180 sctx = ossl_quic_tserver_get0_ssl_ctx(qtserv); in test_quic_write_read()
186 ossl_quic_tserver_free(qtserv); in test_quic_write_read()
187 qtserv = NULL; in test_quic_write_read()
199 ossl_quic_tserver_free(qtserv); in test_quic_write_read()
216 QUIC_TSERVER *qtserv = NULL; in test_fin_only_blocking() local
231 &qtserv, &clientquic, in test_fin_only_blocking()
236 if (!TEST_true(qtest_create_quic_connection(qtserv, clientquic))) in test_fin_only_blocking()
239 if (!TEST_true(ossl_quic_tserver_stream_new(qtserv, 0, &sid)) in test_fin_only_blocking()
240 || !TEST_true(ossl_quic_tserver_write(qtserv, sid, in test_fin_only_blocking()
246 ossl_quic_tserver_tick(qtserv); in test_fin_only_blocking()
254 if (!TEST_true(ossl_quic_tserver_conclude(qtserv, sid))) in test_fin_only_blocking()
270 if (!TEST_true(qtest_shutdown(qtserv, clientquic))) in test_fin_only_blocking()
276 ossl_quic_tserver_free(qtserv); in test_fin_only_blocking()
400 QUIC_TSERVER *qtserv = NULL; in test_version() local
405 privkey, 0, &qtserv, in test_version()
407 || !TEST_true(qtest_create_quic_connection(qtserv, clientquic))) in test_version()
422 ossl_quic_tserver_free(qtserv); in test_version()
515 QUIC_TSERVER *qtserv = NULL; in test_ssl_trace() local
525 &qtserv, in test_ssl_trace()
532 if (!TEST_true(qtest_create_quic_connection(qtserv, clientquic))) in test_ssl_trace()
547 ossl_quic_tserver_free(qtserv); in test_ssl_trace()
838 QUIC_TSERVER *qtserv = NULL; in test_bio_ssl() local
862 0, &qtserv, &clientquic, NULL, in test_bio_ssl()
887 ossl_quic_tserver_tick(qtserv); in test_bio_ssl()
888 servererr = ossl_quic_tserver_is_term_any(qtserv); in test_bio_ssl()
890 rets = ossl_quic_tserver_is_handshake_confirmed(qtserv); in test_bio_ssl()
907 if (!TEST_true(ossl_quic_tserver_read(qtserv, sid, buf, sizeof(buf), in test_bio_ssl()
912 if (!TEST_true(ossl_quic_tserver_write(qtserv, sid, (unsigned char *)msg, in test_bio_ssl()
915 ossl_quic_tserver_tick(qtserv); in test_bio_ssl()
952 ossl_quic_tserver_tick(qtserv); in test_bio_ssl()
960 ossl_quic_tserver_free(qtserv); in test_bio_ssl()
975 QUIC_TSERVER *qtserv = NULL; in test_back_pressure() local
985 privkey, 0, &qtserv, in test_back_pressure()
987 || !TEST_true(qtest_create_quic_connection(qtserv, clientquic))) in test_back_pressure()
1011 ossl_quic_tserver_tick(qtserv); in test_back_pressure()
1012 if (!TEST_true(ossl_quic_tserver_read(qtserv, 0, buf, sizeof(buf), in test_back_pressure()
1025 ossl_quic_tserver_free(qtserv); in test_back_pressure()
1052 QUIC_TSERVER *qtserv = NULL; in test_multiple_dgrams() local
1063 privkey, 0, &qtserv, in test_multiple_dgrams()
1065 || !TEST_true(qtest_create_quic_connection(qtserv, clientquic))) in test_multiple_dgrams()
1080 ossl_quic_tserver_free(qtserv); in test_multiple_dgrams()
1113 QUIC_TSERVER *qtserv = NULL; in test_non_io_retry() local
1128 flags, &qtserv, &clientquic, NULL, in test_non_io_retry()
1130 || !TEST_true(qtest_create_quic_connection_ex(qtserv, clientquic, in test_non_io_retry()
1136 if (!TEST_true(qtest_create_quic_connection(qtserv, clientquic))) in test_non_io_retry()
1142 ossl_quic_tserver_free(qtserv); in test_non_io_retry()
1193 QUIC_TSERVER *qtserv = NULL; in test_quic_psk() local
1199 NULL, 0, &qtserv, in test_quic_psk()
1204 ossl_quic_tserver_set_psk_find_session_cb(qtserv, find_session_cb); in test_quic_psk()
1214 if (!TEST_true(qtest_create_quic_connection(qtserv, clientquic)) in test_quic_psk()
1225 ossl_quic_tserver_free(qtserv); in test_quic_psk()
1239 QUIC_TSERVER *qtserv = NULL; in test_client_auth() local
1262 privkey, 0, &qtserv, in test_client_auth()
1273 if (!TEST_false(qtest_create_quic_connection(qtserv, clientquic))) in test_client_auth()
1281 if (!TEST_true(qtest_create_quic_connection(qtserv, clientquic))) in test_client_auth()
1289 ossl_quic_tserver_tick(qtserv); in test_client_auth()
1290 if (!TEST_true(ossl_quic_tserver_write(qtserv, 0, in test_client_auth()
1295 ossl_quic_tserver_tick(qtserv); in test_client_auth()
1303 if (!TEST_true(qtest_shutdown(qtserv, clientquic))) in test_client_auth()
1310 ossl_quic_tserver_free(qtserv); in test_client_auth()
1326 QUIC_TSERVER *qtserv = NULL; in test_alpn() local
1341 &qtserv, in test_alpn()
1364 || !TEST_true(qtest_create_quic_connection(qtserv, clientquic))) in test_alpn()
1370 ossl_quic_tserver_free(qtserv); in test_alpn()
1384 QUIC_TSERVER *qtserv = NULL; in test_get_shutdown() local
1391 &qtserv, &clientquic, in test_get_shutdown()
1393 || !TEST_true(qtest_create_quic_connection(qtserv, clientquic))) in test_get_shutdown()
1406 ossl_quic_tserver_tick(qtserv); in test_get_shutdown()
1416 ossl_quic_tserver_free(qtserv); in test_get_shutdown()
1431 QUIC_TSERVER *qtserv) in unreliable_client_read() argument
1448 ossl_quic_tserver_tick(qtserv); in unreliable_client_read()
1450 qtest_wait_for_timeout(clientquic, qtserv); in unreliable_client_read()
1458 static int unreliable_server_read(QUIC_TSERVER *qtserv, uint64_t sid, in unreliable_server_read() argument
1466 if (ossl_quic_tserver_read(qtserv, sid, buf, buflen, readbytes) in unreliable_server_read()
1469 ossl_quic_tserver_tick(qtserv); in unreliable_server_read()
1472 qtest_wait_for_timeout(clientquic, qtserv); in unreliable_server_read()
1491 QUIC_TSERVER *qtserv = NULL; in test_noisy_dgram() local
1506 &qtserv, in test_noisy_dgram()
1510 if (!TEST_true(qtest_create_quic_connection(qtserv, clientquic))) in test_noisy_dgram()
1521 if (!TEST_true(ossl_quic_tserver_stream_new(qtserv, 0, &sid))) in test_noisy_dgram()
1523 ossl_quic_tserver_tick(qtserv); in test_noisy_dgram()
1532 if (!TEST_true(ossl_quic_tserver_write(qtserv, sid, in test_noisy_dgram()
1537 ossl_quic_tserver_tick(qtserv); in test_noisy_dgram()
1547 qtserv)) in test_noisy_dgram()
1559 ossl_quic_tserver_tick(qtserv); in test_noisy_dgram()
1567 if (!TEST_true(unreliable_server_read(qtserv, sid, buf, sizeof(buf), in test_noisy_dgram()
1576 ossl_quic_tserver_free(qtserv); in test_noisy_dgram()
1597 QUIC_TSERVER *qtserv = NULL; in test_bw_limit() local
1610 &qtserv, in test_bw_limit()
1622 if (!TEST_true(qtest_create_quic_connection(qtserv, clientquic))) in test_bw_limit()
1646 if (ossl_quic_tserver_read(qtserv, 0, recvbuf, in test_bw_limit()
1656 ossl_quic_tserver_tick(qtserv); in test_bw_limit()
1670 ossl_quic_tserver_free(qtserv); in test_bw_limit()
2213 QUIC_TSERVER *qtserv = NULL; in test_session_cb() local
2227 &qtserv, &clientquic, in test_session_cb()
2231 if (!TEST_true(qtest_create_quic_connection(qtserv, clientquic))) in test_session_cb()
2252 ossl_quic_tserver_free(qtserv); in test_session_cb()