diff options
author | Hugo Landau <hlandau@openssl.org> | 2023-04-18 19:30:55 +0100 |
---|---|---|
committer | Hugo Landau <hlandau@openssl.org> | 2023-05-12 14:47:12 +0100 |
commit | 13ac037d0148b6e461ca635bb1c627a4b759318a (patch) | |
tree | 7fdd6119daf19af1058abb4f18c290fff9ce4090 /test | |
parent | 995ff282103d444844a476ae6aba4a05936284fa (diff) | |
download | openssl-new-13ac037d0148b6e461ca635bb1c627a4b759318a.tar.gz |
QUIC APL: Fix locking in XSO code and fix tests
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20765)
Diffstat (limited to 'test')
-rw-r--r-- | test/quicapitest.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/quicapitest.c b/test/quicapitest.c index 3ce695e5e6..c796a2aff2 100644 --- a/test/quicapitest.c +++ b/test/quicapitest.c @@ -62,13 +62,12 @@ static int test_quic_write_read(int idx) goto end; } - if (!TEST_true(ossl_quic_tserver_stream_new(qtserv, /*is_uni=*/0, &sid)) - || !TEST_uint64_t_eq(sid, 1)) /* server-initiated, so first SID is 1 */ - goto end; + sid = 0; /* client-initiated bidirectional stream */ for (j = 0; j < 2; j++) { /* Check that sending and receiving app data is ok */ - if (!TEST_true(SSL_write_ex(clientquic, msg, msglen, &numbytes))) + if (!TEST_true(SSL_write_ex(clientquic, msg, msglen, &numbytes)) + || !TEST_size_t_eq(numbytes, msglen)) goto end; if (idx == 1) { do { @@ -86,6 +85,7 @@ static int test_quic_write_read(int idx) goto end; } + ossl_quic_tserver_tick(qtserv); if (!TEST_true(ossl_quic_tserver_write(qtserv, sid, (unsigned char *)msg, msglen, &numbytes))) goto end; |