Optional callback that updates or replaces the HTTP connection BIO around connect/TLS.

Synopsis

Declared in <openssl/http.h>

typedef BIO*(* OSSL_HTTP_bio_cb_t)(BIO*, void*, int, int);

Return Value

BIO to use for subsequent HTTP I/O, or NULL on failure.

Parameters

Name

Description

bio

Current connection BIO (may be NULL before connect).

arg

User pointer supplied to OSSL_HTTP_open().

connect

Non‐zero when establishing the connection; zero when disconnecting.

detail

Non‐zero to request detailed error reporting from the callback.

Created with MrDocs