BIO_read

Read up to dlen bytes from BIO b into data.

Synopsis

Declared in <openssl/bio.h>

int
BIO_read(
    BIO* b,
    void* data,
    int dlen);

Return Value

Number of bytes read, 0 on EOF/no data, or a negative value on error (see BIO_should_retry).

Parameters

NameDescription
bSource BIO.
dataDestination buffer.
dlenMaximum number of bytes to read (must be non-negative and fit in int).