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

« back to all changes in this revision

Viewing changes to lasso/xml/saml-2.0/saml2_encrypted_element.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: saml2_encrypted_element.c,v 1.2 2005/11/21 18:51:52 fpeters Exp $ 
 
1
/* $Id: saml2_encrypted_element.c,v 1.8 2006/11/23 17:44:26 dlaniel Exp $ 
2
2
 *
3
3
 * Lasso - A free implementation of the Liberty Alliance specifications.
4
4
 *
5
 
 * Copyright (C) 2004, 2005 Entr'ouvert
 
5
 * Copyright (C) 2004, 2005, 2006 Entr'ouvert
6
6
 * http://lasso.entrouvert.org
7
7
 * 
8
8
 * Authors: See AUTHORS file in top-level directory.
41
41
 
42
42
 
43
43
static struct XmlSnippet schema_snippets[] = {
44
 
        { "EncryptedData", SNIPPET_NODE,
 
44
        { "EncryptedData", SNIPPET_XMLNODE,
45
45
                G_STRUCT_OFFSET(LassoSaml2EncryptedElement, EncryptedData) },
46
 
        { "EncryptedKey", SNIPPET_NODE,
 
46
        { "EncryptedKey", SNIPPET_LIST_XMLNODES,
47
47
                G_STRUCT_OFFSET(LassoSaml2EncryptedElement, EncryptedKey) },
 
48
        { "NameID", SNIPPET_NODE | SNIPPET_LASSO_DUMP,
 
49
                G_STRUCT_OFFSET(LassoSaml2EncryptedElement, original_data) },
48
50
        {NULL, 0, 0}
49
51
};
50
52
 
60
62
{
61
63
        node->EncryptedData = NULL;
62
64
        node->EncryptedKey = NULL;
 
65
        node->original_data = NULL;
63
66
}
64
67
 
65
68
static void
69
72
 
70
73
        parent_class = g_type_class_peek_parent(klass);
71
74
        nclass->node_data = g_new0(LassoNodeClassData, 1);
72
 
        lasso_node_class_set_nodename(nclass, "EncryptedElement"); 
 
75
 
 
76
        lasso_node_class_set_nodename(nclass, "EncryptedElement");
73
77
        lasso_node_class_set_ns(nclass, LASSO_SAML2_ASSERTION_HREF, LASSO_SAML2_ASSERTION_PREFIX);
74
78
        lasso_node_class_add_snippets(nclass, schema_snippets);
75
79
}