Vtk_CtxtSetDefaultVa
Toolkit Reference

prevnext

Vtk_CtxtSetDefaultVa

#include <vtk_ctxt.h>
#include <vtk_err.h>
Vtk_uint32 Vtk_CtxtSetDefaultVa(
Vtk_Ctxt* ctxt, /* input */
const char *vaUrl, /* input */
enum Vtk_ValidationMech mech /* input */
);

Description

This Toolkit context function sets the default VA for the context passed in. The VA URL and validation mechanism specified in this function will be used as the default for all validations performed without an explicit VA.

When a context is newly created using the Vtk_CtxtNew function, it sets the default VA to the Global VA Service and CRT as the default protocol. The default URL for the Global VA Service is specified in the Vtk_GVAS_URL constant.

Parameters

ctxt Pointer to Toolkit context created using the Vtk_CtxtNew function and for which memory has been allocated. It is the Toolkit context for which this function sets the default VA.
vaUrl URL for default VA, for example http://ocsp.valicert.net:80.
mech Validation mechanism employed to validate certificates. The possible values are:
  • VTK_VM_CRT--Certificate Revocation Trees

  • VTK_VM_OCSP--Online Certificate Status Protocol


Return Value

VTK_OK The function has completed successfully and the default VA has been set.
error code The function has failed. For information about possible error values, refer to Appendix 

Notes

The same default VA can have different protocols for different contexts.


See Also

Vtk_CtxtNew

prevnext


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