]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - ssl/quic/quic_impl.c
QUIC DISPATCH/APL: Implement SSL_get0_connection
[thirdparty/openssl.git] / ssl / quic / quic_impl.c
index 01b99c54613b6d2305037fc3139c1e22f6d8a6f7..3ed03b1c866d2d68b7a6702624a98eee2a279f86 100644 (file)
@@ -1821,6 +1821,20 @@ int SSL_inject_net_dgram(SSL *s, const unsigned char *buf,
     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
  * ==========================================