mirror of https://github.com/openssl/openssl
Minor updates
Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/22674)
This commit is contained in:
parent
22739cc3ac
commit
b71046b4a4
|
@ -3,7 +3,7 @@
|
|||
=head1 NAME
|
||||
|
||||
ERR_set_mark, ERR_clear_last_mark, ERR_pop_to_mark, ERR_count_to_mark, ERR_pop -
|
||||
set mark, clear mark and pop errors until mark
|
||||
set mark, clear mark, pop errors until mark and pop last error
|
||||
|
||||
=head1 SYNOPSIS
|
||||
|
||||
|
|
|
@ -122,12 +122,15 @@ static int ch_init(QUIC_CHANNEL *ch)
|
|||
OSSL_QRX_ARGS qrx_args = {0};
|
||||
QUIC_TLS_ARGS tls_args = {0};
|
||||
uint32_t pn_space;
|
||||
size_t rx_short_dcid_len = ossl_quic_port_get_rx_short_dcid_len(ch->port);
|
||||
size_t tx_init_dcid_len = ossl_quic_port_get_tx_init_dcid_len(ch->port);
|
||||
size_t rx_short_dcid_len;
|
||||
size_t tx_init_dcid_len;
|
||||
|
||||
if (ch->port == NULL || ch->lcidm == NULL || ch->srtm == NULL)
|
||||
goto err;
|
||||
|
||||
rx_short_dcid_len = ossl_quic_port_get_rx_short_dcid_len(ch->port);
|
||||
tx_init_dcid_len = ossl_quic_port_get_tx_init_dcid_len(ch->port);
|
||||
|
||||
/* For clients, generate our initial DCID. */
|
||||
if (!ch->is_server
|
||||
&& !ossl_quic_gen_rand_conn_id(ch->port->engine->libctx, tx_init_dcid_len,
|
||||
|
|
|
@ -473,7 +473,7 @@ static int port_try_handle_stateless_reset(QUIC_PORT *port, const QUIC_URXE *e)
|
|||
for (i = 0;; ++i) {
|
||||
if (!ossl_quic_srtm_lookup(port->srtm,
|
||||
(QUIC_STATELESS_RESET_TOKEN *)(data + e->data_len
|
||||
- sizeof(QUIC_STATELESS_RESET_TOKEN)),
|
||||
- sizeof(QUIC_STATELESS_RESET_TOKEN)),
|
||||
i, &opaque, NULL))
|
||||
break;
|
||||
|
||||
|
|
|
@ -173,11 +173,11 @@ OSSL_QRX *ossl_qrx_new(const OSSL_QRX_ARGS *args)
|
|||
size_t i;
|
||||
|
||||
if (args->demux == NULL || args->max_deferred == 0)
|
||||
return 0;
|
||||
return NULL;
|
||||
|
||||
qrx = OPENSSL_zalloc(sizeof(OSSL_QRX));
|
||||
if (qrx == NULL)
|
||||
return 0;
|
||||
return NULL;
|
||||
|
||||
for (i = 0; i < OSSL_NELEM(qrx->largest_pn); ++i)
|
||||
qrx->largest_pn[i] = args->init_largest_pn[i];
|
||||
|
|
Loading…
Reference in New Issue