summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2013-09-08 23:38:33 +0200
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2013-09-08 23:38:33 +0200
commit3dc786380a4f93e583798d0fae2de1a7c5218d70 (patch)
tree0254487731addde9be1dc105d43da6131eca2744
parent4799770a0d26a8ebb821d52f491d76a7c5b84544 (diff)
downloadlasso-3dc786380a4f93e583798d0fae2de1a7c5218d70.tar.gz
lasso-3dc786380a4f93e583798d0fae2de1a7c5218d70.tar.xz
lasso-3dc786380a4f93e583798d0fae2de1a7c5218d70.zip
errors.{c,h}: add new error LASSO_PROFILE_ERROR_ENDPOINT_INDEX_NOT_FOUND for reporting when a recevied artifact does match any declared endpoint
-rw-r--r--lasso/errors.c2
-rw-r--r--lasso/errors.h7
2 files changed, 9 insertions, 0 deletions
diff --git a/lasso/errors.c b/lasso/errors.c
index b35b546d..778c6e3c 100644
--- a/lasso/errors.c
+++ b/lasso/errors.c
@@ -211,6 +211,8 @@ lasso_strerror(int error_code)
return "Profile was called without a specific provider and we cannot find one.";
case LASSO_PROFILE_ERROR_CANNOT_VERIFY_SIGNATURE:
return "The profile cannot verify a signature on the message";
+ case LASSO_PROFILE_ERROR_ENDPOINT_INDEX_NOT_FOUND:
+ return "A received artifact contains an andpoint index which does not exist in the metadata of the corresponding provider.";
case LASSO_PROFILE_ERROR_FEDERATION_NOT_FOUND:
return "Federation not found";
case LASSO_PROFILE_ERROR_IDENTITY_NOT_FOUND:
diff --git a/lasso/errors.h b/lasso/errors.h
index 5537e9e9..ae801be0 100644
--- a/lasso/errors.h
+++ b/lasso/errors.h
@@ -610,6 +610,13 @@ LASSO_EXPORT const char* lasso_strerror(int error_code);
*
*/
#define LASSO_PROFILE_ERROR_REQUEST_DENIED 450
+/**
+ * LASSO_PROFILE_ERROR_ENDPOINT_INDEX_NOT_FOUND
+ *
+ * A received artifact contains an andpoint index which does not exist in the metadata of the
+ * corresponding provider.
+ */
+#define LASSO_PROFILE_ERROR_ENDPOINT_INDEX_NOT_FOUND 451
/* functions/methods parameters checking */
/**