diff options
| author | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2011-11-22 16:54:43 +0100 |
|---|---|---|
| committer | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2011-11-22 18:51:12 +0100 |
| commit | 5957f3e230d04703888910bb3fc3ca48afb4acc9 (patch) | |
| tree | 549d49bca4190eca623a55f33810b511ae35faf1 | |
| parent | 26d6b35a498843f66c66d1d1ed1a28189ef15dd2 (diff) | |
[core] add a new class of errors for xml encryption errors
add LASSO_XMLENC_ERROR_INVALID_ENCRYPTED_DATA for generic unrecoverable
xml decryption errors.
| -rw-r--r-- | lasso/errors.c | 2 | ||||
| -rw-r--r-- | lasso/errors.h | 7 |
2 files changed, 9 insertions, 0 deletions
diff --git a/lasso/errors.c b/lasso/errors.c index af772c14..2a38f3dd 100644 --- a/lasso/errors.c +++ b/lasso/errors.c @@ -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: diff --git a/lasso/errors.h b/lasso/errors.h index 8cc114fb..10d91818 100644 --- a/lasso/errors.h +++ b/lasso/errors.h @@ -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 |
