Re: how to determine peeraddr from quic connection
Matt Caswell <[email protected]> Thu, 25 Sep 2025 17:36:38 +0100
| Newsgroups | gmane.comp.encryption.openssl.user |
|---|---|
| Message-ID | <CAODx15cvRP=f__pRKi_Xy4M2UzQF2aCuR048OxcSi3MdW5TQMg@mail.gmail.com> |
On Thu, 25 Sept 2025 at 17:01, gustafn <[email protected]> wrote: > when accepting a new quic connection > > SSL *conn = SSL_accept_connection(listener_ssl, 0); > > how can i determine the peer address (sockaddr) for conn? > It would be nice to have something like > > int SSL_get_peer_addr(SSL *ssl, > struct sockaddr *restrict addr, > socklen_t *restrict addrlen); > or > > int SSL_get_peer_addr(SSL *ssl, BIO_ADDR *peer_addr); > Hmm. I don't think we have something like this. I see the internal function to do this ("ossl_quic_channel_get_peer_addr"), but I don't see it exposed anywhere as public API. That looks like it would be a very useful addition and would be quite straightforward to add. Matt > > using recvfrom(.... MSG_PEEK...) can't be the solution. > I have the feeling, i have missed something essential in the documentation > > All the best -g > > -- > You received this message because you are subscribed to the Google Groups > "openssl-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to openssl-users+unsubscribe-MCmKBN63+Bmbup2nOX2J7Q@public.gmane.org > To view this discussion visit > https://groups.google.com/a/openssl.org/d/msgid/openssl-users/9827cf3a-fae0-4b13-af8c-7fc26d2fed5cn%40openssl.org > <https://groups.google.com/a/openssl.org/d/msgid/openssl-users/9827cf3a-fae0-4b13-af8c-7fc26d2fed5cn%40openssl.org?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "openssl-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to openssl-users+unsubscribe-MCmKBN63+Bmbup2nOX2J7Q@public.gmane.org To view this discussion visit https://groups.google.com/a/openssl.org/d/msgid/openssl-users/CAODx15cvRP%3Df__pRKi_Xy4M2UzQF2aCuR048OxcSi3MdW5TQMg%40mail.gmail.com.