SSL_GET_RBIO(3ossl)

πŸ’– SSL_GET_RBIO πŸ’–

okay bestie, welcome to the OpenSSL 3ossl manual page for SSL_get_rbio and SSL_get_wbio β€” yes both of them, they're a package deal, and they are lowkey the cutest little getter functions you'll ever meet. pull up a chair, grab a strawberry πŸ“, and let's get into it.


✨ NAME ✨

SSL_get_rbio, SSL_get_wbio β€” get the BIO linked to an SSL object πŸ¦‹


🌸 SYNOPSIS 🌸

#include <openssl/ssl.h>

BIO *SSL_get_rbio(SSL *ssl);
BIO *SSL_get_wbio(SSL *ssl);

πŸ’… DESCRIPTION πŸ’…

so here's the vibe. SSL_get_rbio() and SSL_get_wbio() hand you back pointers to the BIOs for the read channel and the write channel respectively. and listen β€” those two can literally be different BIOs. like, not the same one. they're allowed to be separate. main character energy each, no sharing required. πŸ‘‘

πŸ’€ the important bit: the reference count of the BIO is not incremented. so do not go freeing it all willy-nilly thinking you own it, bestie. you do not own it. it's not yours. it's just borrowed. πŸ™ˆ

πŸŽ€ RETURN VALUES πŸŽ€

here's what you might get back, and what it means:

  • NULL β€” no BIO was connected to the SSL object. it's giving empty. it's giving nothing attached. 😭
  • any other pointer β€” that's the BIO linked to ssl. slay. ✨

🌈 SEE ALSO 🌈


Copyright 2000-2016 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>.


and that's the whole page, bestie, no notes, ate and left no crumbs 🫢 this was OpenSSL 3.5.9, dated 2026-09-29 β€” periodt. πŸ’œβœ¨

πŸ“¦ where this page comes from