diff options
author | Valery Febvre <vfebvre at easter-eggs.com> | 2004-08-04 13:44:49 +0000 |
---|---|---|
committer | Valery Febvre <vfebvre at easter-eggs.com> | 2004-08-04 13:44:49 +0000 |
commit | 7659cf3f8d5e6b73089db3ab7e6cdda76868846a (patch) | |
tree | 51f253ddc511bc4b40b0c09f4abce2e13a0c02de | |
parent | b61789d2020cf9c40953acc35a85f4747f3e9954 (diff) | |
download | lasso-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.c | 13 |
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); |