[core] add a new class of errors for xml encryption errors

add LASSO_XMLENC_ERROR_INVALID_ENCRYPTED_DATA for generic unrecoverable
xml decryption errors.
This commit is contained in:
Benjamin Dauvergne 2011-11-22 16:54:43 +01:00
parent 26d6b35a49
commit 5957f3e230
2 changed files with 9 additions and 0 deletions

View File

@ -359,6 +359,8 @@ lasso_strerror(int error_code)
return "The known password does not match the UsernameToken";
case LASSO_WSSEC_ERROR_MISSING_SECURITY_TOKEN:
return "The request miss a WS-Security token.";
case LASSO_XMLENC_ERROR_INVALID_ENCRYPTED_DATA:
return "The EncryptedData node is invalid, look at the logs.";
case LASSO_XML_ERROR_ATTR_NOT_FOUND:
return "Unable to get attribute of element.";
case LASSO_XML_ERROR_ATTR_VALUE_NOT_FOUND:

View File

@ -1076,3 +1076,10 @@ LASSO_EXPORT const char* lasso_strerror(int error_code);
* The current assertion query does not contain an attribute query.
*/
#define LASSO_ASSERTION_QUERY_ERROR_NOT_AN_ATTRIBUTE_QUERY 1902
/**
* LASSO_XMLENC_ERROR_INVALID_ENCRYPTED_DATA
*
* The EncryptedData node is invalid, look at the logs.
*/
#define LASSO_XMLENC_ERROR_INVALID_ENCRYPTED_DATA -2001