OCSP_sendreq_new

Create a non-blocking HTTP request context for an OCSP exchange.

Synopsis

Declared in <openssl/ocsp.h>

OSSL_HTTP_REQ_CTX*
OCSP_sendreq_new(
    BIO* io,
    char const* path,
    OCSP_REQUEST const* req,
    int buf_size);

Return Value

New OSSL_HTTP_REQ_CTX, or NULL on error; free with OSSL_HTTP_REQ_CTX_free().

Parameters

NameDescription
ioBIO connected to the OCSP responder.
pathHTTP request-URI path for the OCSP service (for example "/").
reqOptional OCSP request to send immediately, or NULL to set later.
buf_sizeI/O buffer size hint, or 0 for the default.