From: Hugo Landau Date: Thu, 9 Nov 2023 10:27:13 +0000 (+0000) Subject: QUIC PORT: Create a LCIDM X-Git-Tag: openssl-3.3.0-alpha1~428 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bbae4bb325554f30e03b5aabc1d99ff49d1babe3;p=thirdparty%2Fopenssl.git QUIC PORT: Create a LCIDM Reviewed-by: Tomas Mraz Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/22674) --- diff --git a/ssl/quic/quic_port.c b/ssl/quic/quic_port.c index bf351e923c5..64cee54c8b4 100644 --- a/ssl/quic/quic_port.c +++ b/ssl/quic/quic_port.c @@ -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; @@ -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)