]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Port script_8
authorAndrew Dinh <andrewd@openssl.org>
Wed, 24 Jun 2026 16:20:54 +0000 (23:20 +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:50 2026
(Merged from https://github.com/openssl/openssl/pull/31707)

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

index 5bb15f9213c3c45f694b9dcb391fa02557ce65ce..2e7def766eeb7eb18d4fd92ac6f92daad62de8e4 100644 (file)
@@ -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
 };
 
index dd46002a028f02e6d78f98996c5a726af003471d..f18a52622b340dbea77cbc331c3ba3acf1a9b2cb 100644 (file)
@@ -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")