CSSM_CL_CertExport
CSSM_DATA_PTR CSSMAPI CSSM_CL_CertExport
(CSSM_CL_HANDLE CLHandle,
CSSM_CERT_TYPE TargetCertType,
CSSM_CERT_ENCODING TargetCertEncoding,
const CSSM_DATA_PTR NativeCert)
This function exports a certificate from the native format of the specified certificate library into the specified target certificate format. The set of TargetCertTypes supported for export is at the discretion of the certificate library and is documented for each module as part of the CSSM_CLSUBSERVICE structure available from the CSSM Registry.
- CLHandle (input)
The handle that describes the add-in certificate library module used to perform this function.
- TargetCertType (input)
A unique value which identifies the target type of the certificate being exported.
- TargetCertEncoding (input)
A unique value which identifies the encoding of the certificate being exported.
- NativeCert (input)
A pointer to the CSSM_DATA structure containing the certificate to be exported.
A pointer to the CSSM_DATA structure containing the target-type certificate exported from the native certificate. If the pointer is NULL, an error has occurred. Use CSSM_GetError to obtain the error code.
- CSSM_CL_INVALID_CL_HANDLE
Invalid Certificate Library handle.
- CSSM_CL_INVALID_DATA_POINTER
Invalid pointer input.
- CSSM_CL_UNKNOWN_FORMAT
Unrecognized certificate format.
- CSSM_CL_MEMORY_ERROR
Not enough memory.
- CSSM_CL_UNSUPPORTED_OPERATION
Add-in does not support this function.
- CSSM_CL_CERT_EXPORT_FAIL
Unable to export certificate.
CSSM_CL_CertImport
Contents | Next section | Index |