diff options
author | Hugo Landau <hlandau@openssl.org> | 2023-09-08 12:08:56 +0200 |
---|---|---|
committer | Hugo Landau <hlandau@openssl.org> | 2024-02-02 12:49:34 +0100 |
commit | b7c7997375e1bd0dcbbddb1b800c1eed3410056f (patch) | |
tree | 72f37716287cac31552dbcd797250784d10a3c63 /test/quic_multistream_test.c | |
parent | QLOG: Wire title-setting code to QUIC_CHANNEL and SSL_CTX (diff) | |
download | openssl-b7c7997375e1bd0dcbbddb1b800c1eed3410056f.tar.xz openssl-b7c7997375e1bd0dcbbddb1b800c1eed3410056f.zip |
QLOG: QUIC MULTISTREAM TEST: Pass script name to QLOG
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22037)
Diffstat (limited to 'test/quic_multistream_test.c')
-rw-r--r-- | test/quic_multistream_test.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/test/quic_multistream_test.c b/test/quic_multistream_test.c index 3ee45f31b9..88edfffc86 100644 --- a/test/quic_multistream_test.c +++ b/test/quic_multistream_test.c @@ -664,12 +664,14 @@ static void helper_cleanup(struct helper *h) #endif } -static int helper_init(struct helper *h, int free_order, int blocking, +static int helper_init(struct helper *h, const char *script_name, + int free_order, int blocking, int need_injector) { struct in_addr ina = {0}; QUIC_TSERVER_ARGS s_args = {0}; union BIO_sock_info_u info; + char title[128]; memset(h, 0, sizeof(*h)); h->c_fd = -1; @@ -775,6 +777,11 @@ static int helper_init(struct helper *h, int free_order, int blocking, if (!TEST_ptr(h->c_ctx = SSL_CTX_new(OSSL_QUIC_client_method()))) goto err; + /* Set title for QLOG purposes. */ + snprintf(title, sizeof(title), "quic_multistream_test: %s", script_name); + if (!TEST_true(ossl_quic_set_diag_title(h->c_ctx, title))) + goto err; + if (!TEST_ptr(h->c_conn = SSL_new(h->c_ctx))) goto err; @@ -2055,7 +2062,8 @@ static int run_script(const struct script_op *script, int testresult = 0; struct helper h; - if (!TEST_true(helper_init(&h, free_order, blocking, 1))) + if (!TEST_true(helper_init(&h, script_name, + free_order, blocking, 1))) goto out; if (!TEST_true(run_script_worker(&h, script, script_name, -1))) |