]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
QUIC CHANNEL: Clarify role of RX TPs in preparation of storing TX TPs
authorHugo Landau <hlandau@openssl.org>
Tue, 18 Apr 2023 18:30:54 +0000 (19:30 +0100)
committerHugo Landau <hlandau@openssl.org>
Fri, 12 May 2023 13:47:11 +0000 (14:47 +0100)
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20765)

ssl/quic/quic_channel.c
ssl/quic/quic_channel_local.h

index 5d72ac82a3ec5da6e28b2b4805bc9f4ef75545d5..47d9b970bd7cc6be62695bb27aec38afa9384170 100644 (file)
@@ -845,7 +845,7 @@ static int ch_on_transport_params(const unsigned char *params,
              * This is correct; the BIDI_LOCAL TP governs streams created by
              * the endpoint which sends the TP, i.e., our peer.
              */
-            ch->init_max_stream_data_bidi_remote = v;
+            ch->rx_init_max_stream_data_bidi_remote = v;
             got_initial_max_stream_data_bidi_local = 1;
             break;
 
@@ -865,7 +865,7 @@ static int ch_on_transport_params(const unsigned char *params,
              * This is correct; the BIDI_REMOTE TP governs streams created
              * by the endpoint which receives the TP, i.e., us.
              */
-            ch->init_max_stream_data_bidi_local = v;
+            ch->rx_init_max_stream_data_bidi_local = v;
 
             /* Apply to stream 0. */
             ossl_quic_txfc_bump_cwm(&ch->stream0->txfc, v);
@@ -884,7 +884,7 @@ static int ch_on_transport_params(const unsigned char *params,
                 goto malformed;
             }
 
-            ch->init_max_stream_data_uni_remote = v;
+            ch->rx_init_max_stream_data_uni_remote = v;
             got_initial_max_stream_data_uni = 1;
             break;
 
index 555e6117d89097d01df89070ef5a9b31eba079b3..18b50313f4fd3a91d303a6488f55938448fa79bb 100644 (file)
@@ -124,9 +124,9 @@ struct quic_channel_st {
     QUIC_CONN_ID                    cur_local_dcid;
 
     /* Transport parameter values received from server. */
-    uint64_t                        init_max_stream_data_bidi_local;
-    uint64_t                        init_max_stream_data_bidi_remote;
-    uint64_t                        init_max_stream_data_uni_remote;
+    uint64_t                        rx_init_max_stream_data_bidi_local;
+    uint64_t                        rx_init_max_stream_data_bidi_remote;
+    uint64_t                        rx_init_max_stream_data_uni_remote;
     uint64_t                        rx_max_ack_delay; /* ms */
     unsigned char                   rx_ack_delay_exp;