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

Name

Description

bio1

Receives the first endpoint BIO.

writebuf1

Write buffer size for *bio1 (0 for default).

bio2

Receives the second endpoint BIO.

writebuf2

Write buffer size for *bio2 (0 for default).

Created with MrDocs