Vtk_ValidationSetVaInfo
Toolkit Reference

prevnext

Vtk_ValidationSetVaInfo

#include <vtk_valid.h>
#include <vtk_defs.h>
Vtk_uint32 Vtk_ValidationSetVaInfo(
const Vtk_Ctxt *ctxt, /* input */
Vtk_Validation *val, /* input */
const char *vaUrl, /* input */
enum Vtk_ValidationMech mech, /* input */
const Vtk_CertStore *vaCerts /* input */
);

Description

This validation function sets specific protocol and VA information for this validation operation for the certificates in the Vtk_Ctxt or Vtk_CertStore (if specified).

The information set in this function overrides the protocol and VA information currently set for the Vtk_Ctxt resulting in this Vtk_Validation structure being specific to the specified VA.

Parameters

ctxt Pointer to Toolkit context created using the Vtk_CtxtNew function and for which memory has been allocated.
val Pointer to the Vtk_Validation query structure.
vaUrl URL for the VA, for example http://ocsp.valicert.net:80.
mech Validation mechanism type employed by the user. The possible values are:
  • VTK_VM_CRT

  • VTK_VM_OCSP

For more information about these values, see Vtk_ValidationMech.
vaCerts Pointer to the certificate store that contains the VA certificates that are to be used to validate responses from the VA. This parameter is optional. If it is not set, the settings are applied to the certificates specified in the context. See Vtk_CertStore.

Return Value

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

Notes

This function copies the Vtk_CertStore structure. Therefore, applications must call the Vtk_CertStoreDelete to release the memory and resources allocated to the Vtk_CertStore structure.



See Also

Vtk_CertStore

Vtk_CertStoreDelete

prevnext


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