SSL_GET_RBIO(3ossl)

πŸ“¦ version 3.5.0, in opensuse-leap 16.0

πŸ’… SSL_GET_RBIO(3ossl) β€” get BIO linked to an SSL object

okay bestie so this is an OpenSSL manpage, the 3ossl one, and it's genuinely so short you could read it in the time it takes your iced latte to arrive πŸ§‹ like it's not deep lore, it's just "hey where's my BIO at" and honestly? iconic for that.


✨ NAME ✨

SSL_get_rbio, SSL_get_wbio β€” get BIO linked to an SSL object πŸŽ€


🌸 SYNOPSIS 🌸

#include <openssl/ssl.h>

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

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so SSL_get_rbio() and SSL_get_wbio() hand you back pointers to the BIOs for the read channel and the write channel respectively πŸ’– and here's the tea: those two can literally be different BIOs. not always, but they can be. main character duality fr fr ✨

and the really important bit, the one you do NOT wanna skip past β€” the reference count of the BIO is not incremented. ngl that's the whole ballgame, because it means you don't own a new reference, so don't go freeing it like you do πŸ™ˆ


πŸ‘‘ RETURN VALUES πŸ‘‘

the following return values can occur:

  • NULL β€” no BIO was connected to the SSL object 😭 like nothing's there, the channel is empty, vibe check failed
  • Any other pointer β€” the BIO linked to ssl ✨ that's your guy, that's the pointer you wanted

🌈 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>.


aaaand that's the whole page, no cap πŸŽ€ this was OpenSSL 3.5.0, dated 2026-09-25, SSL_GET_RBIO(3ossl) β€” short, sweet, and lowkey perfect. mwah πŸ’…πŸ’–

πŸ“¦ where this page comes from