OSSL_HTTP_bio_cb_t

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

NameDescription
bioCurrent connection BIO (may be NULL before connect).
argUser pointer supplied to OSSL_HTTP_open().
connectNon-zero when establishing the connection; zero when disconnecting.
detailNon-zero to request detailed error reporting from the callback.