diff options
author | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2010-09-03 17:48:11 +0200 |
---|---|---|
committer | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2010-09-03 19:02:42 +0200 |
commit | f245907b8ce8bc216d4f68eae215049dfde0ef2d (patch) | |
tree | 65d8642be4ae85365807e1fc3df823ec975a929a /lasso | |
parent | 4178cbef13b2fbb2feb0f9c8ca6d691ffc060b2d (diff) | |
download | lasso-f245907b8ce8bc216d4f68eae215049dfde0ef2d.tar.gz lasso-f245907b8ce8bc216d4f68eae215049dfde0ef2d.tar.xz lasso-f245907b8ce8bc216d4f68eae215049dfde0ef2d.zip |
[SAMLv2] when failing to recreate the content for the ArtefactResponse set a lasso specific status code
Diffstat (limited to 'lasso')
-rw-r--r-- | lasso/saml-2.0/profile.c | 3 | ||||
-rw-r--r-- | lasso/xml/strings.h | 7 |
2 files changed, 9 insertions, 1 deletions
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 */ /*****************************************************************************/ |