Vtk_CtxtAddCerts
Toolkit Reference

prevnext

Vtk_CtxtAddCerts

#include <vtk_ctxt.h>
#include <vtk_err.h>
Vtk_uint32 Vtk_CtxtAddCerts(
Vtk_Ctxt* ctxt, /* input */
int type, /* input */
const Vtk_CertStore *certs /* input */
);

Description

This Toolkit context function adds an one or more certificates to the list of trusted certificates maintained by the Toolkit in the context structure. The application can add a VA, CA or both types of certificates to the list.

Parameters

ctxt Pointer to Toolkit context created using the Vtk_CtxtNew function and for which memory has been allocated. The certificate is to be added to this structure.
type Type of certificate to add to the trusted certificate list. The possible values are:
  • VTK_VA_CERT for a trusted VA certificate

  • VTK_TRUSTED_CA_CERT for trusted CA certificate

  • VTK_INTERMEDIATE_CERT for intermediate CA certificate

These bit fields can be combined.
certs Certificate store (list of certificates) to add to the trusted list.

Return Value

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

Notes

None

See Also

Vtk_CtxtAddCert

Vtk_CtxtNew

prevnext


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