summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorValery Febvre <vfebvre at easter-eggs.com>2004-08-04 13:44:49 +0000
committerValery Febvre <vfebvre at easter-eggs.com>2004-08-04 13:44:49 +0000
commit7659cf3f8d5e6b73089db3ab7e6cdda76868846a (patch)
tree51f253ddc511bc4b40b0c09f4abce2e13a0c02de
parentb61789d2020cf9c40953acc35a85f4747f3e9954 (diff)
downloadlasso-7659cf3f8d5e6b73089db3ab7e6cdda76868846a.tar.gz
lasso-7659cf3f8d5e6b73089db3ab7e6cdda76868846a.tar.xz
lasso-7659cf3f8d5e6b73089db3ab7e6cdda76868846a.zip
Added the SOAP export type in lasso_authn_request_new_from_export()
-rw-r--r--lasso/Attic/protocols/authn_request.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/lasso/Attic/protocols/authn_request.c b/lasso/Attic/protocols/authn_request.c
index 2e80a3ff..9c99f24e 100644
--- a/lasso/Attic/protocols/authn_request.c
+++ b/lasso/Attic/protocols/authn_request.c
@@ -186,8 +186,9 @@ lasso_authn_request_new_from_export(gchar *buffer,
lassoNodeExportType export_type)
{
LassoNode *request=NULL, *authn_context=NULL, *scoping;
+ LassoNode *request_node, *soap_node;
GData *gd;
- xmlChar *str;
+ xmlChar *str, *export;
GPtrArray *array;
gint i;
@@ -346,7 +347,15 @@ lasso_authn_request_new_from_export(gchar *buffer,
case lassoNodeExportTypeBase64:
break;
case lassoNodeExportTypeSoap:
- break; /* XXX */
+ soap_node = lasso_node_new_from_dump(buffer);
+ request_node = lasso_node_get_child(soap_node, "AuthnRequest",
+ lassoLibHRef, NULL);
+ export = lasso_node_export(request_node);
+ lasso_node_import(request, export);
+ xmlFree(export);
+ lasso_node_destroy(request_node);
+ lasso_node_destroy(soap_node);
+ break;
}
return (request);