XML Security Library Reference Manual | |||
---|---|---|---|
<<< Previous Page | Home | Up | Next Page >>> |
All errors are reported to application provided callback function.
The default callback function reports an error to OpenSSL using
#define XMLSEC_ERRORS_LIB (ERR_LIB_USER + 57) |
Macro. The XMLSec library id for OpenSSL errors reporting functions.
#define XMLSEC_ERRORS_FUNCTION 0 |
Macro. The XMLSec library functions OpenSSL errors reporting functions.
#define XMLSEC_ERRORS_R_MALLOC_FAILED 1 |
Failed to allocate memory error.
#define XMLSEC_ERRORS_R_CRYPTO_FAILED 3 |
Crypto (OpenSSL) function failed.
#define XMLSEC_ERRORS_R_INVALID_TRANSFORM_DATA 11 |
Invlaid transform data.
#define XMLSEC_ERRORS_R_INVALID_TRANSFORM_OR_KEY 12 |
Invalid transform or key.
#define XMLSEC_ERRORS_R_INVALID_NODE_CONTENT 25 |
Invalid node content.
#define XMLSEC_ERRORS_R_INVALID_NODE_ATTRIBUTE 26 |
Invalid node attribute.
#define XMLSEC_ERRORS_R_NODE_ALREADY_PRESENT 27 |
Node already present,
#define XMLSEC_ERRORS_R_SAME_DOCUMENT_REQUIRED 28 |
The transform requires the same document.
#define XMLSEC_ERRORS_R_MAX_RETRIEVALS_LEVEL 30 |
Max allowed retrievals level reached.
#define XMLSEC_ERRORS_R_CERT_VERIFY_FAILED 31 |
Certificate verification failed.
#define XMLSEC_ERRORS_R_CERT_NOT_FOUND 32 |
Requested certificate is not found.
#define XMLSEC_ERRORS_R_DSIG_INVALID_REFERENCE 34 |
The <dsig:Reference> validation failed.
#define XMLSEC_ERRORS_R_DISABLED 101 |
The feature is disabled during compilation. Check './configure --help' for details on how to enable it.
void (*xmlSecErrorsCallback) (const char *file, int line, const char *func, int reason, const char *msg); |
The errors reporting callback function typedef.
void xmlSecErrorsInit (void); |
Initializes the errors reporting. It is called from xmlSecInit() function. and applications must not call this function directly.
void xmlSecErrorsShutdown (void); |
Cleanups the errors reporting. It is called from xmlSecShutdown() function. and applications must not call this function directly.
void xmlSecErrorsSetCallback (xmlSecErrorsCallback callback); |
Sets the errors callback function callback that will be called every time an error occurs.
extern int xmlSecPrintErrorMessages; |
The flag that determines whether the error message will be printed out immidiatelly. For default errors reporting callback, this flag determines whether the error is reported to LibXML library or not.
#define XMLSEC_ERRORS_HERE __FILE__,__LINE__,__FUNCTION__ |
The macro that specifies the location (file, line and function) for the xmlSecError() function.
void xmlSecError (const char *file, int line, const char *func, int reason, const char *msg, ...); |
Reports an error.