The handle that describes the add-in trust policy
module used to perform this function.
CLHandle (input)
The handle that describes the certificate library
module used to perform this function.
CertTemplate (input)
A pointer to the CSSM_DATA structure containing
the packed, encoded certificate template.
NumberOfFields (output)
The length of the output array of fields.
CertFields (output)
A pointer to an array of CSSM_FIELD structures which
contains the OIDs and values of the fields of the input certificate
template.
DESCRIPTIONThis function extracts and returns all field values from CertTemplate.
The CertTemplate parameter is an unsigned certificate
template in the format supported by the TP. Fields are returned
as a set of OID-value pairs. The OID identifies the TP certificate
template field and the data format of the value extracted from that
field. The Trust Policy module defines and uses a preferred data
format for returning field values from this function. Memory for
the CertFields output is allocated by the service
provider using the calling application's memory management routines.
The application must deallocate the memory, by calling CSSM_CL_FreeFields() (CSSM API), or CL_FreeFields() (TP SPI). RETURN VALUEA CSSM_RETURN value indicating success or specifying a particular
error condition. The value CSSM_OK indicates success. All other
values represent an error condition. ERRORSErrors are described in the CDSA Technical Standard.