]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Port script_9
authorAndrew Dinh <andrewd@openssl.org>
Wed, 24 Jun 2026 16:21:16 +0000 (23:21 +0700)
committerNorbert Pocs <norbertp@openssl.org>
Tue, 30 Jun 2026 07:54:33 +0000 (09:54 +0200)
Assisted-by: Claude:claude-sonnet-4-6
Reviewed-by: Saša Nedvědický <sashan@openssl.org>
Reviewed-by: Norbert Pocs <norbertp@openssl.org>
MergeDate: Tue Jun 30 07:54:51 2026
(Merged from https://github.com/openssl/openssl/pull/31707)

test/quic_multistream_test.c
test/radix/quic_tests.c

index 2e7def766eeb7eb18d4fd92ac6f92daad62de8e4..ea77aac694760e6785ed65ba4199a8a6b2c6e357 100644 (file)
@@ -2063,16 +2063,7 @@ static const struct script_op script_8[] = {
 
 /* 9. Unidirectional default stream mode test (server sends first on bidi) */
 static const struct script_op script_9[] = {
-    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_BIDI(a, S_BIDI_ID(0)),
-    OP_S_WRITE(a, "apple", 5),
-    OP_C_READ_EXPECT(DEFAULT, "apple", 5),
-    OP_C_WRITE(DEFAULT, "orange", 6),
-    OP_S_READ_EXPECT(a, "orange", 6),
-
+    /* test moved to test/radix/quic_tests.c */
     OP_END
 };
 
index f18a52622b340dbea77cbc331c3ba3acf1a9b2cb..a770f9f018fdfbda31c6ea8363742b9b55321a5a 100644 (file)
@@ -885,8 +885,19 @@ DEF_SCRIPT(script_8, "Unidirectional default stream mode (server sends first)")
     OP_WRITE_FAIL(C);
 }
 
-DEF_SCRIPT(script_9, "place holder for multistrem script_9")
+/* 9. Unidirectional default stream mode test (server sends first on bidi) */
+DEF_SCRIPT(script_9, "Unidirectional default stream mode (server sends bidi 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, 0 /* bidirectional */);
+    OP_WRITE(Sa, "apple", 5);
+
+    OP_READ_EXPECT(C, "apple", 5);
+    OP_WRITE(C, "orange", 6);
+    OP_READ_EXPECT(Sa, "orange", 6);
 }
 
 DEF_SCRIPT(script_10, "place holder for multistrem script_10")