return ret;
}
+/*
+ * SSL_get0_connection
+ * -------------------
+ */
+SSL *ossl_quic_get0_connection(SSL *s)
+{
+ QCTX ctx;
+
+ if (!expect_quic(s, &ctx))
+ return NULL;
+
+ return &ctx.qc->ssl;
+}
+
/*
* QUIC Front-End I/O API: SSL_CTX Management
* ==========================================