QUIC APL: Implement SSL_get0_listener

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23334)
This commit is contained in:
Hugo Landau 2024-02-05 14:38:04 +00:00 committed by Neil Horman
parent 2e582648c5
commit e3ba554d73
1 changed files with 2 additions and 3 deletions

View File

@ -3098,11 +3098,10 @@ SSL *ossl_quic_get0_listener(SSL *s)
{
QCTX ctx;
if (!expect_quic(s, &ctx))
if (!expect_quic_any(s, &ctx))
return NULL;
/* TODO(QUIC SERVER): Implement SSL_get0_listener */
return NULL;
return ctx.ql != NULL ? &ctx.ql->obj.ssl : NULL;
}
/*