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

« back to all changes in this revision

Viewing changes to lasso/id-ff/profile.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: profile.c,v 1.60 2005/05/12 16:26:49 fpeters Exp $
 
1
/* $Id: profile.c,v 1.61 2005/07/30 22:36:53 fpeters Exp $
2
2
 *
3
3
 * Lasso - A free implementation of the Liberty Alliance specifications.
4
4
 *
105
105
 
106
106
        doc = xmlParseMemory(soap, strlen(soap));
107
107
        xpathCtx = xmlXPathNewContext(doc);
108
 
        xmlXPathRegisterNs(xpathCtx, "s", LASSO_SOAP_ENV_HREF);
109
 
        xpathObj = xmlXPathEvalExpression("//s:Body/*", xpathCtx);
 
108
        xmlXPathRegisterNs(xpathCtx, (xmlChar*)"s", (xmlChar*)LASSO_SOAP_ENV_HREF);
 
109
        xpathObj = xmlXPathEvalExpression((xmlChar*)"//s:Body/*", xpathCtx);
110
110
 
111
111
        if (xpathObj && xpathObj->nodesetval && xpathObj->nodesetval->nodeNr) {
112
 
                name = xpathObj->nodesetval->nodeTab[0]->name;
 
112
                name = (char*)xpathObj->nodesetval->nodeTab[0]->name;
113
113
                ns = xpathObj->nodesetval->nodeTab[0]->ns;
114
114
        }
115
115
 
128
128
        } else if (strcmp(name, "AuthnRequest") == 0) {
129
129
                type = LASSO_REQUEST_TYPE_LECP;
130
130
        } else if (strcmp(name, "Query") == 0) {
131
 
                if (strcmp(ns->href, LASSO_DISCO_HREF) == 0) {
 
131
                if (strcmp((char*)ns->href, LASSO_DISCO_HREF) == 0) {
132
132
                        type = LASSO_REQUEST_TYPE_DISCO_QUERY;
133
133
                } else {
134
134
                        type = LASSO_REQUEST_TYPE_DST_QUERY;
135
135
                }
136
136
        } else if (strcmp(name, "Modify") == 0) {
137
 
                if (strcmp(ns->href, LASSO_DISCO_HREF) == 0) {
 
137
                if (strcmp((char*)ns->href, LASSO_DISCO_HREF) == 0) {
138
138
                        type =LASSO_REQUEST_TYPE_DISCO_MODIFY;
139
139
                } else {
140
140
                        type =LASSO_REQUEST_TYPE_DST_MODIFY;