Skip to content

Commit

Permalink
QUIC PORT: Create a LCIDM
Browse files Browse the repository at this point in the history
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from #22674)
  • Loading branch information
hlandau committed Dec 21, 2023
1 parent 6107619 commit bbae4bb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ssl/quic/quic_port.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ static int port_init(QUIC_PORT *port)
if ((port->srtm = ossl_quic_srtm_new(port->libctx, port->propq)) == NULL)
goto err;

if ((port->lcidm = ossl_quic_lcidm_new(port->libctx, rx_short_dcid_len)) == NULL)
goto err;

ossl_quic_reactor_init(&port->rtor, port_tick, port, ossl_time_zero());
port->rx_short_dcid_len = (unsigned char)rx_short_dcid_len;
port->tx_init_dcid_len = INIT_DCID_LEN;
Expand All @@ -106,6 +109,9 @@ static void port_cleanup(QUIC_PORT *port)

ossl_quic_srtm_free(port->srtm);
port->srtm = NULL;

ossl_quic_lcidm_free(port->lcidm);
port->lcidm = NULL;
}

QUIC_REACTOR *ossl_quic_port_get0_reactor(QUIC_PORT *port)
Expand Down

0 comments on commit bbae4bb

Please sign in to comment.