Vtk_CertGetIssuer
Toolkit Reference

prevnext

Vtk_CertGetIssuer

#include <vtk_cert.h>
#include <vtk_err.h>
Vtk_uint32 Vtk_CertGetIssuer(
const Vtk_Ctxt* ctxt, /* input */
const Vtk_Cert *cert, /* input */
Vtk_Cert **issuer /* output */
);

Description

This certificate encapsulation function returns the certificate of the CA that has signed and issued the specified certificate. The function searches the certificates in the specified context.

Parameters

ctxt Pointer to Toolkit context created using the Vtk_CtxtNew function and for which memory has been allocated.
cert Pointer to the certificate for which the issuer is to be returned.
issuer Pointer to the issuer information extracted from the Vtk_Cert structure.

Return Value

VTK_OK The function has completed successfully and the issuer information has been extracted and placed in Vtk_CertInfo.
error code The function has failed. For information about possible error values, refer to Appendix 

Notes

The application must call the Vtk_CertDelete function for the structure returned by Vtk_CertGetIssuer. If the application does not call Vtk_CertDelete, memory leaks and other problems can occur. For more information about the memory model employed by the Toolkit, see Toolkit Memory Model.


See Also

Vtk_CertInfo

Vtk_CertDelete

prevnext


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