diff options
author | Nicolas Clapies <nclapies@entrouvert.com> | 2004-04-27 14:54:39 +0000 |
---|---|---|
committer | Nicolas Clapies <nclapies@entrouvert.com> | 2004-04-27 14:54:39 +0000 |
commit | 340881c5858f1a3debbb8c7ec1fd592428911b8b (patch) | |
tree | ff87dcf1e7a3af9fe8e86ba69d788eac82626bcf /lasso/Attic/protocols/register_name_identifier_response.c | |
parent | 7d5c442cc20fd40ea4784682c24fd4f8945b63a0 (diff) | |
download | lasso-340881c5858f1a3debbb8c7ec1fd592428911b8b.tar.gz lasso-340881c5858f1a3debbb8c7ec1fd592428911b8b.tar.xz lasso-340881c5858f1a3debbb8c7ec1fd592428911b8b.zip |
add optional element RelayState
Diffstat (limited to 'lasso/Attic/protocols/register_name_identifier_response.c')
-rw-r--r-- | lasso/Attic/protocols/register_name_identifier_response.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lasso/Attic/protocols/register_name_identifier_response.c b/lasso/Attic/protocols/register_name_identifier_response.c index 255b34f7..d0c0c348 100644 --- a/lasso/Attic/protocols/register_name_identifier_response.c +++ b/lasso/Attic/protocols/register_name_identifier_response.c @@ -72,7 +72,7 @@ lasso_register_name_identifier_response_new(const xmlChar *providerID, LassoNode *request) { LassoNode *response, *ss, *ssc; - xmlChar *inResponseTo, *recipient; + xmlChar *inResponseTo, *recipient, *relayState; response = LASSO_NODE(g_object_new(LASSO_TYPE_REGISTER_NAME_IDENTIFIER_RESPONSE, NULL)); @@ -102,6 +102,11 @@ lasso_register_name_identifier_response_new(const xmlChar *providerID, lasso_samlp_response_abstract_set_recipient(LASSO_SAMLP_RESPONSE_ABSTRACT(response), recipient); + relayState = lasso_node_get_content(lasso_node_get_child(request, "RelayState")); + if(relayState!=NULL) + lasso_lib_status_response_set_relayState(LASSO_LIB_STATUS_RESPONSE(response), + relayState); + ss = lasso_samlp_status_new(); ssc = lasso_samlp_status_code_new(); lasso_samlp_status_code_set_value(LASSO_SAMLP_STATUS_CODE(ssc), statusCodeValue); |