libressl-SSL_get_rbio(3)

libressl-SSL_get_rbio3

Get bio linked to an ssl object

Usage

SSL Library (libssl, -lssl) libcrypto

#include <openssl/ssl.h>

BIO *

SSL_get_rbio(SSL *ssl);

BIO *

SSL_get_wbio(SSL *ssl);

Overview

SSL_get_rbio() and SSL_get_wbio() return pointers to the BIOs for the read or the write channel, which can be different. The reference count of the BIO is not incremented.

Return values

The following return values can occur:

NULL

No BIO was connected to the SSL object.

Any other pointer

The BIO linked to ssl.

History

SSL_get_rbio() and SSL_get_wbio() first appeared in SSLeay 0.6.0 and have been available since OpenBSD 2.4.

From libressl 4.4.0-1 in Arch Linux 2026-11-01. Parsed by carta from the page's mdoc source.