RSA BSAFE Cert-C

Certificate Components for C

Crypto-C 6.2.1 Developer's Guide
Search

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 this structure. The default criticality for this extension is NON_CRITICAL. An OCSP response can contain only one extension of this structure 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 C_AddExtensionValue() and C_GetExtensionValue().

#include <certext.h>

typedef struct {

  OCSP_CRLREF_TYPE   type;

  union {
    ITEM             url;
    ITEM             number;
    GENERALIZED_TIME time;
  } info;
} OCSP_CRL_REFERENCE;

Data Fields

OCSP_CRLREF_TYPE type
 An OCSP_CRLREF_TYPE structure that indicates the type of information contained in a OCSP_CRL_REFERENCE structure. More...

union OCSP_CRL_REFERENCE::@6 info
 A union that contains a CRL reference in the format specified by type. More...


Field Documentation

union { ... } 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.
This structure's enumeration indicates the type of information contained in the OCSP_CRL_REFERENCE structure that is currently being used.

OCSP_CRLREF_TYPE 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.


Copyright (c) 1999-2005 RSA Security Inc. All rights reserved. 067-001001-2720-001-000 - 2.7.2