Vtk_CertInit
Toolkit Reference

prevnext

Vtk_CertInit

#include <vtk_cert.h>
#include <vtk_err.h>
Vtk_uint32 Vtk_CertInit(
const Vtk_Ctxt* ctxt, /* input */
Vtk_Cert *dest, /* output */
const Vtk_Buffer *source /* input */
);

Description

This certificate encapsulation function initializes the Vtk_Cert data structure based on the data the application passes to it in the Vtk_Buffer structure.

Parameters

ctxt Pointer to Toolkit context created using the Vtk_CtxtNew function and for which memory has been allocated.
dest Pointer to the structure after it has been initialized with the passed in data.
source Data the application passes to the Toolkit. The data includes the encoding and decoding method employed. The possible values are:
  • VTK_DF_DER

  • VTK_DF_BASE64


Return Value

VTK_OK The function has completed successfully and the certificate has been initialized with the data passed in.
error code The function has failed. For information about possible error values, refer to Appendix 

Notes

None

See Also

Vtk_Buffer

Vtk_CertDelete

Vtk_CertLoadFromFile

Vtk_CertNew


prevnext


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