From f245907b8ce8bc216d4f68eae215049dfde0ef2d Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Fri, 3 Sep 2010 17:48:11 +0200 Subject: [SAMLv2] when failing to recreate the content for the ArtefactResponse set a lasso specific status code --- lasso/saml-2.0/profile.c | 3 ++- lasso/xml/strings.h | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/lasso/saml-2.0/profile.c b/lasso/saml-2.0/profile.c index 507a35b5..98698762 100644 --- a/lasso/saml-2.0/profile.c +++ b/lasso/saml-2.0/profile.c @@ -413,7 +413,8 @@ lasso_saml20_profile_build_artifact_response(LassoProfile *profile) LASSO_SAML2_STATUS_CODE_SUCCESS, NULL); } else { lasso_saml20_profile_set_response_status(profile, - LASSO_SAML2_STATUS_CODE_REQUESTER, NULL); + LASSO_SAML2_STATUS_CODE_RESPONDER, + LASSO_PRIVATE_STATUS_CODE_FAILED_TO_RESTORE_ARTIFACT); } } /* Setup the signature */ diff --git a/lasso/xml/strings.h b/lasso/xml/strings.h index 097eac7d..e3610316 100644 --- a/lasso/xml/strings.h +++ b/lasso/xml/strings.h @@ -107,6 +107,13 @@ */ #define LASSO_SOAP_FAULT_CODE_VERSION_MISMATCH "s:VersionMismatch" +/** + * LASSO_PRIVATE_STATUS_CODE_FAILED_TO_RESTORE_ARTIFACT: + * + * An artifact content is present but Lasso failed to rebuild the corresponding XML content. + */ +#define LASSO_PRIVATE_STATUS_CODE_FAILED_TO_RESTORE_ARTIFACT "FailedToRestoreArtifact" + /*****************************************************************************/ /* Lasso */ /*****************************************************************************/ -- cgit