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

Name

Description

b

Source BIO.

data

Destination buffer.

dlen

Maximum number of bytes to read (must be non‐negative and fit in int).

Created with MrDocs