CSSM_CL_CertImport

Purpose

This function imports a certificate from the specified foreign format into the native format of the specified CL. The set of ForeignCertTypes supported for import varies with the CL module. See the information provided by the module vendor for a list of supported foreign certificate formats.

Format

CSSM_DATA_PTR CSSMAPI CSSM_CL_CertImport
                 (CSSM_CL_HANDLE CLHandle,
                 CSSM_CERT_TYPE ForeignCertType,
                 const CSSM_DATA_PTR ForeignCert)

Parameters

Input

CLHandle
The handle that describes the CL module used to perform this function.
ForeignCertType
A unique value that identifies the type of the certificate being imported.
ForeignCert
A pointer to the CSSM_DATA structure containing the certificate to be imported into the CL modules native certificate type.

Return Value

A pointer to the CSSM_DATA structure containing the native-type certificate imported from the foreign certificate. If the pointer is NULL, an error has occurred. Use CSSM_GetError to obtain the error code.

Related Information

CSSM_CL_CertExport