diff options
author | Hugo Landau <hlandau@openssl.org> | 2023-04-18 19:30:54 +0100 |
---|---|---|
committer | Hugo Landau <hlandau@openssl.org> | 2023-05-12 14:47:10 +0100 |
commit | c6c0432cca9c46bde56a9480796762f25d2a18a7 (patch) | |
tree | 31f348c4552a4a400c3422730a894555173ecf80 | |
parent | 23c047090cde899059fb7489e1a35124ca7b5e8a (diff) | |
download | openssl-new-c6c0432cca9c46bde56a9480796762f25d2a18a7.tar.gz |
QUIC CHANNEL: Remove stream 0-specific code
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20765)
-rw-r--r-- | ssl/quic/quic_channel.c | 25 | ||||
-rw-r--r-- | ssl/quic/quic_channel_local.h | 6 |
2 files changed, 0 insertions, 31 deletions
diff --git a/ssl/quic/quic_channel.c b/ssl/quic/quic_channel.c index bb693352e7..5d72ac82a3 100644 --- a/ssl/quic/quic_channel.c +++ b/ssl/quic/quic_channel.c @@ -225,26 +225,6 @@ static int ch_init(QUIC_CHANNEL *ch) goto err; } - if ((ch->stream0 = ossl_quic_stream_map_alloc(&ch->qsm, 0, - QUIC_STREAM_INITIATOR_CLIENT - | QUIC_STREAM_DIR_BIDI)) == NULL) - goto err; - - if ((ch->stream0->sstream = ossl_quic_sstream_new(INIT_APP_BUF_LEN)) == NULL) - goto err; - - if ((ch->stream0->rstream = ossl_quic_rstream_new(NULL, NULL, 0)) == NULL) - goto err; - - if (!ossl_quic_txfc_init(&ch->stream0->txfc, &ch->conn_txfc)) - goto err; - - if (!ossl_quic_rxfc_init(&ch->stream0->rxfc, &ch->conn_rxfc, - 1 * 1024 * 1024, - 5 * 1024 * 1024, - get_time, ch)) - goto err; - /* Plug in the TLS handshake layer. */ tls_args.s = ch->tls; tls_args.crypto_send_cb = ch_on_crypto_send; @@ -311,11 +291,6 @@ static void ch_cleanup(QUIC_CHANNEL *ch) ossl_statm_destroy(&ch->statm); ossl_ackm_free(ch->ackm); - if (ch->stream0 != NULL) { - assert(ch->have_qsm); - ossl_quic_stream_map_release(&ch->qsm, ch->stream0); /* frees sstream */ - } - if (ch->have_qsm) ossl_quic_stream_map_cleanup(&ch->qsm); diff --git a/ssl/quic/quic_channel_local.h b/ssl/quic/quic_channel_local.h index 1e9e0e1e68..555e6117d8 100644 --- a/ssl/quic/quic_channel_local.h +++ b/ssl/quic/quic_channel_local.h @@ -97,12 +97,6 @@ struct quic_channel_st { QUIC_SSTREAM *crypto_send[QUIC_PN_SPACE_NUM]; QUIC_RSTREAM *crypto_recv[QUIC_PN_SPACE_NUM]; - /* - * Our (currently only) application data stream. This is a bidirectional - * client-initiated stream and thus (in QUICv1) always has a stream ID of 0. - */ - QUIC_STREAM *stream0; - /* Internal state. */ /* * Client: The DCID used in the first Initial packet we transmit as a client. |