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.