]> 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)
committerViktor Dukhovni <openssl-users@dukhovni.org>
Wed, 11 Sep 2024 08:00:08 +0000 (18:00 +1000)
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 543e1247d6095b4ac22c1d6e859491a32a9d37c0..aa42f4f64d328f6ebb0380e1ed13d32fc3b0f5a5 100644 (file)
@@ -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;
 }
 
 /*