SSL_GET0_CONNECTION(3ossl)
okay so bestie, welcome to the 3ossl manual page for the two little functions that help you find a QUIC connection from a stream: SSL_get0_connection and SSL_is_connection π
β¨
π NAME π
SSL_get0_connection, SSL_is_connection β get a QUIC connection SSL object from a QUIC stream SSL object.
πΈ SYNOPSIS πΈ
#include <openssl/ssl.h>
SSL *SSL_get0_connection(SSL *ssl);
int SSL_is_connection(SSL *ssl);
π¦ DESCRIPTION π¦
okay so picture this: you call SSL_get0_connection() on a QUIC stream SSL object, and it gives you back the QUIC connection SSL object that this stream belongs to. Like, the stream's home base, y'know? π
Call it on a QUIC connection SSL object, and it just hands you back the same object. No drama, no detour. π«Ά
Call it on a non-QUIC object, and it returns the same object it was passed. It's giving "you are already here" energy, honestly.
SSL_is_connection() is the vibe check: it returns 1 for QUIC connection SSL objects and for non-QUIC SSL objects, but returns 0 for QUIC stream SSL objects. So if it's a stream, it's a no π; otherwise yes.
π 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 β like, never NULL, periodt. π«Ά
SSL_is_connection() returns 1 if the SSL object is not a QUIC stream SSL object and 0 otherwise. Simple as that, bestie.
π₯ SEE ALSO π₯
β HISTORY β
These functions were added in OpenSSL 3.2. iconic behavior, honestly.
π COPYRIGHT π
Copyright 2002-2023 The OpenSSL Project Authors. All Rights Reserved.
Licensed under the Apache License 2.0 (the "License"). You may not use this file except in compliance with the License. You can obtain a copy in the file LICENSE in the source distribution or at <https://www.openssl.org/source/license.html>.
made with π for OpenSSL 3.5.0, dated 2026-09-25. bye bestie, go slay those QUIC streams ππ
π¦ where this page comes from
- opensuse-leap 16.0: openssl-3-doc 3.5.0-160000.11.1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms