OCSP_basic_sign_ctx

Sign a basic OCSP response using an initialized digest/sign context.

Synopsis

Declared in <openssl/ocsp.h>

int
OCSP_basic_sign_ctx(
    OCSP_BASICRESP* brsp,
    X509* signer,
    EVP_MD_CTX* ctx,
    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.
ctxDigest context already set up for signing with the responder key.
certsOptional certificates to include with the response, or NULL.
flagsOCSP_* flags such as OCSP_NOCERTS or OCSP_RESPID_KEY.