Vtk_CtxtNew
Toolkit Reference

prevnext

Vtk_CtxtNew

#include <vtk_ctxt.h>
#include <vtk_err.h>
Vtk_Ctxt* Vtk_CtxtNew(void);

Description

This Toolkit context function creates, initializes, and allocates memory for a validation context structure. This structure contains global information that is persistent over validation checks such as the VA URL for a specific CA and trusted certificates for VAs and CAs.

By default the context uses the Global VA Service as its default VA and CRT as the default protocol. The context contains pre-loaded ValiCert Global VA Service certificates and its URL defined by the Vtk_GVAS_URL constant.

Parameters

None

Return Value

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

Notes

All Toolkit calls require a Vtk_Ctxt parameter. Before calling this function, or any Toolkit function, the application must first call the Vtk_Init function.


See Also

Vtk_CtxtAddCert

Vtk_CtxtAddCerts

Vtk_CtxtDelete

Vtk_Init

prevnext


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