SSL_GET0_CONNECTION(3ossl)
π NAME π
okay so bestie, welcome to the SSL_GET0_CONNECTION(3ossl) page β this is the one about getting a QUIC connection SSL object from a QUIC stream SSL object. It's giving two-function group chat:
SSL_get0_connectionβ get a QUIC connection SSL object from a QUIC stream SSL object. πSSL_is_connectionβ check whether an SSL object is not a QUIC stream SSL object. π
π¦ SYNOPSIS π¦
#include <openssl/ssl.h>
SSL *SSL_get0_connection(SSL *ssl);
int SSL_is_connection(SSL *ssl);
π DESCRIPTION π
SSL_get0_connection() is the main character here. When you call it on a QUIC stream SSL object, it returns the QUIC connection SSL object which the QUIC stream SSL object belongs to. π«Ά
When you call it on a QUIC connection SSL object, it returns the same object. And when you call it on a non-QUIC object, it returns the same object it was passed. the way that it just hands the object back is lowkey iconic. β¨
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. π
β¨ 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()returns1if the SSL object is not a QUIC stream SSL object and0otherwise. π¦
π SEE ALSO π
π°οΈ HISTORY π°οΈ
These functions were added in OpenSSL 3.2. π±
π 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>.
byeee bestie β this page is from OpenSSL 3.5.6, dated 2026-04-07. stay slay π«Άπ
π¦ where this page comes from
- freebsd 15.1: base 15.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms