OCSP_request_sign

Sign an OCSP request with signer and key.

Synopsis

Declared in <openssl/ocsp.h>

int
OCSP_request_sign(
    OCSP_REQUEST* req,
    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
reqRequest whose TBSRequest is signed.
signerCertificate identifying the requestor.
keyPrivate key corresponding to signer.
dgstDigest algorithm for the signature, or NULL for a default.
certsOptional certificates to include with the request, or NULL.
flagsOCSP_* flags such as OCSP_NOCERTS.