RSA Security logo

RSA BSAFE Cert-C
API Reference

OCSP_CRL_REFERENCE Struct Reference

Represents the CRL References extension for an OCSP response.

It holds one of three possible data items:

Because url, number, and time are mutually exclusive they are defined as a union in the OCSP_CRL_REFERENCE structure. The default criticality for this extension is NON_CRITICAL. An OCSP response can contain only one OCSP_CRL_REFERENCE extension for each certificate for which status is being requested. This extension can be present only in an EXTENSIONS_OBJ of type OCSP_SINGLE_EXTENSIONS_OBJ. Use the OCSP_CRL_REFERENCE structure with the C_AddExtensionValue() and C_GetExtensionValue() functions.
Data Fields
type An OCSP_CRLREF_TYPE structure that indicates the type of information contained in a OCSP_CRL_REFERENCE structure. The possible values are as follows:

Type Description
OCSP_CRLREF_TYPE_URL A URL where the CRL is located.
OCSP_CRLREF_TYPE_NUMBER A CRL number.
OCSP_CRLREF_TYPE_TIME The time at which the relevant CRL was created.

info A union that contains a CRL reference in the format specified by type.

    url: An ITEM structure that represents a URL address where the CRL is located.

    Number: An ITEM structure that represents a CRL number.

    Time: A GENERALIZED_TIME structure that represents the time at which the relevant CRL was created. OCSP_CRLREF_TYPE
The OCSP_CRLREF_TYPE enumeration indicates the type of information contained in the OCSP_CRL_REFERENCE structure that is currently being used.

#include <certext.h>

02810 typedef struct {
02811   OCSP_CRLREF_TYPE   type; /* specifies use of "url", "number", or "time" */
02812   union {
02813     ITEM             url;
02814     ITEM             number;
02815     GENERALIZED_TIME time;
02816   } info;
02817 } OCSP_CRL_REFERENCE;

The documentation for this struct was generated from the following file:


RSA BSAFE® Cert-C 2.7 API Reference