Previous section.

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

NAME

CSSM_CL_CertExport

SYNOPSIS

CSSM_DATA_PTR CSSMAPI CSSM_CL_CertExport
    (CSSM_CL_HANDLE CLHandle,
    CSSM_CERT_TYPE TargetCertType,
    CSSM_CERT_ENCODING TargetCertEncoding,
    const CSSM_DATA_PTR NativeCert)

DESCRIPTION

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.

PARAMETERS

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.

RETURN VALUE

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.

ERRORS

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.

SEE ALSO

CSSM_CL_CertImport

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