diff options
| author | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2010-01-14 16:18:28 +0000 |
|---|---|---|
| committer | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2010-01-14 16:18:28 +0000 |
| commit | 9d544c49d0610e421bf269cccc71e720a53eccde (patch) | |
| tree | d3d3e7df12785cf1fdb8a67e74168df6652a577f | |
| parent | 869768bc359a180a4542a158d054e2669cb63f06 (diff) | |
| download | lasso-9d544c49d0610e421bf269cccc71e720a53eccde.tar.gz lasso-9d544c49d0610e421bf269cccc71e720a53eccde.tar.xz lasso-9d544c49d0610e421bf269cccc71e720a53eccde.zip | |
SAML 2.0: report missing request when creating artifact resolve response, fix typo in lasso_saml20_profile_build_post_response_msg
| -rw-r--r-- | lasso/saml-2.0/profile.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lasso/saml-2.0/profile.c b/lasso/saml-2.0/profile.c index 55406b30..2c54d8db 100644 --- a/lasso/saml-2.0/profile.c +++ b/lasso/saml-2.0/profile.c @@ -367,6 +367,9 @@ lasso_saml20_profile_build_artifact_response(LassoProfile *profile) LassoNode *resp = NULL; int rc = 0; + if ( ! LASSO_IS_SAMLP2_REQUEST_ABSTRACT(profile->request)) { + return LASSO_PROFILE_ERROR_MISSING_REQUEST; + } response = LASSO_SAMLP2_STATUS_RESPONSE(lasso_samlp2_artifact_response_new()); if (profile->private_data->artifact_message) { resp = lasso_node_new_from_dump(profile->private_data->artifact_message); @@ -1098,7 +1101,7 @@ static int lasso_saml20_profile_build_post_response_msg(LassoProfile *profile, const char *url) { lasso_assign_string(profile->msg_url, url); - lasso_assign_new_string(profile->msg_body, lasso_node_export_to_base64(profile->request)); + lasso_assign_new_string(profile->msg_body, lasso_node_export_to_base64(profile->response)); check_msg_body; return 0; } |
