]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Port script_34 master
authorAndrew Dinh <andrewd@openssl.org>
Sun, 19 Jul 2026 14:20:17 +0000 (21:20 +0700)
committerAndrew Dinh <andrewd@openssl.org>
Wed, 5 Aug 2026 03:13:56 +0000 (10:13 +0700)
Assisted-by: Claude:claude-sonnet-5
Reviewed-by: Saša Nedvědický <sashan@openssl.org>
Reviewed-by: Nikola Pajkovsky <nikolap@openssl.org>
MergeDate: Wed Aug  5 03:14:26 2026
(Merged from https://github.com/openssl/openssl/pull/32107)

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

index 69a6c7610987c73030b73f66132d5ca91e56f5c9..a0cf7313fbbcd569e50dbfe664abad1dde4808f9 100644 (file)
@@ -2377,22 +2377,7 @@ static const struct script_op script_33[] = {
 
 /* 34. Fault injection - STREAM frame which exceeds FC */
 static const struct script_op script_34[] = {
 
 /* 34. Fault injection - STREAM frame which exceeds FC */
 static const struct script_op script_34[] = {
-    OP_S_SET_INJECT_PLAIN(script_32_inject_plain),
-    OP_C_SET_ALPN("ossltest"),
-    OP_C_CONNECT_WAIT(),
-    OP_C_SET_DEFAULT_STREAM_MODE(SSL_DEFAULT_STREAM_MODE_NONE),
-
-    OP_C_NEW_STREAM_BIDI(a, C_BIDI_ID(0)),
-    OP_C_WRITE(a, "apple", 5),
-
-    OP_S_BIND_STREAM_ID(a, C_BIDI_ID(0)),
-    OP_S_READ_EXPECT(a, "apple", 5),
-
-    OP_SET_INJECT_WORD(C_BIDI_ID(0) + 1, 3),
-    OP_S_WRITE(a, "orange", 6),
-
-    OP_C_EXPECT_CONN_CLOSE_INFO(OSSL_QUIC_ERR_FLOW_CONTROL_ERROR, 0, 0),
-
+    /* test moved to test/radix/quic_tests.c */
     OP_END
 };
 
     OP_END
 };
 
index aa7a8ddadc5d6374022450a66a614c7873d031ec..c06bd05376f9abd5b320f6f1ea630cb484aff672 100644 (file)
@@ -2292,8 +2292,23 @@ DEF_SCRIPT(script_33, "Fault injection - STREAM frame with illegal offset")
     OP_EXPECT_CONN_CLOSE_INFO(C, OSSL_QUIC_ERR_FRAME_ENCODING_ERROR, 0, 0);
 }
 
     OP_EXPECT_CONN_CLOSE_INFO(C, OSSL_QUIC_ERR_FRAME_ENCODING_ERROR, 0, 0);
 }
 
-DEF_SCRIPT(script_34, "place holder for multistrem script_34")
+DEF_SCRIPT(script_34, "Fault injection - STREAM frame which exceeds FC")
 {
 {
+    OP_SIMPLE_PAIR_CONN_ND();
+    OP_ACCEPT_CONN_WAIT_ND(L, S, 0);
+
+    OP_SET_INJECT_PLAIN(S, inject_stream_data_frame_plain);
+
+    OP_NEW_STREAM(C, Ca, 0 /* bidirectional */);
+    OP_WRITE(Ca, "apple", 5);
+
+    OP_ACCEPT_STREAM_WAIT(S, Sa, 0);
+    OP_READ_EXPECT(Sa, "apple", 5);
+
+    OP_SET_INJECT_WORD(C_BIDI_ID(0) + 1, 3);
+    OP_WRITE(Sa, "orange", 6);
+
+    OP_EXPECT_CONN_CLOSE_INFO(C, OSSL_QUIC_ERR_FLOW_CONTROL_ERROR, 0, 0);
 }
 
 DEF_SCRIPT(script_35, "place holder for multistrem script_35")
 }
 
 DEF_SCRIPT(script_35, "place holder for multistrem script_35")