Vtk_CertStoreAddCertRaw
Toolkit Reference

prevnext

Vtk_CertStoreAddCertRaw

#include <vtk_cert.h>
#include <vtk_err.h>
Vtk_uint32 Vtk_CertStoreAddCertRaw(
const Vtk_Ctxt *ctxt, /* input */
Vtk_CertStore *dest, /* output */
const Vtk_Buffer *certData /* input */
);

Description

This certificate store function adds a single certificate to the Vtk_CertStore which was created using the Vtk_CertStoreNew function. The certificate that is to be added is not within an initialized structure; however, it is created from the user supplied data contained in the buffer.

Parameters
ctxt Pointer to Toolkit context created using the Vtk_CtxtNew function and for which memory has been allocated.
dest Certificate store to which this certificate is to be added. A certificate store is a container for one or more certificates.
certdata Certificate data that is to be added to the certificate store. It is not within an initialized certificate structure. Data can represent the certificate encoded using DER or Base64.

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

Encoding and certificate information is passed in the Vtk_Buffer structure. Compare this to the VtkCertStoreAddCert function which uses the Vtk_Cert structure to encapsulate the X.509 certificate.
This function is provided as a convenience to allow an application to add a certificate that is not contained in an initialized structure.


See Also

Vtk_Buffer

Vtk_Cert

Vtk_CertStoreAddCert

Vtk_CertStoreNew

prevnext


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