Vtk_ExtensionInit
Toolkit Reference

prevnext

Vtk_ExtensionInit

#include <vtk_cert.h>
#include <vtk_defs.h>
#include <vtk_errs.h>
Vtk_uint32 Vtk_ExtensionInit(
const Vtk_Ctxt *ctxt, /* input */
Vtk_Extension *ext, /* output */
const Vtk_Buffer *oid, /* input */
int critical, /* input */
const Vtk_Buffer *value /* input */
);

Description

This extension function initializes a Vtk_Extension data structure based on the data the application passes to it.

Parameters

ctxt Pointer to the Toolkit context created using the Vtk_CtxtNew function and for which memory has been allocated.
ext Pointer to the structure created using the Vtk_ExtensionNew function.
oid Pointer to the object identifier for this extension. The Vtk_DataFormat type is VTK_DF_STRING, a null-terminated printable string in dot format, that is 1.2.3.4
critical Value that determines whether the extension is critical. The possible values are 0 and nonzero. If the value is 0, the extension is not critical. If the value is nonzero, the extension is critical.
value Pointer to the buffer that contains the data to be placed in the extension structure. The content of this buffer will be encoded as an ASN1 octet string for the extension.

Return Value

VTK_OK The function has completed successfully and the Vtk_Extension structure has been initialized with the data passed in.
error code The function has failed. For information about possible error values, refer to Appendix 

Notes

None

See Also

Vtk_Extension

Vtk_ErrorToString_r

Vtk_ExtensionNew

prevnext


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