Top |
void | (*xmlSecErrorsCallback) () |
void | xmlSecErrorsInit () |
void | xmlSecErrorsShutdown () |
void | xmlSecErrorsSetCallback () |
void | xmlSecErrorsDefaultCallback () |
void | xmlSecErrorsDefaultCallbackEnableOutput () |
int | xmlSecErrorsGetCode () |
const char * | xmlSecErrorsGetMsg () |
#define | xmlSecErrorsSafeString() |
void | xmlSecError () |
#define | xmlSecAssert() |
#define | xmlSecAssert2() |
void (*xmlSecErrorsCallback) (const char *file
,int line
,const char *func
,const char *errorObject
,const char *errorSubject
,int reason
,const char *msg
);
The errors reporting callback function.
file |
the error location file name (__FILE__ macro). |
|
line |
the error location line number (__LINE__ macro). |
|
func |
the error location function name (__func__ macro). |
|
errorObject |
the error specific error object |
|
errorSubject |
the error specific error subject. |
|
reason |
the error code. |
|
msg |
the additional error message. |
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 to callback
that will be called
every time an error occurs.
void xmlSecErrorsDefaultCallback (const char *file
,int line
,const char *func
,const char *errorObject
,const char *errorSubject
,int reason
,const char *msg
);
The default error reporting callback that utilizes LibXML error reporting xmlGenericError function.
file |
the error location file name (__FILE__ macro). |
|
line |
the error location line number (__LINE__ macro). |
|
func |
the error location function name (__FUNCTION__ macro). |
|
errorObject |
the error specific error object |
|
errorSubject |
the error specific error subject. |
|
reason |
the error code. |
|
msg |
the additional error message. |
void
xmlSecErrorsDefaultCallbackEnableOutput
(int enabled
);
Enables or disables calling LibXML2 callback from the default errors callback.
int
xmlSecErrorsGetCode (xmlSecSize pos
);
Gets the known error code at position pos
.
const char *
xmlSecErrorsGetMsg (xmlSecSize pos
);
Gets the known error message at position pos
.
#define xmlSecErrorsSafeString(str)
Macro. Returns str
if it is not NULL or pointer to "NULL" otherwise.
void xmlSecError (const char *file
,int line
,const char *func
,const char *errorObject
,const char *errorSubject
,int reason
,const char *msg
,...
);
Reports an error to the default (xmlSecErrorsDefaultCallback) or application specific callback installed using xmlSecErrorsSetCallback function.
file |
the error location filename (__FILE__). |
|
line |
the error location line number (__LINE__). |
|
func |
the error location function (__FUNCTION__). |
|
errorObject |
the error specific error object (e.g. transform, key data, etc). |
|
errorSubject |
the error specific error subject (e.g. failed function name). |
|
reason |
the error code. |
|
msg |
the error message in printf format. |
|
... |
the parameters for the |
#define xmlSecAssert( p )
Macro. Verifies that p
is true and calls return()
otherwise.
#define XMLSEC_ERRORS_R_MALLOC_FAILED 2
Failed to allocate memory error.
#define XMLSEC_ERRORS_R_STRDUP_FAILED 3
Failed to duplicate string error.
#define XMLSEC_ERRORS_R_CRYPTO_FAILED 4
Crypto (e.g. OpenSSL) function failed.
#define XMLSEC_ERRORS_R_DISABLED 8
The feature is disabled during compilation. Check './configure --help' for details on how to enable it.
#define XMLSEC_ERRORS_R_NOT_IMPLEMENTED 9
Feature is not implemented.
#define XMLSEC_ERRORS_R_INVALID_CONFIG 10
The configuration is invalid.
#define XMLSEC_ERRORS_R_DATA_NOT_MATCH 18
The data do not match our expectation.
#define XMLSEC_ERRORS_R_INVALID_NODE_CONTENT 22
Invalid node content.
#define XMLSEC_ERRORS_R_INVALID_NODE_ATTRIBUTE 23
Invalid node attribute.
#define XMLSEC_ERRORS_R_MISSING_NODE_ATTRIBUTE 25
Missing node attribute.
#define XMLSEC_ERRORS_R_NODE_ALREADY_PRESENT 26
Node already present,
#define XMLSEC_ERRORS_R_INVALID_TRANSFORM 31
This transform is invalid.
#define XMLSEC_ERRORS_R_INVALID_TRANSFORM_KEY 32
Key is invalid for this transform.
#define XMLSEC_ERRORS_R_TRANSFORM_SAME_DOCUMENT_REQUIRED 34
The transform requires the input document to be the same as context.
#define XMLSEC_ERRORS_R_TRANSFORM_DISABLED 35
The transform is disabled.
#define XMLSEC_ERRORS_R_KEY_DATA_ALREADY_EXIST 43
The key data is already exist.
#define XMLSEC_ERRORS_R_INVALID_KEY_DATA_SIZE 44
Invalid key size.
#define XMLSEC_ERRORS_R_KEYDATA_DISABLED 46
The key data type disabled.
#define XMLSEC_ERRORS_R_MAX_RETRIEVALS_LEVEL 51
Max allowed retrievals level reached.
#define XMLSEC_ERRORS_R_MAX_RETRIEVAL_TYPE_MISMATCH 52
The retrieved key data type does not match the one specified in the <dsig:RetrievalMethod/> node.
#define XMLSEC_ERRORS_R_MAX_ENCKEY_LEVEL 61
Max EncryptedKey level reached.
#define XMLSEC_ERRORS_R_CERT_VERIFY_FAILED 71
Certificate verification failed.
#define XMLSEC_ERRORS_R_CERT_NOT_FOUND 72
Requested certificate is not found.
#define XMLSEC_ERRORS_R_CERT_ISSUER_FAILED 74
Failed to get certificate issuer.
#define XMLSEC_ERRORS_R_CERT_NOT_YET_VALID 75
"Not valid before" verification failed.
#define XMLSEC_ERRORS_R_CERT_HAS_EXPIRED 76
"Not valid after" verification failed.
#define XMLSEC_ERRORS_R_DSIG_NO_REFERENCES 81
The <dsig:Reference/> nodes not found.
#define XMLSEC_ERRORS_R_DSIG_INVALID_REFERENCE 82
The <dsig:Reference/> validation failed.
#define XMLSEC_ERRORS_HERE __FILE__,__LINE__,__XMLSEC_FUNCTION__
The macro that specifies the location (file, line and function)
for the xmlSecError()
function.