OpenBSD Handbook Manuals
Search

SSL_get_rbio(3)

Canonical URL: /SSL_get_rbio.3/

SSL_GET_RBIO(3) Library Functions Manual SSL_GET_RBIO(3)

SSL_get_rbio, SSL_get_wbioget BIO linked to an SSL object

/* -lssl -lcrypto */
#include <openssl/ssl.h>

BIO *
SSL_get_rbio(SSL *ssl);

BIO *
SSL_get_wbio(SSL *ssl);

() and () 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.

The following return values can occur:

No BIO was connected to the SSL object.
Any other pointer
The BIO linked to ssl.

BIO_new(3), ssl(3), SSL_set_bio(3)

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

OpenBSD 7.8 June 8, 2025 SSL_GET_RBIO(3)

Need conceptual guidance? Continue in the OpenBSD Handbook.