summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorValery Febvre <vfebvre at easter-eggs.com>2004-06-24 10:47:11 +0000
committerValery Febvre <vfebvre at easter-eggs.com>2004-06-24 10:47:11 +0000
commit73ff0f02cab8623ab67bc8626ed7e77df1acd457 (patch)
tree931b8855076790fce5ee5fa311bde5f3fa34f9ca
parent4b568c5471fd442c8e6faf24931393127e79b1d9 (diff)
downloadlasso-73ff0f02cab8623ab67bc8626ed7e77df1acd457.tar.gz
lasso-73ff0f02cab8623ab67bc8626ed7e77df1acd457.tar.xz
lasso-73ff0f02cab8623ab67bc8626ed7e77df1acd457.zip
*** empty log message ***
-rw-r--r--lasso/Attic/protocols/authn_request.c5
-rw-r--r--lasso/Attic/protocols/authn_response.c74
2 files changed, 41 insertions, 38 deletions
diff --git a/lasso/Attic/protocols/authn_request.c b/lasso/Attic/protocols/authn_request.c
index dbd9c9a8..c72e52c8 100644
--- a/lasso/Attic/protocols/authn_request.c
+++ b/lasso/Attic/protocols/authn_request.c
@@ -302,10 +302,11 @@ lasso_authn_request_new_from_query(gchar *query)
lasso_lib_request_authn_context_set_authnContextComparison(LASSO_LIB_REQUEST_AUTHN_CONTEXT(authn_context),
str);
}
- if (authn_context != NULL)
+ if (authn_context != NULL) {
lasso_lib_authn_request_set_requestAuthnContext(LASSO_LIB_AUTHN_REQUEST(request),
LASSO_LIB_REQUEST_AUTHN_CONTEXT(authn_context));
- lasso_node_destroy(authn_context);
+ lasso_node_destroy(authn_context);
+ }
/* RelayState */
str = lasso_g_ptr_array_index((GPtrArray *)g_datalist_get_data(&gd, "RelayState"), 0);
diff --git a/lasso/Attic/protocols/authn_response.c b/lasso/Attic/protocols/authn_response.c
index 8f7d41a8..d8b1ade9 100644
--- a/lasso/Attic/protocols/authn_response.c
+++ b/lasso/Attic/protocols/authn_response.c
@@ -253,42 +253,44 @@ GType lasso_authn_response_get_type() {
/* } */
LassoNode*
-lasso_authn_response_new(char *providerID, LassoNode *request){
- LassoNode *response;
- xmlChar *id, *time, content;
-
- g_return_val_if_fail(providerID != NULL, NULL);
-
- response = LASSO_NODE(g_object_new(LASSO_TYPE_AUTHN_RESPONSE, NULL));
-
- /* ResponseID */
- id = lasso_build_unique_id(32);
- lasso_samlp_response_abstract_set_responseID(LASSO_SAMLP_RESPONSE_ABSTRACT(response),
- (const xmlChar *)id);
- xmlFree(id);
-
- /* MajorVersion */
- lasso_samlp_response_abstract_set_majorVersion(LASSO_SAMLP_RESPONSE_ABSTRACT(response),
- lassoLibMajorVersion);
-
- /* MinorVersion */
- lasso_samlp_response_abstract_set_minorVersion(LASSO_SAMLP_RESPONSE_ABSTRACT(response),
- lassoLibMinorVersion);
-
- /* IssueInstance */
- time = lasso_get_current_time();
- lasso_samlp_response_abstract_set_issueInstance(LASSO_SAMLP_RESPONSE_ABSTRACT(response),
- (const xmlChar *)time);
- xmlFree(time);
-
- /* ProviderID */
- lasso_lib_authn_response_set_providerID(LASSO_LIB_AUTHN_RESPONSE(response),
- providerID);
-
- /* Status Code */
- lasso_authn_response_set_status(response, lassoSamlStatusCodeSuccess);
-
- return(response);
+lasso_authn_response_new(char *providerID,
+ LassoNode *request)
+{
+ LassoNode *response;
+ xmlChar *id, *time, content;
+
+ g_return_val_if_fail(providerID != NULL, NULL);
+
+ response = LASSO_NODE(g_object_new(LASSO_TYPE_AUTHN_RESPONSE, NULL));
+
+ /* ResponseID */
+ id = lasso_build_unique_id(32);
+ lasso_samlp_response_abstract_set_responseID(LASSO_SAMLP_RESPONSE_ABSTRACT(response),
+ (const xmlChar *)id);
+ xmlFree(id);
+
+ /* MajorVersion */
+ lasso_samlp_response_abstract_set_majorVersion(LASSO_SAMLP_RESPONSE_ABSTRACT(response),
+ lassoLibMajorVersion);
+
+ /* MinorVersion */
+ lasso_samlp_response_abstract_set_minorVersion(LASSO_SAMLP_RESPONSE_ABSTRACT(response),
+ lassoLibMinorVersion);
+
+ /* IssueInstance */
+ time = lasso_get_current_time();
+ lasso_samlp_response_abstract_set_issueInstance(LASSO_SAMLP_RESPONSE_ABSTRACT(response),
+ (const xmlChar *)time);
+ xmlFree(time);
+
+ /* ProviderID */
+ lasso_lib_authn_response_set_providerID(LASSO_LIB_AUTHN_RESPONSE(response),
+ providerID);
+
+ /* Status Code */
+ //lasso_authn_response_set_status(response, lassoSamlStatusCodeSuccess);
+
+ return(response);
}
LassoNode*