summaryrefslogtreecommitdiffstats
path: root/lasso/id-ff/identity.c
diff options
context:
space:
mode:
authorValery Febvre <vfebvre at easter-eggs.com>2004-07-31 20:34:46 +0000
committerValery Febvre <vfebvre at easter-eggs.com>2004-07-31 20:34:46 +0000
commit0ecf1691ba1f1590b480ee53a6af0c0dbb66424a (patch)
treeb8bee0ef463e7bdb376789c19f5d0d77f2fcb3e9 /lasso/id-ff/identity.c
parented561ce190fb10c4dc35e8c23c39c7292f14e5bc (diff)
downloadlasso-0ecf1691ba1f1590b480ee53a6af0c0dbb66424a.tar.gz
lasso-0ecf1691ba1f1590b480ee53a6af0c0dbb66424a.tar.xz
lasso-0ecf1691ba1f1590b480ee53a6af0c0dbb66424a.zip
Added a new argument 'err' in 4 methods of the LassoNode class:
lasso_node_get_attr lasso_node_get_child lasso_node_get_child_content lasso_node_get_content for reporting errors.
Diffstat (limited to 'lasso/id-ff/identity.c')
-rw-r--r--lasso/id-ff/identity.c19
1 files changed, 12 insertions, 7 deletions
diff --git a/lasso/id-ff/identity.c b/lasso/id-ff/identity.c
index e8ce48b0..1d4c878d 100644
--- a/lasso/id-ff/identity.c
+++ b/lasso/id-ff/identity.c
@@ -378,7 +378,8 @@ lasso_identity_new_from_dump(gchar *dump)
/* federations */
federations_node = lasso_node_get_child(identity_node,
- LASSO_IDENTITY_FEDERATIONS_NODE, NULL);
+ LASSO_IDENTITY_FEDERATIONS_NODE,
+ NULL, NULL);
if (federations_node != NULL) {
federations_class = LASSO_NODE_GET_CLASS(federations_node);
federations_xmlNode = federations_class->get_xmlNode(federations_node);
@@ -403,22 +404,26 @@ lasso_identity_new_from_dump(gchar *dump)
/* local name identifier */
local_nameIdentifier_node = lasso_node_get_child(federation_node,
- LASSO_FEDERATION_LOCAL_NAME_IDENTIFIER_NODE, NULL);
+ LASSO_FEDERATION_LOCAL_NAME_IDENTIFIER_NODE,
+ NULL, NULL);
if (local_nameIdentifier_node != NULL) {
- nameIdentifier_node = lasso_node_get_child(local_nameIdentifier_node, "NameIdentifier", NULL);
+ nameIdentifier_node = lasso_node_get_child(local_nameIdentifier_node, "NameIdentifier",
+ NULL, NULL);
lasso_federation_set_local_nameIdentifier(federation, nameIdentifier_node);
- debug(" ... add local name identifier %s\n", lasso_node_get_content(nameIdentifier_node));
+ debug(" ... add local name identifier %s\n", lasso_node_get_content(nameIdentifier_node, NULL));
lasso_node_destroy(nameIdentifier_node);
lasso_node_destroy(local_nameIdentifier_node);
}
/* remote name identifier */
remote_nameIdentifier_node = lasso_node_get_child(federation_node,
- LASSO_FEDERATION_REMOTE_NAME_IDENTIFIER_NODE, NULL);
+ LASSO_FEDERATION_REMOTE_NAME_IDENTIFIER_NODE,
+ NULL, NULL);
if (remote_nameIdentifier_node != NULL) {
- nameIdentifier_node = lasso_node_get_child(remote_nameIdentifier_node, "NameIdentifier", NULL);
+ nameIdentifier_node = lasso_node_get_child(remote_nameIdentifier_node, "NameIdentifier",
+ NULL, NULL);
lasso_federation_set_remote_nameIdentifier(federation, nameIdentifier_node);
- debug(" ... add remote name identifier %s\n", lasso_node_get_content(nameIdentifier_node));
+ debug(" ... add remote name identifier %s\n", lasso_node_get_content(nameIdentifier_node, NULL));
lasso_node_destroy(nameIdentifier_node);
lasso_node_destroy(remote_nameIdentifier_node);
}