summaryrefslogtreecommitdiffstats
path: root/lasso/xml/saml_subject_confirmation.c
diff options
context:
space:
mode:
authorFrederic Peters <fpeters@entrouvert.com>2004-11-09 09:08:47 +0000
committerFrederic Peters <fpeters@entrouvert.com>2004-11-09 09:08:47 +0000
commit07e1b7c04f5d623fd624640dffe9ce2a02030422 (patch)
tree9075164bfd0aa136f8a12a8134728420cf60174c /lasso/xml/saml_subject_confirmation.c
parent9f1fa16723b0a8f34433b010f4669618e128d0cc (diff)
downloadlasso-07e1b7c04f5d623fd624640dffe9ce2a02030422.tar.gz
lasso-07e1b7c04f5d623fd624640dffe9ce2a02030422.tar.xz
lasso-07e1b7c04f5d623fd624640dffe9ce2a02030422.zip
return value on init_from_xml; and minor tweaks to code style
Diffstat (limited to 'lasso/xml/saml_subject_confirmation.c')
-rw-r--r--lasso/xml/saml_subject_confirmation.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/lasso/xml/saml_subject_confirmation.c b/lasso/xml/saml_subject_confirmation.c
index a30c5d81..86dc9759 100644
--- a/lasso/xml/saml_subject_confirmation.c
+++ b/lasso/xml/saml_subject_confirmation.c
@@ -64,13 +64,15 @@ get_xmlNode(LassoNode *node)
return xmlnode;
}
-static void
+static int
init_from_xml(LassoNode *node, xmlNode *xmlnode)
{
xmlNode *t;
LassoSamlSubjectConfirmation *confirm = LASSO_SAML_SUBJECT_CONFIRMATION(node);
- parent_class->init_from_xml(node, xmlnode);
+ if (parent_class->init_from_xml(node, xmlnode))
+ return -1;
+
t = xmlnode->children;
while (t) {
if (t->type != XML_ELEMENT_NODE) {
@@ -84,6 +86,7 @@ init_from_xml(LassoNode *node, xmlNode *xmlnode)
confirm->SubjectConfirmationData = xmlNodeGetContent(t);
t = t->next;
}
+ return 0;
}