OCSP_sendreq_bio

Send an OCSP request over HTTP via b and return the decoded response.

Synopsis

Declared in <openssl/ocsp.h>

OCSP_RESPONSE*
OCSP_sendreq_bio(
    BIO* b,
    char const* path,
    OCSP_REQUEST* req);

Return Value

Newly allocated OCSP_RESPONSE, or NULL on error; free with OCSP_RESPONSE_free().

Parameters

NameDescription
bBIO connected to the OCSP responder (typically a connected socket BIO).
pathHTTP request-URI path for the OCSP service (for example "/").
reqOCSP request to POST as application/ocsp-request.