From: Andrew Dinh Date: Wed, 24 Jun 2026 16:20:54 +0000 (+0700) Subject: Port script_8 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=783baebb177ec39bfdfa101f38995a0916468aec;p=thirdparty%2Fopenssl.git Port script_8 Assisted-by: Claude:claude-sonnet-4-6 Reviewed-by: Saša Nedvědický Reviewed-by: Norbert Pocs MergeDate: Tue Jun 30 07:54:50 2026 (Merged from https://github.com/openssl/openssl/pull/31707) --- diff --git a/test/quic_multistream_test.c b/test/quic_multistream_test.c index 5bb15f9213c..2e7def766ee 100644 --- a/test/quic_multistream_test.c +++ b/test/quic_multistream_test.c @@ -2057,15 +2057,7 @@ static const struct script_op script_7[] = { /* 8. Unidirectional default stream mode test (server sends first) */ static const struct script_op script_8[] = { - OP_C_SET_ALPN("ossltest"), - OP_C_CONNECT_WAIT(), - - OP_C_SET_DEFAULT_STREAM_MODE(SSL_DEFAULT_STREAM_MODE_AUTO_UNI), - OP_S_NEW_STREAM_UNI(a, S_UNI_ID(0)), - OP_S_WRITE(a, "apple", 5), - OP_C_READ_EXPECT(DEFAULT, "apple", 5), - OP_C_WRITE_FAIL(DEFAULT), - + /* test moved to test/radix/quic_tests.c */ OP_END }; diff --git a/test/radix/quic_tests.c b/test/radix/quic_tests.c index dd46002a028..f18a52622b3 100644 --- a/test/radix/quic_tests.c +++ b/test/radix/quic_tests.c @@ -871,8 +871,18 @@ DEF_SCRIPT(script_7, "Unidirectional default stream mode (client sends first)") OP_WRITE_FAIL(S); } -DEF_SCRIPT(script_8, "place holder for multistrem script_8") +/* 8. Unidirectional default stream mode test (server sends first) */ +DEF_SCRIPT(script_8, "Unidirectional default stream mode (server sends first)") { + OP_SIMPLE_PAIR_CONN(); + OP_SET_DEFAULT_STREAM_MODE(C, SSL_DEFAULT_STREAM_MODE_AUTO_UNI); + + OP_ACCEPT_CONN_WAIT(L, S, 0); + OP_NEW_STREAM(S, Sa, SSL_STREAM_FLAG_UNI); + OP_WRITE(Sa, "apple", 5); + + OP_READ_EXPECT(C, "apple", 5); + OP_WRITE_FAIL(C); } DEF_SCRIPT(script_9, "place holder for multistrem script_9")