OCSP_cert_to_id

Build an OCSP CertID from a subject certificate and its issuer.

Synopsis

Declared in <openssl/ocsp.h>

OCSP_CERTID*
OCSP_cert_to_id(
    EVP_MD const* dgst,
    X509 const* subject,
    X509 const* issuer);

Return Value

New OCSP_CERTID, or NULL on error; free with OCSP_CERTID_free().

Parameters

NameDescription
dgstDigest used for name and key hashes, or NULL for SHA-1.
subjectCertificate whose serial and issuer hashes identify the CertID.
issuerIssuer certificate providing the issuer name and public key.