From: Hugo Landau Date: Wed, 30 Aug 2023 16:00:16 +0000 (+0100) Subject: Minor fixes X-Git-Tag: openssl-3.2.0-alpha1~58 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8d7f034622c0235d06f4d6526f71dcab2f71b0c6;p=thirdparty%2Fopenssl.git Minor fixes Reviewed-by: Tomas Mraz Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/21715) --- diff --git a/crypto/bio/bss_dgram_pair.c b/crypto/bio/bss_dgram_pair.c index a93b14154ca..3d798783369 100644 --- a/crypto/bio/bss_dgram_pair.c +++ b/crypto/bio/bss_dgram_pair.c @@ -695,7 +695,7 @@ static long dgram_mem_ctrl(BIO *bio, int cmd, long num, void *ptr) /* BIO_dgram_get_local_addr_enable */ case BIO_CTRL_DGRAM_GET_LOCAL_ADDR_ENABLE: /* Non-threadsafe */ - *(int *)ptr = (long)dgram_pair_ctrl_get_local_addr_enable(bio); + *(int *)ptr = (int)dgram_pair_ctrl_get_local_addr_enable(bio); break; /* BIO_dgram_set_local_addr_enable */ diff --git a/doc/designs/ddd/REPORT.md b/doc/designs/ddd/REPORT.md index ce742507cee..195e834899c 100644 --- a/doc/designs/ddd/REPORT.md +++ b/doc/designs/ddd/REPORT.md @@ -151,7 +151,7 @@ The originally planned changes to enable applications for QUIC amounted to: - A change to how the `POLLIN`/`POLLOUT`/`POLLERR` flags to pass to poll(2) need to be determined. - Note that this is a subtantially smaller list of changes than for + Note that this is a substantially smaller list of changes than for ddd-02-conn-nonblocking. ### Actual changes diff --git a/doc/designs/ddd/ddd-05-mem-nonblocking.c b/doc/designs/ddd/ddd-05-mem-nonblocking.c index 821e3fecba7..abf6c3c4969 100644 --- a/doc/designs/ddd/ddd-05-mem-nonblocking.c +++ b/doc/designs/ddd/ddd-05-mem-nonblocking.c @@ -189,9 +189,9 @@ int rx(APP_CONN *conn, void *buf, int buf_len) /* * Called to get data which has been enqueued for transmission to the network - * by OpenSSL. For QUIC, this always outputs a single frame. + * by OpenSSL. For QUIC, this always outputs a single datagram. * - * IMPORTANT (QUIC): If buf_len is inadequate to hold the frame, it is truncated + * IMPORTANT (QUIC): If buf_len is inadequate to hold the datagram, it is truncated * (similar to read(2)). A buffer size of at least 1472 must be used by default * to guarantee this does not occur. */ @@ -203,7 +203,7 @@ int read_net_tx(APP_CONN *conn, void *buf, int buf_len) /* * Called to feed data which has been received from the network to OpenSSL. * - * QUIC: buf must contain the entirety of a single frame. It will be consumed + * QUIC: buf must contain the entirety of a single datagram. It will be consumed * entirely (return value == buf_len) or not at all. */ int write_net_rx(APP_CONN *conn, const void *buf, int buf_len) diff --git a/ssl/quic/quic_impl.c b/ssl/quic/quic_impl.c index 11c8afce8ac..bf1c412a091 100644 --- a/ssl/quic/quic_impl.c +++ b/ssl/quic/quic_impl.c @@ -1607,7 +1607,7 @@ static int quic_do_handshake(QCTX *ctx) * Start connection process. Note we may come here multiple times in * non-blocking mode, which is fine. */ - if (!ensure_channel_started(qc)) /* raises on failure */ + if (!ensure_channel_started(ctx)) /* raises on failure */ return -1; /* Non-protocol error */ if (ossl_quic_channel_is_handshake_complete(qc->ch))