skip book previous and next navigation links
go up to top of book: HP Open Source Security for OpenVMS Volume 1:... HP Open Source Security for OpenVMS Volume 1:...
go to beginning of reference: API FunctionsAPI Functions
go to previous page: TP_ApplyCrlToDbTP_ApplyCrlToDb
go to next page: TP_CertGetAllTemplateFieldsTP_CertGetAllTemplateFields
end of book navigation links


TP_CertCreateTemplate
Library
Description
Errors
 Parameters
Return Value
See Also

NAME

TP_CertCreateTemplate: CSSM_TP_CertCreateTemplate - Allocate and initialize template memory (CDSA)

SYNOPSIS  

# include <cssm.h>

API:CSSM_RETURN CSSMAPI CSSM_TP_CertCreateTemplate(CSSM_TP_HANDLE TPHandle,CSSM_CL_HANDLE CLHandle,uint32 NumberOfFields,const CSSM_FIELD *CertFields,CSSM_DATA_PTR CertTemplate)SPI:CSSM_RETURN CSSMTPI TP_CertCreateTemplate(CSSM_TP_HANDLE TPHandle,CSSM_CL_HANDLE CLHandle,uint32 NumberOfFields,const CSSM_FIELD *CertFields,CSSM_DATA_PTR CertTemplate)


return to top LIBRARY  

Common Security Services Manager library (cdsa$incssm300_shr.exe)


return to top PARAMETERS  

TPHandle (input)
 The handle that describes the add-in trust policymodule used to perform this function.
CLHandle (input)
 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 identifiesthe 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.


return to top DESCRIPTION  

This 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 template encoding supported by the trust policylibrary module. The CertTemplate output is anunsigned certificate template in the format supported by the TP.

The memory for CertTemplate->Data isallocated by the service provider using the calling application's memorymanagement routines. The application must deallocate the memory.


return to top RETURN VALUE  

A CSSM_RETURN value indicating success or specifying a particularerror condition. The value CSSM_OK indicates success. All othervalues represent an error condition.


return to top ERRORS  

Errors are described in the CDSA Technical Standard.
CSSMERR_TP_INVALID_CL_HANDLECSSMERR_TP_INVALID_FIELD_POINTERCSSMERR_TP_UNKNOWN_TAGCSSMERR_TP_INVALID_NUMBER_OF_FIELDS


return to top SEE ALSO  

Books

Intel CDSA Application Developer's Guide

Online Help

Functions for the CSSM API:

CSSM_TP_CertGetAllTemplateFields, CSSM_TP_CertSign

Functions for the TP SPI:

TP_CertGetAllTemplateFields, TP_CertSign


go to previous page: TP_ApplyCrlToDbTP_ApplyCrlToDb
go to next page: TP_CertGetAllTemplateFieldsTP_CertGetAllTemplateFields