Vtk_ExtensionsGetCount
Toolkit Reference

prevnext

Vtk_ExtensionsGetCount

#include <vtk_cert.h>
#include <vtk_defs.h>
#include <vtk_errs.h>
int Vtk_ExtensionsGetCount(
const Vtk_Ctxt *ctxt, /* input */
const Vtk_Extensions *exts /* input */
);


Description

This extension function can be used to determine the number of extensions currently in the Vtk_Extensions structure for the specified context. This 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.

Return Value

val The function has completed successfully and this is the number of extensions within the Vtk_Extensions structure.
0 No extensions are present.

Notes

None

See Also

Vtk_ValRespDetails

Vtk_ValRespSingleCertDetails

Vtk_CertGetExtensions

prevnext


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