summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorValery Febvre <vfebvre at easter-eggs.com>2004-06-30 13:07:03 +0000
committerValery Febvre <vfebvre at easter-eggs.com>2004-06-30 13:07:03 +0000
commitc4bea7b9a712bd130cf17390c474ab63b60aa4ba (patch)
tree863ba7804e8a4fec1ff8bed729ac798df989ce98
parent9532d9d383ff889e780f77545875085c7a482d1b (diff)
downloadlasso-c4bea7b9a712bd130cf17390c474ab63b60aa4ba.tar.gz
lasso-c4bea7b9a712bd130cf17390c474ab63b60aa4ba.tar.xz
lasso-c4bea7b9a712bd130cf17390c474ab63b60aa4ba.zip
*** empty log message ***
-rw-r--r--lasso/id-ff/identity.c87
-rw-r--r--lasso/id-ff/identity.h70
-rw-r--r--lasso/id-ff/provider.c132
-rw-r--r--lasso/id-ff/provider.h78
4 files changed, 0 insertions, 367 deletions
diff --git a/lasso/id-ff/identity.c b/lasso/id-ff/identity.c
deleted file mode 100644
index 6f4dfb04..00000000
--- a/lasso/id-ff/identity.c
+++ /dev/null
@@ -1,87 +0,0 @@
-/* $Id$
- *
- * Lasso - A free implementation of the Liberty Alliance specifications.
- *
- * Copyright (C) 2004 Entr'ouvert
- * http://lasso.entrouvert.org
- *
- * Author: Valery Febvre <vfebvre@easter-eggs.com>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- */
-
-#include <lasso/environs/identity.h>
-
-/*****************************************************************************/
-/* public methods */
-/*****************************************************************************/
-
-int lasso_identity_set_local_name_identifier(LassoIdentity *identity, LassoNode *nameIdentifier){
- identity->local_nameIdentifier = nameIdentifier;
-}
-
-int lasso_identity_set_peer_nameIdentifier(LassoIdentity *identity, LassoNode *nameIdentifier){
- identity->peer_nameIdentifier = nameIdentifier;
-}
-
-/*****************************************************************************/
-/* instance and class init functions */
-/*****************************************************************************/
-
-static void
-lasso_identity_instance_init(LassoIdentity *identity){
- identity->local_nameIdentifier = NULL;
- identity->peer_nameIdentifier = NULL;
-}
-
-static void
-lasso_identity_class_init(LassoIdentityClass *klass) {
-}
-
-GType lasso_identity_get_type() {
- static GType this_type = 0;
-
- if (!this_type) {
- static const GTypeInfo this_info = {
- sizeof (LassoIdentityClass),
- NULL,
- NULL,
- (GClassInitFunc) lasso_identity_class_init,
- NULL,
- NULL,
- sizeof(LassoIdentity),
- 0,
- (GInstanceInitFunc) lasso_identity_instance_init,
- };
-
- this_type = g_type_register_static(LASSO_TYPE_NODE,
- "LassoIdentity",
- &this_info, 0);
- }
- return this_type;
-}
-
-LassoIdentity*
-lasso_identity_new(gchar *peer_providerID)
-{
- LassoIdentity *identity;
-
- identity = g_object_new(LASSO_TYPE_IDENTITY, NULL);
-
- identity->peer_providerID = (char *)malloc(strlen(peer_providerID)+1);
- sprintf(identity->peer_providerID, "%s", peer_providerID);
-
- return(identity);
-}
diff --git a/lasso/id-ff/identity.h b/lasso/id-ff/identity.h
deleted file mode 100644
index 1f18d34b..00000000
--- a/lasso/id-ff/identity.h
+++ /dev/null
@@ -1,70 +0,0 @@
-/* $Id$
- *
- * Lasso - A free implementation of the Liberty Alliance specifications.
- *
- * Copyright (C) 2004 Entr'ouvert
- * http://lasso.entrouvert.org
- *
- * Authors: Valery Febvre <vfebvre@easter-eggs.com>
- * Nicolas Clapies <nclapies@entrouvert.com>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- */
-
-#ifndef __LASSO_IDENTITY_H__
-#define __LASSO_IDENTITY_H__
-
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
-
-#include <lasso/xml/xml.h>
-
-#define LASSO_TYPE_IDENTITY (lasso_identity_get_type())
-#define LASSO_IDENTITY(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), LASSO_TYPE_IDENTITY, LassoIdentity))
-#define LASSO_IDENTITY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), LASSO_TYPE_IDENTITY, LassoIdentityClass))
-#define LASSO_IS_IDENTITY(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), LASSO_TYPE_IDENTITY))
-#define LASSP_IS_IDENTITY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LASSO_TYPE_IDENTITY))
-#define LASSO_IDENTITY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), LASSO_TYPE_IDENTITY, LassoIdentityClass))
-
-typedef struct _LassoIdentity LassoIdentity;
-typedef struct _LassoIdentityClass LassoIdentityClass;
-
-struct _LassoIdentity {
- LassoNode parent;
-
- gchar *peer_providerID;
-
- LassoNode *local_nameIdentifier;
- LassoNode *peer_nameIdentifier;
-
- /*< private >*/
-};
-
-struct _LassoIdentityClass {
- LassoNodeClass parent;
-};
-
-LASSO_EXPORT GType lasso_identity_get_type(void);
-LASSO_EXPORT LassoIdentity *lasso_identity_new(char *peer_providerID);
-
-LASSO_EXPORT int lasso_identity_set_local_name_identifier(LassoIdentity *identity, LassoNode *nameIdentifier);
-LASSO_EXPORT int lasso_identity_set_peer_nameIdentifier(LassoIdentity *identity, LassoNode *nameIdentifier);
-
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
-
-#endif /* __LASSO_IDENTITY_H__ */
diff --git a/lasso/id-ff/provider.c b/lasso/id-ff/provider.c
deleted file mode 100644
index 2a4e5c86..00000000
--- a/lasso/id-ff/provider.c
+++ /dev/null
@@ -1,132 +0,0 @@
-/* $Id$
- *
- * Lasso - A free implementation of the Liberty Alliance specifications.
- *
- * Copyright (C) 2004 Entr'ouvert
- * http://lasso.entrouvert.org
- *
- * Author: Valery Febvre <vfebvre@easter-eggs.com>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- */
-
-#include <lasso/environs/provider.h>
-
-/*****************************************************************************/
-/* public methods */
-/*****************************************************************************/
-xmlChar *lasso_provider_get_providerID(LassoProvider *provider){
- return(lasso_node_get_attr_value(provider->metadata, "ProviderID"));
-}
-
-xmlChar *lasso_provider_get_singleSignOnProtocolProfile(LassoProvider *provider){
- return(lasso_node_get_child_content(provider->metadata, "SingleSignOnProtocolProfile", NULL));
-}
-
-xmlChar *lasso_provider_get_singleSignOnServiceUrl(LassoProvider *provider){
- return(lasso_node_get_child_content(provider->metadata, "SingleSignOnServiceUrl", NULL));
-}
-
-xmlChar *lasso_provider_get_singleLogoutProtocolProfile(LassoProvider *provider){
- return(lasso_node_get_child_content(provider->metadata, "SingleLogoutProtocolProfile", NULL));
-}
-
-xmlChar *lasso_provider_get_singleLogoutServiceUrl(LassoProvider *provider){
- return(lasso_node_get_child_content(provider->metadata, "SingleLogoutServiceUrl", NULL));
-}
-
-xmlChar *lasso_provider_get_singleLogoutServiceReturnUrl(LassoProvider *provider){
- return(lasso_node_get_child_content(provider->metadata, "SingleLogoutServiceReturnUrl", NULL));
-}
-
-/*****************************************************************************/
-/* private methods */
-/*****************************************************************************/
-
-static xmlChar *lasso_provider_get_direct_child_content(LassoProvider *provider, const xmlChar *name){
- LassoNode *node;
-
- node = lasso_node_get_child(LASSO_NODE(provider), name, NULL);
- if(!node)
- return(NULL);
- return(lasso_node_get_content(node));
-}
-
-
-/*****************************************************************************/
-/* instance and class init functions */
-/*****************************************************************************/
-
-static void
-lasso_provider_instance_init(LassoProvider *provider)
-{
- LassoNodeClass *class = LASSO_NODE_GET_CLASS(LASSO_NODE(provider));
-
- class->set_name(LASSO_NODE(provider), "Provider");
-}
-
-static void
-lasso_provider_class_init(LassoProviderClass *klass) {
-}
-
-GType lasso_provider_get_type() {
- static GType this_type = 0;
-
- if (!this_type) {
- static const GTypeInfo this_info = {
- sizeof (LassoProviderClass),
- NULL,
- NULL,
- (GClassInitFunc) lasso_provider_class_init,
- NULL,
- NULL,
- sizeof(LassoProvider),
- 0,
- (GInstanceInitFunc) lasso_provider_instance_init,
- };
-
- this_type = g_type_register_static(LASSO_TYPE_NODE,
- "LassoProvider",
- &this_info, 0);
- }
- return this_type;
-}
-
-LassoNode* lasso_provider_new(){
- LassoNode *provider;
-
- provider = LASSO_NODE(g_object_new(LASSO_TYPE_PROVIDER, NULL));
-
- return (provider);
-}
-
-LassoProvider *lasso_provider_new_from_filename(char *filename){
- LassoProvider *provider;
- xmlDocPtr doc;
- xmlNodePtr root;
-
- provider = g_object_new(LASSO_TYPE_PROVIDER, NULL);
-
- /* get root element of doc and duplicate it */
- doc = xmlParseFile(filename);
- root = xmlCopyNode(xmlDocGetRootElement(doc), 1);
- xmlFreeDoc(doc);
- provider->metadata = lasso_node_new_from_xmlNode(root);
-
- provider->public_key = NULL;
- provider->certificate = NULL;
-
- return(provider);
-}
diff --git a/lasso/id-ff/provider.h b/lasso/id-ff/provider.h
deleted file mode 100644
index 6a5bbd1d..00000000
--- a/lasso/id-ff/provider.h
+++ /dev/null
@@ -1,78 +0,0 @@
-/* $Id$
- *
- * Lasso - A free implementation of the Liberty Alliance specifications.
- *
- * Copyright (C) 2004 Entr'ouvert
- * http://lasso.entrouvert.org
- *
- * Author: Valery Febvre <vfebvre@easter-eggs.com>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- */
-
-#ifndef __LASSO_PROVIDER_H__
-#define __LASSO_PROVIDER_H__
-
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
-
-#include <lasso/xml/xml.h>
-
-#define LASSO_TYPE_PROVIDER (lasso_provider_get_type())
-#define LASSO_PROVIDER(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), LASSO_TYPE_PROVIDER, LassoProvider))
-#define LASSO_PROVIDER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), LASSO_TYPE_PROVIDER, LassoProviderClass))
-#define LASSO_IS_PROVIDER(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), LASSO_TYPE_PROVIDER))
-#define LASSP_IS_PROVIDER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LASSO_TYPE_PROVIDER))
-#define LASSO_PROVIDER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), LASSO_TYPE_PROVIDER, LassoProviderClass))
-
-typedef struct _LassoProvider LassoProvider;
-typedef struct _LassoProviderClass LassoProviderClass;
-
-struct _LassoProvider {
- LassoNode parent;
-
- LassoNode *metadata;
-
- char *public_key;
- char *certificate;
-
- /*< private >*/
-};
-
-struct _LassoProviderClass {
- LassoNodeClass parent;
-};
-
-LASSO_EXPORT GType lasso_provider_get_type (void);
-LASSO_EXPORT LassoNode* lasso_provider_new (void);
-
-LASSO_EXPORT LassoProvider *lasso_provider_new_from_filename (char *filename);
-
-LASSO_EXPORT xmlChar *lasso_provider_get_providerID (LassoProvider *provider);
-
-LASSO_EXPORT xmlChar *lasso_provider_get_singleSignOnProtocolProfile (LassoProvider *provider);
-LASSO_EXPORT xmlChar *lasso_provider_get_singleSignOnServiceUrl (LassoProvider *provider);
-
-LASSO_EXPORT xmlChar *lasso_provider_get_singleLogoutProtocolProfile (LassoProvider *provider);
-LASSO_EXPORT xmlChar *lasso_provider_get_singleLogoutServiceUrl (LassoProvider *provider);
-LASSO_EXPORT xmlChar *lasso_provider_get_singleLogoutServiceReturnUrl (LassoProvider *provider);
-
-
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
-
-#endif /* __LASSO_PROVIDER_H__ */