OCSP_basic_sign

Sign a basic OCSP response with signer and key.

Synopsis

Declared in <openssl/ocsp.h>

int
OCSP_basic_sign(
    OCSP_BASICRESP* brsp,
    X509* signer,
    EVP_PKEY* key,
    EVP_MD const* dgst,
    stack_st_X509* certs,
    unsigned long flags);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
brspBasic response whose tbsResponseData is signed.
signerCertificate identifying the responder.
keyPrivate key corresponding to signer.
dgstDigest algorithm for the signature, or NULL for a default.
certsOptional certificates to include with the response, or NULL.
flagsOCSP_* flags such as OCSP_NOCERTS or OCSP_RESPID_KEY.