Vtk_ExtensionsGetith
Toolkit Reference

prevnext

Vtk_ExtensionsGetith

#include <vtk_cert.h>
#include <vtk_defs.h>
#include <vtk_errs.h>
Vtk_uint32 Vtk_ExtensionsGetith(
const Vtk_Ctxt *ctxt, /* input */
const Vtk_Extensions *exts, /* input */
int i, /* input */
Vtk_Extension **dest /* output */
);


Description

This extension function can be used to search for a specific occurrence of an extension within the list of extensions currently in Vtk_Extensions structure. This search function can be used to search a list of any type of extensions, that is certificate, OCSP, CRT, or CRL extensions.

Parameters

ctxt Pointer to Toolkit context created using the Vtk_CtxtNew function and for which memory has been allocated.
exts Pointer to extensions structure that is to be parsed and for which memory has been allocated. It can be created using the Vtk_CertGetExtensions function or through the Vtk_ValRespDetails or Vtk_ValRespSingleCertDetails structure
i Integer index into the extensions list. The index is 0 based. The application can call the Vtk_ExtensionsGetCount function to determine the total number of extensions.
dest Pointer to structure into which the extensions meeting the search criteria is to be placed.

Return Value

VTK_OK The function has completed successfully and the structure has been returned.
error code The function has failed. For information about possible error values, refer to Appendix 

Notes

The application must call Vtk_ExtensionDelete when finished with the returned structure, otherwise 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_ValRespDetails

Vtk_ValRespSingleCertDetails

Vtk_CertGetExtensions

Vtk_ErrorToString_r

Vtk_ExtensionsGetCount

prevnext


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