Skip to content

API XMLSec Core Io

Aleksey Sanin edited this page Apr 22, 2026 · 4 revisions

I/O

API Group: xmlsec_core_io

Input/output helper functions.

Input/output functions.

Macros

xmlSecTransformInputURIId

Defined as: xmlSecTransformInputURIGetKlass()

Source: include/xmlsec/io.h

The Input URI transform id.


Functions

xmlSecIOInit

int xmlSecIOInit(void);

Source: include/xmlsec/io.h

Initializes the IO subsystem.

The IO initialization (called from xmlSecInit function). Applications should not call this function directly.

Returns: 0 on success or a negative value otherwise.


xmlSecIOShutdown

void xmlSecIOShutdown(void);

Source: include/xmlsec/io.h

Shuts down the IO subsystem.

The IO cleanup (called from xmlSecShutdown function). Applications should not call this function directly.


xmlSecIOCleanupCallbacks

void xmlSecIOCleanupCallbacks(void);

Source: include/xmlsec/io.h

Clears all input callbacks.

Clears the entire input callback table. this includes the compiled-in I/O.


xmlSecIORegisterDefaultCallbacks

int xmlSecIORegisterDefaultCallbacks(void);

Source: include/xmlsec/io.h

Registers the default compiled-in I/O handlers.

Returns: 0 on success or a negative value otherwise.


xmlSecIORegisterCallbacks

int xmlSecIORegisterCallbacks(xmlInputMatchCallback matchFunc, xmlInputOpenCallback openFunc, xmlInputReadCallback readFunc, xmlInputCloseCallback closeFunc);

Source: include/xmlsec/io.h

Registers I/O callbacks for parser input.

Register a new set of I/O callback for handling parser input.

Parameters:

  • matchFunc — the protocol match callback.
  • openFunc — the open stream callback.
  • readFunc — the read from stream callback.
  • closeFunc — the close stream callback.

Returns: the 0 on success or a negative value if an error occurs.


xmlSecTransformInputURIGetKlass

xmlSecTransformId xmlSecTransformInputURIGetKlass(void);

Source: include/xmlsec/io.h

Gets the input URI transform klass.

The input uri transform klass. Reads binary data from an uri.

Returns: input URI transform id.


xmlSecTransformInputURIOpen

int xmlSecTransformInputURIOpen(xmlSecTransformPtr transform, const xmlChar *uri);

Source: include/xmlsec/io.h

Opens the given uri for reading.

Parameters:

  • transform — the pointer to IO transform.
  • uri — the URL to open.

Returns: 0 on success or a negative value otherwise.


xmlSecTransformInputURIClose

int xmlSecTransformInputURIClose(xmlSecTransformPtr transform);

Source: include/xmlsec/io.h

Closes the given transform.

Closes the given transform and frees up resources.

Parameters:

  • transform — the pointer to IO transform.

Returns: 0 on success or a negative value otherwise.


Clone this wiki locally