summaryrefslogtreecommitdiffstats
path: root/lasso/xml
diff options
context:
space:
mode:
authorFrederic Peters <fpeters@entrouvert.com>2004-12-15 10:07:09 +0000
committerFrederic Peters <fpeters@entrouvert.com>2004-12-15 10:07:09 +0000
commit501da6b2b6ccdc9413c416d6ea5cb6541b648070 (patch)
tree87af31742c9f692e6609eb8d56d7f315823a7c18 /lasso/xml
parent3ee382c5c621ee3859830c9eeefba8bc48f6cb95 (diff)
downloadlasso-501da6b2b6ccdc9413c416d6ea5cb6541b648070.tar.gz
lasso-501da6b2b6ccdc9413c416d6ea5cb6541b648070.tar.xz
lasso-501da6b2b6ccdc9413c416d6ea5cb6541b648070.zip
coherent error handling for "identity not found" and "federation not found"
cases.
Diffstat (limited to 'lasso/xml')
-rw-r--r--lasso/xml/errors.c4
-rw-r--r--lasso/xml/errors.h4
2 files changed, 7 insertions, 1 deletions
diff --git a/lasso/xml/errors.c b/lasso/xml/errors.c
index 2ba1f268..ec6a76de 100644
--- a/lasso/xml/errors.c
+++ b/lasso/xml/errors.c
@@ -89,6 +89,10 @@ lasso_strerror(int error_code)
return "Unsupported protocol profile";
case LASSO_PROFILE_ERROR_UNKNOWN_PROFILE_URL:
return "Unable to find Profile URL in metadata";
+ case LASSO_PROFILE_ERROR_IDENTITY_NOT_FOUND:
+ return "Identity not found";
+ case LASSO_PROFILE_ERROR_FEDERATION_NOT_FOUND:
+ return "Federation not found";
case LASSO_PARAM_ERROR_BAD_TYPE_OR_NULL_OBJ:
return "An object type provided as parameter "\
diff --git a/lasso/xml/errors.h b/lasso/xml/errors.h
index bd63d334..45d335d6 100644
--- a/lasso/xml/errors.h
+++ b/lasso/xml/errors.h
@@ -66,13 +66,15 @@
#define LASSO_PROFILE_ERROR_MISSING_REMOTE_PROVIDERID -408
#define LASSO_PROFILE_ERROR_UNSUPPORTED_PROFILE -409
#define LASSO_PROFILE_ERROR_UNKNOWN_PROFILE_URL -410
+#define LASSO_PROFILE_ERROR_IDENTITY_NOT_FOUND -411
+#define LASSO_PROFILE_ERROR_FEDERATION_NOT_FOUND -412
/* functions/methods parameters checking */
#define LASSO_PARAM_ERROR_BAD_TYPE_OR_NULL_OBJ -501
#define LASSO_PARAM_ERROR_INVALID_VALUE -502
#define LASSO_PARAM_ERROR_CHECK_FAILED -503
-/* login */
+/* Single Sign-On */
#define LASSO_LOGIN_ERROR_FEDERATION_NOT_FOUND 601
#define LASSO_LOGIN_ERROR_CONSENT_NOT_OBTAINED 602
#define LASSO_LOGIN_ERROR_INVALID_NAMEIDPOLICY -603