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

Name

Description

io

BIO connected to the OCSP responder.

path

HTTP request‐URI path for the OCSP service (for example "/").

req

Optional OCSP request to send immediately, or NULL to set later.

buf_size

I/O buffer size hint, or 0 for the default.

Created with MrDocs