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

Name

Description

req

OCSP request to update (typically after signing setup).

cert

Certificate to include; its reference count is incremented.

Created with MrDocs