BIO_new_bio_pair

Create two connected memory BIOs that form a reliable in-memory byte pipe.

Synopsis

Declared in <openssl/bio.h>

int
BIO_new_bio_pair(
    BIO** bio1,
    size_t writebuf1,
    BIO** bio2,
    size_t writebuf2);

Return Value

1 on success, or 0 on error.

Parameters

NameDescription
bio1Receives the first endpoint BIO.
writebuf1Write buffer size for *bio1 (0 for default).
bio2Receives the second endpoint BIO.
writebuf2Write buffer size for *bio2 (0 for default).