summaryrefslogtreecommitdiffstats
path: root/lasso/xml/lib_authentication_statement.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/lib_authentication_statement.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/lib_authentication_statement.c')
-rw-r--r--lasso/xml/lib_authentication_statement.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/lasso/xml/lib_authentication_statement.c b/lasso/xml/lib_authentication_statement.c
index 25abb0a6..a55e4105 100644
--- a/lasso/xml/lib_authentication_statement.c
+++ b/lasso/xml/lib_authentication_statement.c
@@ -67,13 +67,15 @@ get_xmlNode(LassoNode *node)
return xmlnode;
}
-static void
+static int
init_from_xml(LassoNode *node, xmlNode *xmlnode)
{
LassoLibAuthenticationStatement *statement = LASSO_LIB_AUTHENTICATION_STATEMENT(node);
xmlNode *t;
+ int rc;
- parent_class->init_from_xml(node, xmlnode);
+ rc = parent_class->init_from_xml(node, xmlnode);
+ if (rc) return rc;
t = xmlnode->children;
while (t) {
@@ -87,6 +89,8 @@ init_from_xml(LassoNode *node, xmlNode *xmlnode)
statement->ReauthenticateOnOrAfter = xmlGetProp(xmlnode, "ReauthenticateOnOrAfter");
statement->SessionIndex = xmlGetProp(xmlnode, "SessionIndex");
+
+ return 0;
}
/*****************************************************************************/