openssl/util
Gustaf Neumann beec4e146a Add SSL_get_peer_addr() function to query peer address for QUIC
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)
2025-10-04 10:21:38 +02:00
..
perl add codespell pre-commit check and fix found misspellings 2025-10-03 09:03:14 +02:00
platform_symbols Replace homebrewed implementation of *printf*() functions with libc 2025-09-11 13:45:00 -04:00
add-depends.pl Update copyright year 2022-05-03 13:34:51 +01:00
analyze-contention-log.sh util/analyze-contention-log.sh: print status output to stderr 2025-08-07 11:02:51 -04:00
build.info Adds a new demo blocking QUIC server for use with the existing demo QUIC clients 2025-02-17 11:27:33 -05:00
c-compress-test.pl
cavs-to-evptest.pl
check-format-commit.sh fix: util/check-format-commit.sh - fix ending check 2024-10-30 11:41:55 +00:00
check-format-test-negatives.c Copyright year updates 2025-09-02 13:05:45 +00:00
check-format-test-positives.c Copyright year updates 2025-09-02 13:05:45 +00:00
check-format.pl Copyright year updates 2025-09-02 13:05:45 +00:00
check-malloc-errs
checkplatformsyms.pl Create a rudimentary symbol scanning script 2023-11-01 16:32:26 +01:00
ck_errf.pl
copy.pl
ctags.sh Copyright year updates 2025-09-02 13:05:45 +00:00
dofile.pl
echo.pl
engines.num
err-to-raise
find-doc-nits util/find-doc-nits: do not check files in submodules in check_env_vars 2025-09-09 09:47:11 -04:00
find-unused-errs
fips-checksums.sh
fix-deprecation
fix-includes
fix-includes.sed
help.pl Copyright year updates 2025-09-02 13:05:45 +00:00
indent.pro Implement KEMRecipientInfo (RFC9629) in CMS 2025-07-30 11:39:04 +02:00
lang-compress.pl
libcrypto.num Make update following 4.0 version change 2025-09-04 10:40:04 +01:00
libssl.num Add SSL_get_peer_addr() function to query peer address for QUIC 2025-10-04 10:21:38 +02:00
markdownlint.rb Adjust mdl configuration 2023-10-24 17:34:07 +01:00
merge-err-lines
missingcrypto-internal.txt
missingcrypto.txt Implement KEMRecipientInfo (RFC9629) in CMS 2025-07-30 11:39:04 +02:00
missingcrypto111.txt Implementation of the RFC 9579, PBMAC1 in PKCS#12 - documentation 2024-08-07 10:00:16 +02:00
missingmacro.txt BIO_s_dgram: add documentation and hazard warnings 2022-12-15 06:32:45 +00:00
missingmacro111.txt
missingssl-internal.txt
missingssl.txt Document the SSL_set_session_secret_cb() function 2024-05-06 10:44:22 +02:00
missingssl111.txt
mk-fipsmodule-cnf.pl kdfs: implement key length check in X9.42 2024-09-30 20:03:49 +02:00
mkbuildinf.pl Copyright year updates 2025-03-12 13:35:59 +00:00
mkdef.pl Copyright year updates 2024-04-09 13:43:26 +02:00
mkdir-p.pl
mkerr.pl Copyright year updates 2024-09-05 09:35:49 +02:00
mkinstallvars.pl Copyright year updates 2024-09-05 09:35:49 +02:00
mknum.pl
mkpod2html.pl
mkrc.pl
mktar.sh Fix treatment of BUILD_METADATA 2022-12-08 07:01:33 +01:00
opensslwrap.sh
other-internal.syms
other.syms Add array memory allocation routines 2025-08-08 12:22:10 -04:00
providers.num
shlib_wrap.sh.in
su-filter.pl
update_abi_check.sh Update ci and ABI xml files to validate function parameters 2023-11-15 11:08:17 +01:00
withlibctx.pl
wrap.pl.in Split arguments taking quotes into account 2025-06-04 17:33:48 +02:00
write-man-symlinks