openssl/doc
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
..
HOWTO Document update for keys.txt 2025-04-15 17:15:23 +01:00
designs Update doc/designs/rfc4514.md 2025-09-26 07:58:44 -04:00
images
internal hashtable: add option to disable RCU locks 2025-10-02 08:05:02 -04:00
life-cycles
man1 Doc changes: the -hmac-env and -hmac-stdin options of openssl-dgst 2025-09-11 15:26:03 +10:00
man3 Add SSL_get_peer_addr() function to query peer address for QUIC 2025-10-04 10:21:38 +02:00
man5 Copyright year updates 2025-09-02 13:05:45 +00:00
man7 Add SSL_get_peer_addr() function to query peer address for QUIC 2025-10-04 10:21:38 +02:00
README.md Update doc README URLs 2025-03-03 09:40:30 +01:00
build.info Add SSL_get_peer_addr() function to query peer address for QUIC 2025-10-04 10:21:38 +02:00
build.info.in
dir-locals.example.el
fingerprints.txt
openssl-c-indent.el
perlvars.pm Copyright year updates 2025-03-12 13:35:59 +00:00
sbom.cdx.json Add a SBOM template in CycloneDX format 2025-04-03 09:11:29 +02:00

README.md

OpenSSL Documentation

README.md This file

fingerprints.txt PGP fingerprints of authorised release signers

HOWTO/ A few how-to documents; not necessarily up-to-date

man1/ The openssl command-line tools; start with openssl.pod

man3/ The SSL library and the crypto library

man5/ File formats

man7/ Overviews; start with crypto.pod and ssl.pod, for example Algorithm specific EVP_PKEY documentation.

Formatted versions of the manpages (apps,ssl,crypto) can be found at https://docs.openssl.org/master/