skip book previous and next navigation links
go up to top of book: HP Open Source Security for OpenVMS Volume 1:... HP Open Source Security for OpenVMS Volume 1:...
go to beginning of reference: API FunctionsAPI Functions
go to previous page: CL_CertAbortQueryCL_CertAbortQuery
go to next page: CL_CertCreateTemplateCL_CertCreateTemplate
end of book navigation links


CL_CertCache
Library
Description
Errors
 Parameters
Return Value
See Also

NAME

CL_CertCache: CSSM_CL_CertCache - Cache a copy of a certificate (CDSA)

SYNOPSIS  

# include <cssm.h>

API:CSSM_RETURN CSSMAPI CSSM_CL_CertCache(CSSM_CL_HANDLE CLHandle,const CSSM_DATA *Cert,CSSM_HANDLE_PTR CertHandle)SPI:CSSM_RETURN CSSMAPI CSSM_CL_CertCache(CSSM_CL_HANDLE CLHandle,const CSSM_DATA *Cert,CSSM_HANDLE_PTR CertHandle)


return to top LIBRARY  

Common Security Services Manager library (cdsa$incssm300_shr.exe)


return to top PARAMETERS  

CLHandle (input)
 The handle that describes the certificate librarymodule used to perform this function.
Cert (input) A pointer to the CSSM_DATA structure containingthe encoded certificate.
CertHandle (output)
 A pointer to the CSSM_HANDLE that should be usedin all future references to the cached certificate.


return to top DESCRIPTION  

This function caches a copy of a certificate for subsequentaccesses using the functions CSSM_CL_CertGetFirstCachedFieldValue() (CSSM API), or CL_CertGetFirstCachedFieldValue() (CL SPI), and CSSM_CL_CertGetNextCachedFieldValue() (CSSM API), or CL_CertGetNextCachedFieldValue() (CL SPI).

The input certificate must be in an encoded representation.The Certificate Library module can cache the certificate in anyappropriate internal representation. Parsed or incrementally parsedrepresentations are common. The selected representation is opaqueto the caller.

The application must call CSSM_CL_CertAbortCache() (CSSM API), or CL_CertAbortCache() (CL SPI), to remove the cached copy when additional get operationswill not be performed on the cached certificate.


return to top RETURN VALUE  

A CSSM_RETURN value indicating success or specifying a particularerror condition. The value CSSM_OK indicates success. All othervalues represent an error condition.


return to top ERRORS  

Errors are described in the CDSA Technical Standard.
CSSMERR_CL_INVALID_CERT_POINTERCSSMERR_CL_UNKNOWN_FORMAT


return to top SEE ALSO  

Books

Intel CDSA Application Developer's Guide

Online Help

Functions for the CSSM API:

CSSM_CL_CertGetFirstCachedFieldValue, CSSM_CL_CertGetNextCachedFieldValue, CSSM_CL_CertAbortQuery, CSSM_CL_CertAbortCache

Functions for the CLI SPI:

CL_CertGetFirstCachedFieldValue, CL_CertGetNextCachedFieldValue, CL_CertAbortQuery, CL_CertAbortCache


go to previous page: CL_CertAbortQueryCL_CertAbortQuery
go to next page: CL_CertCreateTemplateCL_CertCreateTemplate