~ubuntu-branches/ubuntu/dapper/lasso/dapper

« back to all changes in this revision

Viewing changes to lasso/xml/saml_assertion.c

  • Committer: Bazaar Package Importer
  • Author(s): Loic Pefferkorn
  • Date: 2005-11-25 19:20:59 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051125192059-m4894lhpynmkrmwr
Tags: 0.6.3-4ubuntu1
Resynchronise with Debian.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: saml_assertion.c,v 1.34 2005/03/07 19:41:49 fpeters Exp $
 
1
/* $Id: saml_assertion.c,v 1.35 2005/07/30 22:36:54 fpeters Exp $
2
2
 *
3
3
 * Lasso - A free implementation of the Samlerty Alliance specifications.
4
4
 *
110
110
                        continue;
111
111
                }
112
112
                
113
 
                if (xmlnode->ns && strcmp(xmlnode->ns->href, LASSO_LIB_HREF) == 0) {
 
113
                if (xmlnode->ns && strcmp((char*)xmlnode->ns->href, LASSO_LIB_HREF) == 0) {
114
114
                        char *typename, *gtypename;
115
115
                        GType gtype;
116
116
 
120
120
 
121
121
                        if (gtype) {
122
122
                                xmlSetNs(xmlnode, ns);
123
 
                                if (xmlHasNsProp(t, "type", LASSO_XSI_HREF) == NULL) {
124
 
                                        xsi_ns = xmlNewNs(xmlnode,
125
 
                                                        LASSO_XSI_HREF, LASSO_XSI_PREFIX);
126
 
                                        xmlNewNsProp(xmlnode, xsi_ns, "type", typename);
 
123
                                if (xmlHasNsProp(t, (xmlChar*)"type",
 
124
                                                        (xmlChar*)LASSO_XSI_HREF) == NULL) {
 
125
                                        xsi_ns = xmlNewNs(xmlnode, (xmlChar*)LASSO_XSI_HREF,
 
126
                                                        (xmlChar*)LASSO_XSI_PREFIX);
 
127
                                        xmlNewNsProp(xmlnode, xsi_ns, (xmlChar*)"type",
 
128
                                                        (xmlChar*)typename);
127
129
                                }
128
130
                        }
129
131
                        g_free(gtypename);
146
148
        int rc;
147
149
        
148
150
        xmlnode = parent_class->get_xmlNode(node, lasso_dump);
149
 
        ns = xmlSearchNs(NULL, xmlnode, "saml");
 
151
        ns = xmlSearchNs(NULL, xmlnode, (xmlChar*)"saml");
150
152
        insure_namespace(xmlnode, ns);
151
153
 
152
154
        if (lasso_dump == FALSE && assertion->sign_type) {