~ubuntu-branches/ubuntu/hardy/lasso/hardy

« back to all changes in this revision

Viewing changes to lasso/xml/saml-2.0/samlp2_logout_response.c

  • Committer: Bazaar Package Importer
  • Author(s): Michael Bienia
  • Date: 2007-07-31 21:35:26 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20070731213526-oc6jw5mprcd5tjyy
Tags: 2.0.0-1ubuntu1
* Merge from debian unstable. Remaining changes:
  + debian/control:
    - Modify Maintainer value to match DebianMaintainerField spec.
* debian/rules:
  + Add CC=gcc-4.2 to the configure call else configure won't find jni.h
    from libgcj8-dev.
* configure{,.ac}:
  + Add missing quotes around the value for PHP[45]_LIBS.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: samlp2_logout_response.c,v 1.1 2005/11/21 18:51:52 fpeters Exp $ 
 
1
/* $Id: samlp2_logout_response.c,v 1.3 2006/12/28 14:44:56 fpeters Exp $ 
2
2
 *
3
3
 * Lasso - A free implementation of the Liberty Alliance specifications.
4
4
 *
46
46
build_query(LassoNode *node)
47
47
{
48
48
        char *ret, *deflated_message;
 
49
        LassoSamlp2LogoutResponse *response = LASSO_SAMLP2_LOGOUT_RESPONSE(node);
49
50
 
50
51
        deflated_message = lasso_node_build_deflated_query(node);
51
 
        ret = g_strdup_printf("SAMLResponse=%s", deflated_message);
 
52
        if (deflated_message == NULL) {
 
53
                return NULL;
 
54
        }
 
55
        if (response->relayState) {
 
56
                ret = g_strdup_printf("SAMLResponse=%s&RelayState=%s",
 
57
                                deflated_message, response->relayState);
 
58
        } else {
 
59
                ret = g_strdup_printf("SAMLResponse=%s", deflated_message);
 
60
        }
52
61
        /* XXX: must support RelayState (which profiles?) */
53
62
        g_free(deflated_message);
54
63
        return ret;
75
84
static void
76
85
instance_init(LassoSamlp2LogoutResponse *node)
77
86
{
 
87
        node->relayState = NULL; /* XXX: free me sometimes */
78
88
}
79
89
 
80
90
static void