libressl-OCSP_CRLID_new(3)

libressl-OCSP_CRLID_new3

Ocsp crl extension

Usage

Crypto Library (libcrypto, -lcrypto)

#include <openssl/ocsp.h>

OCSP_CRLID *

OCSP_CRLID_new(void);

void

OCSP_CRLID_free(OCSP_CRLID *crlid);

X509_EXTENSION *

OCSP_crlID_new(const char *url, long *number, char *time);

Overview

If a client asks about the validity of a certificate and it turns out to be invalid, the responder may optionally communicate which certificate revocation list the certificate was found on. The required data is stored as an ASN.1 CrlID structure in the singleExtensions field of the SingleResponse structure. The CrlID is represented by an OCSP_CRLID object, which will be stored inside the OCSP_SINGLERESP object documented in OCSP_SINGLERESP_new(3).

OCSP_CRLID_new() allocates and initializes an empty OCSP_CRLID object. OCSP_CRLID_free() frees crlid.

OCSP_crlID_new() accepts the url at which the CRL is available, the CRL number, and/or the time at which the CRL was created. Each argument can be NULL, in which case the respective field is omitted. The resulting CrlID structure is encoded in ASN.1 using X509V3_EXT_i2d(3) with criticality 0.

Return values

OCSP_CRLID_new() returns a new OCSP_CRLID object or NULL if an error occurred.

OCSP_crlID_new() returns a new X509_EXTENSION object or NULL if an error occurred.

Caveats

The function names OCSP_CRLID_new() and OCSP_crlID_new() only differ in case.

Standards

RFC 6960: X.509 Internet Public Key Infrastructure Online Certificate Status Protocol, section 4.4.2: CRL References

History

OCSP_CRLID_new(), OCSP_CRLID_free(), and OCSP_crlID_new() first appeared in OpenSSL 0.9.7 and have been available since OpenBSD 3.2.

From libressl 4.4.0-1 in Arch Linux 2026-11-01. Parsed by carta from the page's mdoc source.