Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/24037)
provides an abstracted API for connection acceptance, will be expanded to
support other protocols, such as TLS over TCP, plain TCP or DTLS in future.
+SSL_listen() and SSL_accept_connection() are "I/O" functions, meaning that they
+update the value returned by L<SSL_get_error(3)> if they fail.
+
=head1 CLIENT-ONLY USAGE
It is also possible to use the listener interface without accepting any
if (!expect_quic_listener(ssl, &ctx))
return 0;
- qctx_lock(&ctx);
+ qctx_lock_for_io(&ctx);
ret = ql_listen(ctx.ql);
if (!expect_quic_listener(ssl, &ctx))
return NULL;
- qctx_lock(&ctx);
+ qctx_lock_for_io(&ctx);
if (!ql_listen(ctx.ql))
goto out;