mirror of https://github.com/openssl/openssl.git
This change introduces a new public API symbol: SSL_get_peer_addr(). The change is QUIC-only, there are no changes for TLS connections - API: add peer address query for QUIC connections * Internal: declare/implement ossl_quic_get_peer_addr(SSL*, BIO_ADDR*) * Public: declare/implement SSL_get_peer_addr(SSL*, BIO_ADDR*) Rationale: - Allow applications to retrieve the remote UDP tuple for QUIC sessions (e.g., logging, access control, diagnostics) Provided documentation and test cases for SSL_get_peer_addr(). Set peer via channel API on new-conn. - In ch_on_new_conn_common(), BIO_ADDR_copy(&ch->cur_peer_addr, peer) was replaced with ossl_quic_channel_set_peer_addr(ch, peer) so addressed_mode is enabled at connection bring-up. Dropped redundant peer detection in create_qc_from_incoming_conn() The peer address is now propagated in ch_on_new_conn_common() via ossl_quic_channel_set_peer_addr(), so the channel is already in "addressed" mode. This also avoids querying the (unconnected) server UDP BIO, reduces duplication, and simplifies the accept path. All regression tests pass. Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Saša Nedvědický <sashan@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/28690) |
||
---|---|---|
.. | ||
build.info | ||
cc_newreno.c | ||
json_enc.c | ||
qlog.c | ||
qlog_event_helpers.c | ||
quic_ackm.c | ||
quic_cfq.c | ||
quic_channel.c | ||
quic_channel_local.h | ||
quic_demux.c | ||
quic_engine.c | ||
quic_engine_local.h | ||
quic_fc.c | ||
quic_fifd.c | ||
quic_impl.c | ||
quic_lcidm.c | ||
quic_local.h | ||
quic_method.c | ||
quic_obj.c | ||
quic_obj_local.h | ||
quic_port.c | ||
quic_port_local.h | ||
quic_rcidm.c | ||
quic_reactor.c | ||
quic_reactor_wait_ctx.c | ||
quic_record_rx.c | ||
quic_record_shared.c | ||
quic_record_shared.h | ||
quic_record_tx.c | ||
quic_record_util.c | ||
quic_rstream.c | ||
quic_rx_depack.c | ||
quic_sf_list.c | ||
quic_srt_gen.c | ||
quic_srtm.c | ||
quic_sstream.c | ||
quic_statm.c | ||
quic_stream_map.c | ||
quic_thread_assist.c | ||
quic_tls.c | ||
quic_tls_api.c | ||
quic_trace.c | ||
quic_tserver.c | ||
quic_txp.c | ||
quic_txpim.c | ||
quic_types.c | ||
quic_wire.c | ||
quic_wire_pkt.c | ||
uint_set.c |