summaryrefslogtreecommitdiffstats
path: root/ssl/quic/quic_stream_map.c
diff options
context:
space:
mode:
authorHugo Landau <hlandau@openssl.org>2023-04-28 17:56:34 +0200
committerHugo Landau <hlandau@openssl.org>2023-05-24 11:34:47 +0200
commit5915a900af86db8625caa77a02fd50cf9a3b3e1b (patch)
treee5b1eb84756d90e850855f3452cbbd2827e7e7bb /ssl/quic/quic_stream_map.c
parentQUIC MSMT: Stress tests, support for repeating test opoerations (diff)
downloadopenssl-5915a900af86db8625caa77a02fd50cf9a3b3e1b.tar.xz
openssl-5915a900af86db8625caa77a02fd50cf9a3b3e1b.zip
QUIC QSM: Allow QSM to know if we are in the server role
Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/20856)
Diffstat (limited to 'ssl/quic/quic_stream_map.c')
-rw-r--r--ssl/quic/quic_stream_map.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ssl/quic/quic_stream_map.c b/ssl/quic/quic_stream_map.c
index 680fe48ad9..138a063bf6 100644
--- a/ssl/quic/quic_stream_map.c
+++ b/ssl/quic/quic_stream_map.c
@@ -89,7 +89,8 @@ int ossl_quic_stream_map_init(QUIC_STREAM_MAP *qsm,
uint64_t (*get_stream_limit_cb)(int uni, void *arg),
void *get_stream_limit_cb_arg,
QUIC_RXFC *max_streams_bidi_rxfc,
- QUIC_RXFC *max_streams_uni_rxfc)
+ QUIC_RXFC *max_streams_uni_rxfc,
+ int is_server)
{
qsm->map = lh_QUIC_STREAM_new(hash_stream, cmp_stream);
qsm->active_list.prev = qsm->active_list.next = &qsm->active_list;
@@ -105,6 +106,7 @@ int ossl_quic_stream_map_init(QUIC_STREAM_MAP *qsm,
qsm->get_stream_limit_cb_arg = get_stream_limit_cb_arg;
qsm->max_streams_bidi_rxfc = max_streams_bidi_rxfc;
qsm->max_streams_uni_rxfc = max_streams_uni_rxfc;
+ qsm->is_server = is_server;
return 1;
}