]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
QUIC APL: Implement SSL_get0_listener
authorHugo Landau <hlandau@openssl.org>
Mon, 5 Feb 2024 14:38:04 +0000 (14:38 +0000)
committerNeil Horman <nhorman@openssl.org>
Mon, 17 Feb 2025 16:27:32 +0000 (11:27 -0500)
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23334)

ssl/quic/quic_impl.c

index b732d2f3ebe93849435a3cd89a76bc999619de00..0692e57a0bbdb8e72894383e4f054430eabf8057 100644 (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;
 }
 
 /*