From 7659cf3f8d5e6b73089db3ab7e6cdda76868846a Mon Sep 17 00:00:00 2001 From: Valery Febvre Date: Wed, 4 Aug 2004 13:44:49 +0000 Subject: Added the SOAP export type in lasso_authn_request_new_from_export() --- lasso/Attic/protocols/authn_request.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'lasso') 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); -- cgit