| xmlsecxmlsec — Utility functions. |  | 
Stability Level
Stable, unless otherwise indicated
 
Functions
XMLSEC_SIZE_BAD_CAST()
#define XMLSEC_SIZE_BAD_CAST(val)               ((xmlSecSize)(val))
Bad cast to xmlSecSize
 
xmlSecInit ()
int
xmlSecInit (void);
Initializes XML Security Library. The depended libraries
(LibXML and LibXSLT) must be initialized before.
Returns
 0 on success or a negative value otherwise.
 
 
xmlSecShutdown ()
int
xmlSecShutdown (void);
Gets the default crypto engine ("openssl", "nss", etc.) for the XML Security Library.
Returns
 the default crypto engine ("openssl", "nss", etc.).
 
 
xmlSecGetDefaultCrypto ()
const xmlChar *
xmlSecGetDefaultCrypto (void);
 
xmlSecSetExternalEntityLoader ()
void
xmlSecSetExternalEntityLoader (xmlExternalEntityLoader Param1);
 
xmlSecCheckVersionExact
#define             xmlSecCheckVersionExact()
Macro. Returns 1 if the loaded xmlsec library version exactly matches
the one used to compile the caller, 0 if it does not or a negative
value if an error occurs.
 
xmlSecCheckVersion
#define             xmlSecCheckVersion()
Macro. Returns 1 if the loaded xmlsec library version ABI compatible with
the one used to compile the caller, 0 if it does not or a negative
value if an error occurs.
 
xmlSecCheckVersionExt ()
int
xmlSecCheckVersionExt (int major,
                       int minor,
                       int subminor,
                       xmlSecCheckVersionMode mode);
Checks if the loaded version of xmlsec library could be used.
Returns
 1 if the loaded xmlsec library version is OK to use
0 if it is not or a negative value if an error occurs.
 
 
 
Types and Values
xmlSecPtr
typedef void*                                   xmlSecPtr;
Void pointer.
 
xmlSecSize
#define xmlSecSize                              unsigned int
Size of something. Should be typedef instead of define
but it will break ABI (todo).
 
xmlSecByte
#define xmlSecByte                              unsigned char
One byte. Should be typedef instead of define
but it will break ABI (todo).
 
XMLSEC_CRYPTO
#define XMLSEC_CRYPTO                          (xmlSecGetDefaultCrypto())
Macro. Deprecated. Defined for backward compatibility only. Do not use
in your code and use xmlSecGetDefaultCrypto() function instead.
Returns the default crypto engine.
 
XMLSEC_DEPRECATED
#define XMLSEC_DEPRECATED __attribute__((deprecated))
 
enum xmlSecCheckVersionMode
The xmlsec library version mode.