From: Hugo Landau Date: Mon, 5 Feb 2024 14:38:04 +0000 (+0000) Subject: QUIC APL: Implement SSL_get0_listener X-Git-Tag: openssl-3.5.0-alpha1~447 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e3ba554d7351a05ee6338e1d60d0b0bebeadb60c;p=thirdparty%2Fopenssl.git QUIC APL: Implement SSL_get0_listener Reviewed-by: Matt Caswell Reviewed-by: Neil Horman (Merged from https://github.com/openssl/openssl/pull/23334) --- diff --git a/ssl/quic/quic_impl.c b/ssl/quic/quic_impl.c index b732d2f3ebe..0692e57a0bb 100644 --- a/ssl/quic/quic_impl.c +++ b/ssl/quic/quic_impl.c @@ -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; } /*