SSL_get0_connection(3ssl)

SSL_get0_connection3ssl

Get a quic connection ssl object from a quic stream ssl object

Usage

 #include <openssl/ssl.h>
 SSL *SSL_get0_connection(SSL *ssl);
 int SSL_is_connection(SSL *ssl);

Overview

The SSL_get0_connection() function, when called on a QUIC stream SSL object, returns the QUIC connection SSL object which the QUIC stream SSL object belongs to.

When called on a QUIC connection SSL object, it returns the same object.

When called on a non-QUIC object, it returns the same object it was passed.

SSL_is_connection() returns 1 for QUIC connection SSL objects and for non-QUIC SSL objects, but returns 0 for QUIC stream SSL objects.

Return values

SSL_get0_connection() returns the QUIC connection SSL object (for a QUIC stream SSL object) and otherwise returns the same SSL object passed. It always returns non-NULL.

SSL_is_connection() returns 1 if the SSL object is not a QUIC stream SSL object and 0 otherwise.

Releases

2 releases since Debian 13 (Trixie); the text changed 1 time.

  1. 13
  2. Arch

History

These functions were added in OpenSSL 3.2.

From openssl 3.6.5-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.