Vtk_CertLoadFromFile
Toolkit Reference

prevnext

Vtk_CertLoadFromFile

#include <vtk_cert.h>
#include <vtk_err.h>
Vtk_uint32 Vtk_CertLoadFromFile(
const Vtk_Ctxt* ctxt, /* input */
Vtk_Cert *into, /* output */
const char *fileName, /* input */
enum Vtk_DataFormat format /* input */
);

Description

This certificate encapsulation function initializes a Vtk_Cert data structure using the data in the file that the application passes to it.

Parameters

ctxt Pointer to Toolkit context created using the Vtk_CtxtNew function and for which memory has been allocated.
dest Pointer to the newly initialized Vtk_Cert structure.
fileName Name of file that contains the certificate data.
format 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 structure has been initialized from the named file.
error code The function has failed. For information about possible error values, refer to Appendix 

Notes

Encoding information is passed in the Vtk_DataFormat enumeration. Compare this to the Vtk_CertInit function which uses the Vtk_Buffer structure to pass encoding and certificate information.


See Also

Vtk_CertInit

Vtk_CertDelete

prevnext


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