diff options
author | Frederic Peters <fpeters@entrouvert.com> | 2004-12-16 14:04:43 +0000 |
---|---|---|
committer | Frederic Peters <fpeters@entrouvert.com> | 2004-12-16 14:04:43 +0000 |
commit | 76ec7eb692476075c9ab2649f8612479ed5df0f5 (patch) | |
tree | 46ad31e6810679215c6cbc2577faca952040f7b0 /lasso/xml/errors.c | |
parent | f5471b3acf9069cba291593e21f77705299d3b7e (diff) | |
download | lasso-76ec7eb692476075c9ab2649f8612479ed5df0f5.tar.gz lasso-76ec7eb692476075c9ab2649f8612479ed5df0f5.tar.xz lasso-76ec7eb692476075c9ab2649f8612479ed5df0f5.zip |
(almost) done with errors in ID-FF; remaining "return -1" have been converted
to LASSO_ERROR_UNDEFINED (there are forty-three of them).
LASSO_ERROR_UNDEFINED was redefined from -999 to -1 so it is easier to add new
sequences of errros.
Diffstat (limited to 'lasso/xml/errors.c')
-rw-r--r-- | lasso/xml/errors.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lasso/xml/errors.c b/lasso/xml/errors.c index e43a7974..9a938677 100644 --- a/lasso/xml/errors.c +++ b/lasso/xml/errors.c @@ -97,6 +97,18 @@ lasso_strerror(int error_code) return "Name identifier not found"; case LASSO_PROFILE_ERROR_BUILDING_QUERY_FAILED: return "Error building request QUERY url"; + case LASSO_PROFILE_ERROR_BUILDING_REQUEST_FAILED: + return "Error building request object"; + case LASSO_PROFILE_ERROR_BUILDING_MESSAGE_FAILED: + return "Error building request message"; + case LASSO_PROFILE_ERROR_BUILDING_RESPONSE_FAILED: + return "Error building response object"; + case LASSO_PROFILE_ERROR_SESSION_NOT_FOUND: + return "Session not found"; + case LASSO_PROFILE_ERROR_BAD_IDENTITY_DUMP: + return "Failed to create identity from dump"; + case LASSO_PROFILE_ERROR_BAD_SESSION_DUMP: + return "Failed to create session from dump"; case LASSO_PARAM_ERROR_BAD_TYPE_OR_NULL_OBJ: return "An object type provided as parameter "\ @@ -106,8 +118,13 @@ lasso_strerror(int error_code) case LASSO_PARAM_ERROR_CHECK_FAILED: return "The error return location should be "\ "either NULL or contains a NULL error."; + case LASSO_LOGIN_ERROR_INVALID_NAMEIDPOLICY: return "Invalid NameIDPolicy in lib:AuthnRequest: %s"; + + case LASSO_DEFEDERATION_ERROR_MISSING_NAME_IDENTIFIER: + return "Name identifier not found in request"; + default: return g_strdup_printf("Undefined error code %d.", error_code); } |