BIO_read_ex

Attempt to read up to dlen bytes from BIO b into data.

Synopsis

Declared in <openssl/bio.h>

int
BIO_read_ex(
    BIO* b,
    void* data,
    size_t dlen,
    size_t* readbytes);

Return Value

1 if any data was successfully read, or 0 otherwise.

Parameters

NameDescription
bBIO to read from.
dataDestination buffer for the bytes read.
dlenMaximum number of bytes to read.
readbytesOn success, receives the number of bytes actually read.