The handle that describes the certificate librarymodule used to perform this function.
NumberOfFields (input)
The number of certificate field values specifiedin the CertFields.
CertFields (input)
A pointer to an array of OID/value pairs that identifythe field values to initialize a new certificate.
CertTemplate (output)
A pointer to a CSSM_DATA structure that will containthe unsigned certificate template as a result of this function.
DESCRIPTIONThis function allocates and initializes memory for an encodedcertificate template output in CertTemplate->Data.The template values are specified by the input OID/value pairs containedin CertFields. The initialization process includesencoding all certificate field values according to the certificatetype and certificate encoding supported by the certificate librarymodule.
The memory for CertTemplate->Data isallocated by the service provider using the calling application's memorymanagement routines. The application must deallocate the memory.
RETURN VALUEA CSSM_RETURN value indicating success or specifying a particularerror condition. The value CSSM_OK indicates success. All othervalues represent an error condition. ERRORSErrors are described in the CDSA Technical Standard.