Vtk_CertNew
Toolkit Reference

prevnext

Vtk_CertNew

#include <vtk_cert.h>
#include <vtk_err.h>
Vtk_Cert* Vtk_CertNew(
const Vtk_Ctxt *ctxt /* input */
);

Description

This certificate encapsulation function allocates memory for the Vtk_Cert structure and creates an empty X.509 certificate structure.

Parameters
ctxt Pointer to Toolkit context created using the Vtk_CtxtNew function and for which memory has been allocated.

Return Value

Vtk_Cert The function has completed successfully. The function returns the Vtk_Cert structure that has been newly created and initialized.
NULL The function has failed.

Notes

This function must be called before any other certificate encapsulation functions. Once the empty certificate structure is created, the application can populate the certificate with data using the Vtk_CertInit and Vtk_CertLoadFromFile. The application must call Vtk_CertDelete to release the memory allocated by this function when it no longer needs the structure.


See Also

Vtk_Cert

Vtk_CertDelete

Vtk_CertGetIssuer

Vtk_CertInit

Vtk_CertLoadFromFile

prevnext


ValiCert, Inc.
http://www.valicert.com
Voice: +1.650.567.5469
Fax: (+1.650.254.2148
support@valicert.com