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) |
||
---|---|---|
.. | ||
perl | ||
platform_symbols | ||
add-depends.pl | ||
analyze-contention-log.sh | ||
build.info | ||
c-compress-test.pl | ||
cavs-to-evptest.pl | ||
check-format-commit.sh | ||
check-format-test-negatives.c | ||
check-format-test-positives.c | ||
check-format.pl | ||
check-malloc-errs | ||
checkplatformsyms.pl | ||
ck_errf.pl | ||
copy.pl | ||
ctags.sh | ||
dofile.pl | ||
echo.pl | ||
engines.num | ||
err-to-raise | ||
find-doc-nits | ||
find-unused-errs | ||
fips-checksums.sh | ||
fix-deprecation | ||
fix-includes | ||
fix-includes.sed | ||
help.pl | ||
indent.pro | ||
lang-compress.pl | ||
libcrypto.num | ||
libssl.num | ||
markdownlint.rb | ||
merge-err-lines | ||
missingcrypto-internal.txt | ||
missingcrypto.txt | ||
missingcrypto111.txt | ||
missingmacro.txt | ||
missingmacro111.txt | ||
missingssl-internal.txt | ||
missingssl.txt | ||
missingssl111.txt | ||
mk-fipsmodule-cnf.pl | ||
mkbuildinf.pl | ||
mkdef.pl | ||
mkdir-p.pl | ||
mkerr.pl | ||
mkinstallvars.pl | ||
mknum.pl | ||
mkpod2html.pl | ||
mkrc.pl | ||
mktar.sh | ||
opensslwrap.sh | ||
other-internal.syms | ||
other.syms | ||
providers.num | ||
shlib_wrap.sh.in | ||
su-filter.pl | ||
update_abi_check.sh | ||
withlibctx.pl | ||
wrap.pl.in | ||
write-man-symlinks |