summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2011-04-21 11:01:36 +0200
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2011-04-21 11:01:36 +0200
commitebd9266cb58f78d9647d76a9b8436ae58ce7fa14 (patch)
treebeaca8b67f2390c3c12217941d06daadb5968bf5
parent3c260bfe4a97d659f9b6a5a06a9a4cac2150cb8e (diff)
downloadlasso-ebd9266cb58f78d9647d76a9b8436ae58ce7fa14.tar.gz
lasso-ebd9266cb58f78d9647d76a9b8436ae58ce7fa14.tar.xz
lasso-ebd9266cb58f78d9647d76a9b8436ae58ce7fa14.zip
[core] add a generic LASSO_PROFILE_ERROR_REQUEST_DENIED
-rw-r--r--lasso/errors.c2
-rw-r--r--lasso/errors.h8
2 files changed, 9 insertions, 1 deletions
diff --git a/lasso/errors.c b/lasso/errors.c
index 69556c10..6ee5cc13 100644
--- a/lasso/errors.c
+++ b/lasso/errors.c
@@ -275,6 +275,8 @@ lasso_strerror(int error_code)
return "Missing subject";
case LASSO_PROFILE_ERROR_NAME_IDENTIFIER_NOT_FOUND:
return "Name identifier not found";
+ case LASSO_PROFILE_ERROR_REQUEST_DENIED:
+ return "Generic error when an IdP or an SP return the RequestDenied status code in its response.";
case LASSO_PROFILE_ERROR_RESPONSE_DOES_NOT_MATCH_REQUEST:
return "Received response does not refer to the request sent";
case LASSO_PROFILE_ERROR_SESSION_NOT_FOUND:
diff --git a/lasso/errors.h b/lasso/errors.h
index 1e4b24fa..a0f2a22e 100644
--- a/lasso/errors.h
+++ b/lasso/errors.h
@@ -597,7 +597,13 @@ LASSO_EXPORT const char* lasso_strerror(int error_code);
* The issuer of an assertion is not considered as an IdP
*/
#define LASSO_PROFILE_ERROR_ISSUER_IS_NOT_AN_IDP 449
-
+/**
+ * LASSO_PROFILE_ERROR_REQUEST_DENIED:
+ *
+ * Generic error when an IdP or an SP return the RequestDenied status code in its response.
+ *
+ */
+#define LASSO_PROFILE_ERROR_REQUEST_DENIED 450
/* functions/methods parameters checking */
/**