---
name: "libressl-SSL_get_rbio"
section: "3"
platform: "linux"
package: "libressl"
version: "4.4.0-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/libressl-SSL_get_rbio"
---

# libressl-SSL\_get\_rbio(3)

get BIO linked to an SSL object

## NAME

**SSL\_get\_rbio**, **SSL\_get\_wbio** – get BIO linked to an SSL object

## SYNOPSIS

SSL Library (libssl, -lssl) libcrypto

**#include \<openssl/ssl.h\>**

*BIO* *\**\

**SSL\_get\_rbio**(*SSL \*ssl*);

*BIO* *\**\

**SSL\_get\_wbio**(*SSL \*ssl*);

## DESCRIPTION

**SSL\_get\_rbio**() and **SSL\_get\_wbio**() return pointers to the *BIO*s 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*.

## SEE ALSO

BIO\_new(3), [ssl(3)](/ssl/3.md), SSL\_set\_bio(3)

## HISTORY

**SSL\_get\_rbio**() and **SSL\_get\_wbio**() first appeared in SSLeay 0.6.0 and have been available since OpenBSD 2.4.
