OCSP_request_add1_cert

Add a certificate to the optional certs field of a signed OCSP request.

Synopsis

Declared in <openssl/ocsp.h>

int
OCSP_request_add1_cert(
    OCSP_REQUEST* req,
    X509* cert);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
reqOCSP request to update (typically after signing setup).
certCertificate to include; its reference count is incremented.