Previous section.

Common Security: CDSA and CSSM
Copyright © 1997 The Open Group

NAME

CSSM_CL_CrlCreateTemplate

SYNOPSIS

CSSM_DATA_PTR CSSMAPI CSSM_CL_CrlCreateTemplate
    (CSSM_CL_HANDLE CLHandle,
    const CSSM_FIELD_PTR CrlTemplate,
    uint32 NumberOfFields);

DESCRIPTION

This function creates an unsigned, memory-resident CRL. Fields in the CRL are initialized with the descriptive data specified by the OID/value input pairs. The specified OID/value pairs can initialize all or a subset of the general attribute fields in the new CRL. Subsequent values may be set using the CSSM_CL_CrlSetFields operation. The new CRL contains no revocation records.

PARAMETERS

CLHandle (input)

The handle that describes the add-in certificate library module used to perform this function.

CrlTemplate (input)

An array of OID/value pairs specifying the initial values for descriptive data fields of the new CRL.

NumberOfFields (input)

The number of OID/value pairs specified in the CrlTemplate input parameter.

RETURN VALUE

A pointer to the CSSM_DATA structure containing the new CRL. If the pointer is NULL, an error has occurred. Use CSSM_GetError to obtain the error code.

ERRORS

CSSM_CL_INVALID_CL_HANDLE

Invalid CL handle.

CSSM_CL_INVALID_FIELD_POINTER

Invalid pointer input.

CSSM_CL_INVALID_TEMPLATE

Invalid template for this CRL type.

CSSM_CL_MEMORY_ERROR

Not enough memory.

CSSM_CL_UNSUPPORTED_OPERATION

Add-in does not support this function.

CSSM_CL_CRL_CREATE_FAIL

Unable to create CRL.

SEE ALSO

CSSM_CL_CrlSetFields, CSSM_CL_CrlAddCert,
CSSM_CL_CrlSign, CSSM_CL_CertGetFirstFieldValue

Why not acquire a nicely bound hard copy?
Click here to return to the publication details or order a copy of this publication.
You should also read the legal notice explaining the terms and conditions relating to the CDSA documentation.

Contents Next section Index