From 4020f3001f6afba3388c3253baa3ffa4d2a4e082 Mon Sep 17 00:00:00 2001 From: Hugo Landau Date: Mon, 5 Feb 2024 14:38:04 +0000 Subject: [PATCH] QUIC APL: Implement SSL_get0_listener Reviewed-by: Matt Caswell Reviewed-by: Neil Horman (Merged from https://github.com/openssl/openssl/pull/23334) --- ssl/quic/quic_impl.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ssl/quic/quic_impl.c b/ssl/quic/quic_impl.c index 543e1247d60..aa42f4f64d3 100644 --- a/ssl/quic/quic_impl.c +++ b/ssl/quic/quic_impl.c @@ -3085,11 +3085,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; } /* -- 2.47.2