Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Saša Nedvědický <sashan@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/26361)
SSL_accept_connection() on them. As such, it may occur that callbacks are
delivered to appliations' registered TLS callbacks prior to those SSL objects
being returned in SSL_accept_connection(). Applications should expect this
-possibilty
+possibility
-In Particular no references should be held on SSL objects passed to callbacks
+In particular no references should be held on SSL objects passed to callbacks
for QUIC connections until such time as they are returned through a call to
SSL_accept_connection.
connections. As QUIC connections begin TLS handshake operations prior to them
being accepted via SSL_accept_connection(), an application may receive callbacks
for such pending connection prior to acceptance via SSL_accept_connection(). As
-listner association takes place during the accept process, prior to being
+listener association takes place during the accept process, prior to being
returned from SSL_accept_connection(), calls to SSL_get0_listener() made from
such SSL callbacks will return NULL. This can be used as an indicator within
the callback that the referenced SSL object has not yet been accepted.