SSL_GET0_CONNECTION(3ossl)

πŸ“¦
version 15.1 Β· 2 versions
, in freebsd 15.1

πŸ’– 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() returns 1 if the SSL object is not a QUIC stream SSL object and 0 otherwise. πŸ¦‹

πŸ‘€ SEE ALSO πŸ‘€

πŸ•°οΈ HISTORY πŸ•°οΈ

These functions were added in OpenSSL 3.2. 🌱

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