SSL_GET_RBIO(3)
π SSL_GET_RBIO π
okay bestie, welcome to the libssl girlies β this one's a tiny little cutie from the OpenSSL corner of the universe, and it's honestly so straightforward you're gonna slay it.
β¨ NAME β¨
SSL_get_rbio, SSL_get_wbio β get the BIO that's linked to an SSL object π
π¦ SYNOPSIS π¦
library βlibsslβ libcrypto
#include <openssl/ssl.h>
BIO *
SSL_get_rbio(SSL *ssl);
BIO *
SSL_get_wbio(SSL *ssl);
πΈ DESCRIPTION πΈ
okay so picture this: your SSL object has a read channel and a write channel, and they're not necessarily the same thing, right? iconic behavior, honestly.
SSL_get_rbio() hands you back a pointer to the BIO for the read channel, and SSL_get_wbio() hands you back a pointer to the BIO for the write channel. two separate channels, two separate BIOs, they can totally be different. no cap.
β οΈ but listen β the reference count of the BIO is NOT incremented. so like, don't go freeing it and then acting surprised, bestie. it's giving "borrowed pointer energy." π
π RETURN VALUES π
here's what you might get back, fr fr:
NULLβ absolutely noBIOwas connected to theSSLobject. empty. void. nothing. π- Any other pointer β that's the
BIOlinked to ssl. go off, it's yours (to look at, not to own, remember what we said about refcounts π ).
π₯ SEE ALSO π₯
β HISTORY β
SSL_get_rbio() and SSL_get_wbio() first appeared in SSLeay 0.6.0 β ancient times, main character origin story β and they've been available since OpenBSD 2.4. periodt. π
and that's the whole page, bestie π«Ά go forth and check your rbios responsibly β¨
this little legend comes to you from Debian, dated June 8, 2025 β mwah, ily, bye πππ¦
π¦ where this page comes from
- alpine 3.24: libressl-doc 4.3.1-r0 Β· custom
- arch rolling: libressl 4.4.0-1 Β· ISC AND custom:OpenSSL
- Copyright (c) 2000, 2013 The OpenSSL Project. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms