Vtk_CtxtAddCert
Toolkit Reference

prevnext

Vtk_CtxtAddCert

#include <vtk_ctxt.h>
#include <vtk_err.h>
Vtk_uint32 Vtk_CtxtAddCert(
Vtk_Ctxt *ctxt, /* input */
int type, /* input */
const Vtk_Cert *cert /* input */
);

Description

This Toolkit context function adds an individual certificate to the list of trusted certificates maintained by the Toolkit in the context structure. The application can add a VA or CA certificate to the list, depending on the specified type.

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.

cert Certificate to add to the trusted list.

Return Value

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

Notes

The application must delete the certificate using the Vtk_CertDelete function.


See Also

Vtk_CtxtAddCerts

Vtk_CtxtNew

prevnext


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