Previous section.

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

NAME

CSSM_CL_CertGetAllFields

SYNOPSIS

CSSM_FIELD_PTR CSSMAPI CSSM_CL_CertGetAllFields
    (CSSM_CL_HANDLE CLHandle,
    CSSM_DATA_PTR Cert,
    uint32 *NumberOfFields)

DESCRIPTION

This function returns a list of the values stored in the input certificate.

PARAMETERS

CLHandle (input)

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

Cert (input)

A pointer to the CSSM_DATA structure containing the certificate whose fields will be returned.

NumberOfFields (output)

The length of the returned array of fields.

RETURN VALUE

A pointer to an array of CSSM_FIELD structures which contain the values of all of the fields of the input 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 handle.

CSSM_CL_INVALID_DATA_POINTER

Invalid DATA pointer.

CSSM_CL_MEMORY_ERROR

Error allocating memory.

CSSM_CL_CERT_GET_FIELD_VALUE_FAIL

Unable to return the list of fields.

SEE ALSO

CSSM_CL_CertGetFirstFieldValue, CSSM_CL_CertDescribeFormat

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